1.

Quick sort is a stable sorting algorithm.(a) True(b) FalseI got this question in an interview.This intriguing question comes from Quicksort in section Sorting of Data Structures & Algorithms II

Answer»

Right choice is (B) False

For explanation: In STABLE SORTING algorithm the records with equal keys APPEAR in the same order in the sorted sequence as they appear in the input unsorted sequence. Quick SORT does not preserve the relative order of equal sort items. Therefore, Quick sort is not a stable sort.



Discussion

No Comment Found

Related InterviewSolutions