1.

Quick sort uses which of the following algorithm to implement sorting?(a) backtracking(b) greedy algorithm(c) divide and conquer(d) dynamic programmingI had been asked this question in examination.My question is from Sorting topic in portion Sorting of Data Structures & Algorithms II

Answer»

The CORRECT option is (C) divide and CONQUER

Best explanation: Quick SORT uses the technique of divide and conquer in order to sort a given array. It divides the array into two parts about the pivot and then applies quick sort to both the parts.



Discussion

No Comment Found

Related InterviewSolutions