- #1
ducmod
- 86
- 0
Hello!
If T denotes running time, then, as I heard at the lecture,
T(n/2) + T(n/2) + O(n) = O(nlogn)
where T(n/2) running time for sorting the left half
T(n/2) running time for sorting the right half
O(n) merging sorted
Please, help me to see the math - how did the left side of expression turned into the right side one?
Thank you!
If T denotes running time, then, as I heard at the lecture,
T(n/2) + T(n/2) + O(n) = O(nlogn)
where T(n/2) running time for sorting the left half
T(n/2) running time for sorting the right half
O(n) merging sorted
Please, help me to see the math - how did the left side of expression turned into the right side one?
Thank you!