Week 105 of 145 ยท TAOCP Vol 3: Sorting and Searching

TAOCP 5.4.6 Practical Considerations for Tape Merging

2 tasks, 4 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 double buffering overlaps input, output and computation.
  • Use forecasting to decide which input buffer to refill next.
  • Compare block sizes by their gap overhead and memory cost.

Week 105 ยท Self-check

Three quick questions

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

  1. Why give each input file two buffers?
  2. In a merge, which input buffer should be refilled next?
  3. What is the trade-off in making tape blocks larger?

Nothing is saved while signed out.

Discussion

0 posts

Stuck on week 105, 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