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

TAOCP 5.4.7 and 5.4.8

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 how external radix sorting distributes records into files by digit.
  • Compare external radix sorting with the shuffle phase of MapReduce.
  • Explain why sorting with only two tapes needs many extra passes.

Week 106 ยท Self-check

Three quick questions

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

  1. A MapReduce job sends each record to a reducer by key range. Which sorting idea is that?
  2. 1,000,000 uniformly spread keys are distributed 100 ways per pass. Memory holds 1000 records. How many passes until every pile fits?
  3. Why is sorting with only two tapes so awkward?

Nothing is saved while signed out.

Discussion

0 posts

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