Merge sort uses which of the following algorithm to implement sorting?

Merge sort uses which of the following algorithm to implement sorting?
A. backtracking
B. greedy algorithm
C. divide and conquer
D. dynamic programming
 
Answer: c
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.
 

Tìm kiếm

Back
Top