Week 4 Discussion Forum

Where is merge sort used?

Where is merge sort used?

by Jannatul Anjum Shafa 192-15-2787 -
Number of replies: 0

Merge sort is used when we want a guaranteed running time of O ( n log ⁡ n ) O(n \log n)       O(n log n), regardless of the state of the input. Merge sort is a stable sort with a space complexity of O ( n ) O(n) O(n).

48 words