Ask Question
14 September, 06:28

At the county fair, prizes are awat rded to the five heaviest cows. More than 2000 cows are entered, and their records are stored in an array. Which of the following algorithms provides the most effecient way of finding the records of the five heaviest cows?

a. Selection Sort

b. Selection Sort terminated after the first five iterations

c. Insertion Sort

d. Insertion Sort terminated after the first five iterations

e. Mergesort

+2
Answers (1)
  1. 14 September, 06:37
    0
    B

    Explanation:

    selection sort for each pass sorts one element in right place. so we can stop it after 5 passes as we need only 5 heaviest cows info.

    Answer is B
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “At the county fair, prizes are awat rded to the five heaviest cows. More than 2000 cows are entered, and their records are stored in an ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers