InterviewSolution
Saved Bookmarks
| 1. |
Quick sort uses which of the following algorithm to implement sorting?(a) backtracking(b) greedy algorithm(c) divide and conquer(d) dynamic programmingI have been asked this question in homework.The query is from Sorting topic in chapter Sorting of Data Structures & Algorithms II |
|
Answer» CORRECT answer is (c) divide and conquer To EXPLAIN: 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 apply a quick sort to both the parts. |
|