1.

Cycle sort is an adaptive sorting algorithm.(a) true(b) falseThe question was asked in examination.Query is from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer» CORRECT OPTION is (b) false

Easy EXPLANATION - The time complexity of CYCLE sort is O(n^2) in any case. So cycle sort algorithm is not adaptive, as it will take the same time to sort an already sorted array and any other randomly ARRANGED array.


Discussion

No Comment Found

Related InterviewSolutions