Question: 1 . ( 1 2 % ) Answer True or False to the following problems. ( 1 ) Quick sort should NOT be used when

1.(12%) Answer True or False to the following problems.
(1) Quick sort should NOT be used when the data is almost sorted. __________
(2) Quick sort is always quick. ____________
(3) Merge sort requires extra space. ___________
(4) Selection sort recognizes if the values are already sorted. __________
(5) Binary searching is always faster than linear searching. __________
(6) HeapSort is inherently unstable. ______________
2.(12%) Show the contents of the array
After each of the first two iterations of
(1) Selection Sort
(2) Bubble Sort
(3) Insertion Sort
3.(8%)(1) Show how the values in the array in Problem 2 would have to be rearranged to satisfy
the heap property.
4371023184195
01234567
01234567

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 Programming Questions!