taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Learn · Volume 1 · in the Volume 1 course

Section 1.2.10. Analysis of an algorithm

22 exercises: 22 with a written solution, 18 stated in Lean, 5 proved in Lean.

1. Read first

The companion chapter builds on these. Read the ones you do not know yet.

2. Read the section

Read Section 1.2.10 in your copy of the book. Then read the companion chapter Analysis of an algorithm (a draft): it explains each item in the words of the handbook, with examples and proofs. The items of the section and their status.

3. Work the exercises

The exercises of this section train the use of probability generating functions: the mean and the variance of a distribution, products of independent variables, semi-invariants, tail bounds and the limit to a normal law. They also give the model of Algorithm M with repeated keys and with other distributions of the input. A good order by rating is 1, 4, 5, 11, 3, 2, 10, 8, 12, 19, 21, 20, 22, 15, 16, 9, 17, 6, 7, 18, 14 and 13. Exercise 10 uses the results of Exercises 7, 8 and 9, so do it after them.

From the Solutions volume of the handbook. The source.

The list starts with the lowest rating. Try each exercise on paper first. Its page has the hints one at a time, the solution behind a click, and the Lean status.

ExerciseRatingKindSolutionLean
1.2.10-110K3written checkedproved
1.2.10-4M10K3written checkedproved
1.2.10-5M13K3written checkedproved
1.2.10-3M15K3written checkedstated
1.2.10-11M15K3written checkedstated
1.2.10-2HM16K1written checkednot stated yet
1.2.10-8M20K3written checkedproved
1.2.10-10M20K1written checkedstated
1.2.10-12HM21K1written checkednot stated yet
1.2.10-19M21K1written checkedproved
1.2.10-21HM21K1written checkedstated
1.2.10-20M22K1written checkedstated
1.2.10-22HM22K1written checkedstated
1.2.10-15HM23K3written checkedstated
1.2.10-9M25K3written checkedstated
1.2.10-16M25K3written checkednot stated yet
1.2.10-6HM27K3written checkedstated
1.2.10-7M27K3written checkedstated
1.2.10-17M27K1written checkednot stated yet
1.2.10-18M28K3written checkedstated
1.2.10-14HM30K1written checkedstated
1.2.10-13HM38K1written checkedstated

Something is wrong? Report it.