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 2.2.4. Circular lists

18 exercises: 18 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 2.2.4 in your copy of the book. Then read the companion chapter Circular lists (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 fall in three groups. Exercises 1 to 5 and 18 are about the circular list itself: the empty list, concatenation and splitting, the stack, reversal, and a list with one link per node that can be walked both ways. Exercises 6 to 10 and 17 ask why the polynomial representation of the text is made as it is.

Exercises 11 to 16 build a small package of MIX subroutines for polynomials: copy, erase, make zero, and multiply, together with the time of the last one. Do Exercises 11, 13 and 14 first, then 15 and 16, which reuse Program A of the text. The listings here are written fresh and were run on a simulator of MIX against random polynomials.

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
2.2.4-710informalwrittennot stated yet
2.2.4-810informalwrittennot stated yet
2.2.4-618K8writtennot stated yet
2.2.4-220K8writtennot stated yet
2.2.4-320K3writtennot stated yet
2.2.4-420K5writtennot stated yet
2.2.4-1020K3writtennot stated yet
2.2.4-1320K6writtennot stated yet
2.2.4-121K2writtennot stated yet
2.2.4-521K5writtennot stated yet
2.2.4-1221K7writtennot stated yet
2.2.4-1422K6writtennot stated yet
2.2.4-1722informalwrittennot stated yet
2.2.4-923K2writtennot stated yet
2.2.4-1124K6writtennot stated yet
2.2.4-1524K6writtennot stated yet
2.2.4-1825K5writtennot stated yet
2.2.4-16M28K4writtennot stated yet

Something is wrong? Report it.