Show that the second smallest of n elements can be found with comparisons in the worst case. (hint: also find the smallest element.)
Answers
Answered by
0
Answer:
Hope it's help you
Step-by-step explanation:
the second smallest of n elements can be found with ______ comparisons in worst case.1 is the smallest,it took n-1=7 comparison. Now compare all the numbers which 1 was compared to ( compare 2,3,5) . 2 is the second smallest
Similar questions
Math,
6 hours ago
English,
6 hours ago
Social Sciences,
6 hours ago
Math,
11 hours ago
Business Studies,
8 months ago
English,
8 months ago