which of the following algorithms runs in O(N^2) inthe worst case time?
(a) heapsort
(c) mergesort
(d) quicksort
(e) shellsort
Answer
(d) quicksort
which of the following algorithms runs in O(N^2) inthe worst case time?
(a) heapsort
(c) mergesort
(d) quicksort
(e) shellsort
Answer
(d) quicksort