Week 48 of 145 ยท TAOCP Vol 1: Fundamental Algorithms

TAOCP 1.4.4 and 1.4.5

3 tasks, 8 steps. Open a task's steps to see exactly what to do; each guide has the detail.

Sign up or sign in to tick these off and give this week a due date.

By the end of this week you can

  • Explain how buffering overlaps computation with slow input and output.
  • Trace buffer swapping as the program and a device trade two buffers.
  • Recognize how subroutines, coroutines and interpreters developed historically.

Week 48 ยท Self-check

Three quick questions

Ungraded, and it never holds anything up. Pick an answer to see why.

  1. What does buffer swapping, with two buffers, let a program do?
  2. Reading a block takes T = 10u and computing on it takes C = 10u. With buffer swapping, about how long do 100 blocks take?
  3. Which MIX instruction jumps if an I/O unit is busy?

Nothing is saved while signed out.

Discussion

0 posts

Stuck on week 48, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.

No posts yet. Ask a question or share a tip.

Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Spot a mistake? Report it