Question: (30 pts) Suppose that the implementation of sorting by quick sort given in the lecture notes were changed as follows: Procedure partition is retained, but
(30 pts) Suppose that the implementation of sorting by quick sort given in the lecture notes were changed as follows: Procedure partition is retained, but quickSort is eliminated, so that its work is done directly in sort. Is this change a good idea? What purpose does quickSort have? Discuss. (30 pts) Suppose that the implementation of sorting by quick sort given in the lecture notes were changed as follows: Procedure partition is retained, but quickSort is eliminated, so that its work is done directly in sort. Is this change a good idea? What purpose does quickSort have? Discuss
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
