1.

Which one of the following sorting algorithm requires recursion?(a) odd even sort(b) stooge sort(c) selection sort(d) counting sortThe question was asked in exam.The question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The CORRECT answer is (b) stooge sort

To explain: Stooge sort requires the use of recursion for IMPLEMENTING its algorithm. On the other hand, the sorting algorithms GIVEN in the remaining options use iterative METHODS.



Discussion

No Comment Found

Related InterviewSolutions