Learn · Volume 1 · in the Volume 1 course
Section 1.3.1. Description of MIX
26 exercises: 26 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.
- P1. Proof, induction and invariants
- P2. Concrete mathematics
- C1, Section 1.1. Algorithms draft
- C1, Section 1.2.4. Integer functions and elementary number theory draft
2. Read the section
Read Section 1.3.1 in your copy of the book. Then read the companion chapter Description of MIX (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.3.1 train the exact reading of the MIX machine: the byte and the word, the instruction format, the effect of each operator on the registers and on the two indicators, and the writing of short programs under hard limits of space and time. A good order is 1.3.1-1 to 1.3.1-4 (bytes and fields), then 1.3.1-5, 1.3.1-6, 1.3.1-12, 1.3.1-13 and 1.3.1-15 (reading and writing instructions), then 1.3.1-7 to 1.3.1-11 (exact rules of DIV and lists of operators), then 1.3.1-14, 1.3.1-16, 1.3.1-20 and 1.3.1-24 (programs with one idea), then 1.3.1-17 to 1.3.1-19, 1.3.1-21 and 1.3.1-23 (traces and tricks), and last 1.3.1-22, 1.3.1-25 and 1.3.1-26 (space and time optimization, design of an extension and the card loader).
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 |
|---|---|---|---|---|
| 1.3.1-1 | 00 | K3 | written | not stated yet |
| 1.3.1-4 | 00 | informal | written | not stated yet |
| 1.3.1-2 | 02 | K3 | written | not stated yet |
| 1.3.1-3 | 02 | K3 | written | not stated yet |
| 1.3.1-5 | 10 | K3 | written | not stated yet |
| 1.3.1-6 | 10 | K8 | written | not stated yet |
| 1.3.1-12 | 10 | K3 | written | not stated yet |
| 1.3.1-13 | 10 | K2 | written | not stated yet |
| 1.3.1-15 | 10 | K3 | written | not stated yet |
| 1.3.1-19 | 14 | K8 | written | not stated yet |
| 1.3.1-7 | M15 | K8 | written | not stated yet |
| 1.3.1-8 | 15 | K8 | written | not stated yet |
| 1.3.1-9 | 15 | K3 | written | not stated yet |
| 1.3.1-10 | 15 | K3 | written | not stated yet |
| 1.3.1-11 | 15 | K3 | written | not stated yet |
| 1.3.1-14 | 20 | K3 | written | not stated yet |
| 1.3.1-16 | 20 | K6 | written | not stated yet |
| 1.3.1-20 | 20 | K6 | written | not stated yet |
| 1.3.1-24 | 21 | K6 | written | not stated yet |
| 1.3.1-18 | 22 | K8 | written | not stated yet |
| 1.3.1-21 | 24 | K6 | written | not stated yet |
| 1.3.1-17 | 26 | K6 | written | not stated yet |
| 1.3.1-23 | 27 | K6 | written | not stated yet |
| 1.3.1-22 | 28 | K6 | written | not stated yet |
| 1.3.1-25 | 30 | informal | written | not stated yet |
| 1.3.1-26 | 32 | K6 | written | not stated yet |
Something is wrong? Report it.