pls someone send the code of merge sort
Answers
Answered by
0
MergeSort(arr[], l, r) If r > l 1. Find the middle point to divide the array into two halves: middle m = (l+r)/2 2. Call mergeSort for first half: Call mergeSort(arr, l, m) 3. Call mergeSort for second half: Call mergeSort(arr, m+1, r) 4. Merge the two halves sorted in step 2 and 3: Call merge(arr, l, m, r)
Answered by
0
Merge Sort Program in C. Merge sort is a sorting technique based on divide and conquer technique. With the worst-case time complexity being Ο(n log n), it is one of the most respected algorithms.
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago
Math,
7 months ago
History,
1 year ago
English,
1 year ago
Biology,
1 year ago
Social Sciences,
1 year ago