1.

Which of the following sorting algorithms is the fastest?(a) Merge sort(b) Quick sort(c) Insertion sort(d) Shell sortThe question was posed to me in class test.The question is from Quicksort topic in portion Sorting of Data Structures & Algorithms II

Answer»

Right choice is (b) Quick sort

Easiest explanation - Quick sort is the FASTEST KNOWN sorting ALGORITHM because of its HIGHLY optimized INNER loop.



Discussion

No Comment Found

Related InterviewSolutions