c++ - iterative, In-place MergeSort - Stack Overflow
https://stackoverflow.com/questions/466959…An iterative algorithm that uses a "kind of" merge sort to sort an array in-place could look like below. Let's take this unsorted array as example: 4, 3, 8, 5, 9, 2, 5, 1, 7, 10, 8, 0, 3. The algorithm will have an …
Merge sort - Wikipedia
https://en.wikipedia.org/wiki/Merge_sortOne drawback of merge sort, when implemented on arrays, is its O(n) working memory requirement. Several methods to reduce memory or make merge sort fully in-place have been suggested: • Kronrod (1969) suggested an alternative version of merge sort that uses constant additional space.