Ex no:7 MERGE SORT
Aim
To
write a python program to sort a list of elements using Merge sort
Algorithm
Step1:Start
Step2:Divide the arrays into left
sub array & right sub array
Step3:Conquer by recursively
sorting the two sub arrays
Step4:Combine the elements back in
by merging the two sorted sub arrays
Step5:Call the results and print
the arrays
Step6:Stop
No comments:
Post a Comment