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

TAOCP 5.4.4 and 5.4.5

2 tasks, 6 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 why reading a tape backward reverses each run's order.
  • Recognize how backward reading removes rewind time between phases.
  • Explain how the oscillating sort interleaves run creation and merging.

Week 104 ยท Self-check

Three quick questions

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

  1. A tape holds runs A1, A2, A3, each written in ascending order. Read backward, what comes first?
  2. What does reading tapes backward mainly save?
  3. How does the oscillating sort differ from making all runs first and then merging?

Nothing is saved while signed out.

Discussion

0 posts

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