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.1. Algorithms

9 exercises: 9 with a written solution, 0 stated in Lean, 0 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.1 in your copy of the book. Then read the companion chapter Algorithms (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 Section 1.1 train the first skills of the book: to follow an algorithm by hand, to change it, to count its steps, and to read the definition of an algorithm as a set-theoretic object. A good order is 1.1-4 and 1.1-2 (a run and a small proof), then 1.1-1, 1.1-3 and 1.1-5, then 1.1-6 and 1.1-7 (the average count of Euclid's algorithm), and last 1.1-8 and 1.1-9, which use the formal model.

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.1-110K5written checkednot stated yet
1.1-5 recommended12informalwritten checkednot stated yet
1.1-215K1written checkednot stated yet
1.1-416K3written checkednot stated yet
1.1-320K5written checkednot stated yet
1.1-620K3written checkednot stated yet
1.1-7 recommendedM21K7written checkednot stated yet
1.1-8M25K5written checkednot stated yet
1.1-9 recommendedM30informalwritten checkednot stated yet

Something is wrong? Report it.