1.

Merge sort uses which of the following algorithm to implement sorting?(a) backtracking(b) greedy algorithm(c) divide and conquer(d) dynamic programmingThis question was addressed to me during an interview.The question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

Right choice is (c) divide and conquer

Easy EXPLANATION - Merge sort uses the technique of divide and conquer in order to sort a GIVEN array. It divides the array into TWO halves and APPLY merge sort ALGORITHM to each half individually after which the sorted versions of these halves are merged together.



Discussion

No Comment Found

Related InterviewSolutions