Chapter 10: Sorting 1
Chapter 10: Sorting 1
Chapter 10: Sorting 1
• To make room:
• Hold nextPos value in a variable
• Shuffle elements to the right until gap at right place
Overview:
• Split array into two halves
• Sort the left half (recursively)
• Sort the right half (recursively)
• Merge the two sorted halves
58