taocp

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

Exercise · Volume 1 · 1.3.1-15

Exercise 1.3.1-15

not stated yet in Lean solution written

Rating10
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.3.1 of Volume 1. Companion chapter: Description of MIX

The task

Give the number of characters in one block of a typewriter or paper tape, a card reader or punch, and a line printer.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

A block is a number of words. Look up the block sizes in the table of input-output units in Section 1.3.1.

Hint 2

One word holds five characters.

Solution

Show the solution

A typewriter or paper-tape block has 1414 words, a card block has 1616 words, and a line-printer block has 2424 words. With five characters in a word the numbers of characters are 14⋅5=7014 \cdot 5 = 70, 16⋅5=8016 \cdot 5 = 80 and 24⋅5=12024 \cdot 5 = 120.

Check

python3: [5*k for k in (14, 16, 24)] gives [70, 80, 120]. These are the line lengths of a typewriter, a card and a printer.

Remarks

The three results are the familiar widths of a line: 70, 80 and 120 columns.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.