Question: Among Selection Sort, Insertion Sort, Mergesort, Quicksort, and Heapsort, which Algorithm would you choose in each list-sorting situation below? Justify your answers. (a) The list

 Among Selection Sort, Insertion Sort, Mergesort, Quicksort, and Heapsort, which Algorithm

Among Selection Sort, Insertion Sort, Mergesort, Quicksort, and Heapsort, which Algorithm would you choose in each list-sorting situation below? Justify your answers. (a) The list has several hundred records. The records are quite long, but the keys are very short. (b) The list has about 45,000 records. It is necessary that the sort be completed reasonable quickly in all cases. There is barely enough memory to hold the 45,000 record. (c) The list has about 45,000 records, but it starts off only slightly out of order. (d) The list has about 25,000 records. It is desirable to complete the sort as quickly as possible on the average, but it is not critical that the sort the completed quickly in every single case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!