c05 · E2

Derive: How Long Does It Take?

c05.E2.1E2 · expression

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.

c05.E2.2E2 · expression

Section 5.2 says a quadratic cost multiplies by about four when the input doubles. Take the quadratic cost and compute the exact ratio . Show that the ratio is not 4 at any finite positive , give its limit as grows, and evaluate it at , and .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c05.E2.3E2 · expression

Section 5.6 contrasts an exponential count with a cubic count and reports that the exponential is already out of reach at a few dozen items. Prove by induction that for every whole . Then show that the ratio grows without bound, and give the limit of .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

Other tiers

E1 Practise · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.