InterviewSolution
Saved Bookmarks
| 1. |
Merge sort uses which of the following technique to implement sorting?(a) backtracking(b) greedy algorithm(c) divide and conquer(d) dynamic programmingThis question was addressed to me in an online quiz.My doubt stems from Sorting in division Sorting of Data Structures & Algorithms II |
|
Answer» RIGHT answer is (c) divide and conquer For explanation: MERGE sort uses divide and conquer in order to sort a given array. This is because it divides the array into two halves and applies merge sort algorithm to each half INDIVIDUALLY after which the two sorted halves are MERGED together. |
|