Merge sort on cards obeys with . Section 5.3 states the closed form for powers of two without proving it. Section 5.4 states that every comparison sort needs at least comparisons.
Prove the closed form by induction for a power of two. Then compute and the lower bound at , and give the gap between them.
This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.
Worked solution
The base case is . The recurrence gives , and the closed form gives , so the two agree. Now assume the closed form holds at , where is a power of two greater than 1: Substitute this into the recurrence: The induction is complete: the formula holds at 1, and if it holds at it holds at , so it holds at every power of two.
At the closed form gives The lower bound uses . Now is below 40,320 and is above it, so The gap is . Section 5.3 built the recurrence and section 5.4 built the floor; putting them side by side says merge sort is one comparison above the floor at eight cards. The lower bound does not say that merge sort is optimal at every size, and it does not say that a procedure meeting the bound exists. It says that no comparison sort can use 15 or fewer comparisons on some order of eight cards.