(First, see Part A: https://www.chegg.com/homework-help/questions-and-answers/gi
ID: 3667961 • Letter: #
Question
(First, see Part A: https://www.chegg.com/homework-help/questions-and-answers/given-n-metal-balls-b1-bn-different-weight-compare-weights-2-balls-weighing-balance-findin-q10564115
and Part B: https://www.chegg.com/homework-help/questions-and-answers/first-see-part-https-wwwcheggcom-homework-help-questions-answers-given-n-metal-balls-b1-bn-q10564149
and Part C: https://www.chegg.com/homework-help/questions-and-answers/first-see-part-https-wwwcheggcom-homework-help-questions-answers-given-n-metal-balls-b1-bn-q10564187)
part (A)Explanation / Answer
To solve part C, what we will do is compare the smaller one in the final weighing ( to determine heaviest ball ) and then compare it to all the ones the heavier ones were compared to, which takes additional log n time. If it greater than all of them, then it is the second most heaviest ball.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.