1.

Which of the following is not true about tree sort?(a) it is not an in place sorting algorithm(b) its every implementation is adaptive(c) it requires in order traversal of BST for sorting input elements(d) it is a stable sortI got this question in an interview.Origin of the question is Sorting topic in section Sorting of Data Structures & Algorithms II

Answer» RIGHT answer is (B) its every implementation is adaptive

For explanation: Every implementation of tree sort is not adaptive. It BECOMES adaptive only when IMPLEMENTED with a splay tree as BST.


Discussion

No Comment Found

Related InterviewSolutions