UGC-NET | UGC NET CS 2014 Dec – II | Question 22
You have to sort a list L, consisting of a sorted list followed by a few ‘random’ elements. Which of the following sorting method would be most suitable for such a task?
(A) Bubble sort
(B) Selection sort
(C) Quick sort
(D) Insertion sort
Answer: (D)
Explanation: For a sorted list with few random numbers:
So, option (D) is correct.
Quiz of this Question