Learn · Volume 1 · in the Volume 1 course
Section 2.2.5. Doubly linked lists
12 exercises: 12 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.
- C2.2.4, in C2. Information structures not written yet
- C1.3.1, in C1. Basic concepts not written yet
2. Read the section
Read Section 2.2.5 in your copy of the book. Then read the companion chapter Doubly linked 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 have three parts. Exercises 1 and 2 are about the doubly linked list as a deque. Exercises 3 to 10 and 12 use the elevator simulation of the text: Exercises 3 to 7 ask about the rules of the model and one bug, Exercises 8 and 9 supply the two pieces of code that the text leaves out, and Exercise 10 is an open project. Exercise 11 is a method for synchronous simulation.
Read the description of the coroutines U and E and the subroutine D in the text before Exercises 3 to 9, and keep Table 1 at hand for Exercises 5 and 6. The code for Exercises 8 and 9 was tested in a simulator of MIX against direct models of the steps it implements.
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.
| Exercise | Rating | Kind | Solution | Lean |
|---|---|---|---|---|
| 2.2.5-5 | 20 | K1 | written | not stated yet |
| 2.2.5-1 | 21 | K5 | written | not stated yet |
| 2.2.5-8 | 21 | K6 | written | not stated yet |
| 2.2.5-11 | 21 | K5 | written | not stated yet |
| 2.2.5-2 | 22 | informal | written | not stated yet |
| 2.2.5-3 | 22 | informal | written | not stated yet |
| 2.2.5-12 | 22 | informal | written | not stated yet |
| 2.2.5-6 | 23 | K5 | written | not stated yet |
| 2.2.5-9 | 23 | K6 | written | not stated yet |
| 2.2.5-4 | 24 | informal | written | not stated yet |
| 2.2.5-7 | 25 | informal | written | not stated yet |
| 2.2.5-10 | 40 | informal | written | not stated yet |
Something is wrong? Report it.