Assume that the algorithms considered here sort the input sequences in…
PYQ GATE 2016
Assume that the algorithms considered here sort the input sequences in ascending order. If the input is already in ascending order, which of the following are TRUE?
I. Quicksort runs in time
II. Bubblesort runs in time
III. Mergesort runs in time
IV. Insertion sort runs in time
- A.
I and II only
- B.
I and III only
- C.
II and IV only
- D.
I and IV only
Attempted by 553 students.
Sign up free to check your answer
Sign up freeLoading lesson…

