1.

What is the auxiliary space requirement of introsort?(a) O(n)(b) O(n log n)(c) O(n^2)(d) O(log n)This question was addressed to me in final exam.Question is taken from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer»

Correct CHOICE is (d) O(log N)

For explanation: Introsort is a hybrid of quick SORT, heap sort and INSERTION sort. So like quick sort it may use O(log n) auxiliary space in the stack to store call STATEMENTS.



Discussion

No Comment Found

Related InterviewSolutions