Merge sort is sorting algorithm based on divide and conquer programming
approach. It keeps on dividing the list into smaller sub-list until all
sub-list has only 1 element. And then it merges them in a sorted way
until all sub-lists are consumed. It has run-time complexity of Ο(n log
n) and it needs Ο(n) auxiliary space.
No comments:
Post a Comment