1.

Permutation sort works by __________(a) generating random permutations of its input(b) partitioning the array(c) dividing the value of input elements(d) generating permutations according to the value of first element of arrayThis question was posed to me in final exam.This intriguing question comes from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer»

The CORRECT answer is (a) generating random permutations of its INPUT

To explain: Permutation sort algorithm successively GENERATES permutations of its input. This process is repeated until the SORTED VERSION of the array is found.



Discussion

No Comment Found

Related InterviewSolutions