A. Find an algorithm that finds the maximum and minimum of 8elements in 10 comparisons. (10 points)
B. Show that the worst-case complexity in terms of comparisonsof an algorithm that finds the maximum and minimum of 8 elements is10.
Expert Answer
An answer will be send to you shortly. . . . .