Explain this question sir.

133 views
Skip to first unread message

SURENDAR KUMAR

unread,
Nov 20, 2020, 10:27:45 AM11/20/20
to cs1001-...@nptel.iitm.ac.in
Screenshot_2020-11-20-20-56-31-18.jpg

AJEET KUMAR

unread,
Nov 20, 2020, 11:09:47 AM11/20/20
to Discussion forum for Computational Thinking, surendar...@gmail.com
In this question 
For finding shop with the maximum average we need 2 pair wise comparison
1St  --> compare SVavg and SGavg (find which one is greater)
once we find which one is greater then we compare that one with another one ( BBavg)
suppose we find SVavg is greater than SGavg
Than we compare SGavg with BBavg
So we need 2 pairwise comparison
Is it okay?
On Friday, November 20, 2020 at 8:57:45 PM UTC+5:30 surendar...@gmail.com wrote:

Anjana Subash

unread,
Nov 20, 2020, 11:17:23 AM11/20/20
to Discussion forum for Computational Thinking, surendar...@gmail.com
suppose we compare SVavg with SGavg and SVavg is found greater than SGavg 
now  there is no need to further compare SGavg with BBavg instead you only need to compare SVavg with BBavg
now when SVavg is compared with BBavg and if still SVavg is found greater , then  sv will be the store with max avg value
thus only 2 pair wise comparison 
(SVavg, SGavg) and (SVavg, BBavg)

Computational Thinking Support 2

unread,
Nov 20, 2020, 9:24:42 PM11/20/20
to Discussion forum for Computational Thinking, Anjana Subash, surendar...@gmail.com
Hi,
Both have explained correctly. You can refer their explanations.

Regards,
Deepak
IITM Online Degree Team
Reply all
Reply to author
Forward
0 new messages