Merge Sort

 Two Way MergeSort - Iterative method



Merge Sort Algorithm


MergeSort in-depth Analysis

Pros

1. Suitable for large size list

2. Suitable to sort linked list

3. Suitable for external sorting (ie. file sorting)

4. Stable (ie. repeated numbers will be in the same order)

Cons

1. Need extra space (Merge sort of array is not in-place sort. Merge sort of LinkedList is in place sort)

2. Not suitable for small problems

3. It's recursive

More details of merge sort

Comments

Popular posts from this blog

gsutil Vs Storage Transfer Service Vs Transfer Appliance

SQL basic interview question