| Learn | Algorithm - Merge Sort - Merge sort basics |
|---|
| Merge Sort Basics Merge Sort is a divide-and-conquer algorithm. It divides the input list of length n in half successively until there are n lists of size 1. Then, pairs of lists are merged together with the smaller first element among the pair of lists being added in each step. Through successive merging and through comparison of first elements, the sorted list is built. An example: Time Complexity: The above recurrence can be solved either using Recurrence Tree method or Master method. It falls in case II of Master Method and solution of the recurrence is Auxiliary Space: Algorithmic Paradigm: Divide and Conquer Sorting In Place: Not in a typical implementation Stable: Yes |
Read Article
https://develop.horje.com/learn/1434/reference