Working process of Merge Sort

Write down in brief the working process of Merge Sort?

E

Expert

Verified

The Merge Sort algorithm is as described below:

a) The length of list is 0 or 1 and then it is considered as sorted.

b) Or else, divide the unsorted list into two lists each regarding half the size.

c) Sort each sub list recursively. Implement the step (b) till the two sub lists are sorted.

d) As a final step, combine (or merge) both the lists back to one sorted list.

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.