1.

Brick sort uses which of the following methods for sorting the input?(a) selection(b) partitioning(c) merging(d) exchangingI had been asked this question during an interview.My question is taken from Sorting in portion Sorting of Data Structures & Algorithms II

Answer»

Right CHOICE is (d) exchanging

Easy EXPLANATION - Brick sort uses the method of exchanging as it swaps the ELEMENTS which are out of order. This swapping is done in two PHASES i.e. ODD phase and even phase.



Discussion

No Comment Found

Related InterviewSolutions