1.

Bogosort 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 arrayThe question was asked in examination.The query is from Sorting in section Sorting of Data Structures & Algorithms II

Answer» CORRECT choice is (a) generating random permutations of its INPUT

Explanation: Bogosort 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