1.

Merge 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.This question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

Correct option 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 applies merge sort algorithm to each half individually after which the SORTED versions of these halves are MERGED together.



Discussion

No Comment Found

Related InterviewSolutions