Merge Sort algorithm question Please show full explanation f
Merge Sort algorithm question
Please show full explanation for good feedback
Thanks
Consider the pseudocode for Merge-Sort on page 34 of the textbook: Algorithm 2: Merge-Sort (A, p, r) 1 if pSolution
In general, we consider that merge sort runs in O(nlogn) but in exact terms it\'s time complexity is 2nceil(logn).
But it\'s general equation is given as:
t(n) = 2t(n/2) + n
which gives O(nlogn).
Hope it helps.
