TAOCP Vol 3: Sorting and Searching ยท Week 106

TAOCP 5.4.7 External Radix Sorting

Updated

About 3 hours7 exercises, rated 15 to M35

Summary

TAOCP 5.4.7 External Radix Sorting: Doing radix sort on data that lives on external storage, distributing into files by digit. Budget about 3 hours; do exercises 5, 1 and 6.

Flashcards 10 cards for Anki and AnkiMobile ยท all decks

Anki deck.tsv

This week's steps

3 steps
  1. Read ยง5.4.7 External Radix Sorting

    Skim and connect it to the shuffle phase of MapReduce or Spark.

  2. Work the exercises (5 picked)

    Start with Ex 5, Ex 1, Ex 6; log what you solve below.

  3. Write down one thing you'd explain to someone

    A few sentences in your own words in Your notes: the idea, why it works, an example. 30 words ticks this.

Sign in to track this: tick each step off and it counts toward your week.

Exercises

This section has 7 exercises, rated 15 to M35, and Knuth marks 1 of them with the triangle for recommended. A small set. Do 5 and 6 to get comfortable with the duality between radix sorting and merging that the section is built on.

Worth your time

  • Exercise 120

    Show balanced merging is a radix sort in a mixed-radix number system.

    Discuss

  • Exercise 4M23

    Prove Ashenhurst's pattern is optimal for ten keys on four tapes. The math one.

    Discuss

  • Exercise 515

    Draw the merge tree that corresponds to Mauchly's backward radix sort.

    Discuss

  • Exercise 620โ–ถ Recommended

    Run Mauchly's tape radix sort twice and predict the final order.

    Discuss

  • Exercise 721

    Does the merge/radix duality carry over to multireel files?

    Discuss

Your log

Sign in to log the exercises you work: number, rating, how far you got.

Your notes

Only you

Sign in to keep private notes on this guide, in Markdown. They stay yours: never on your profile, and you can export them all.

Discussion

0 posts

Questions about the reading go here; each exercise has its own thread below. Hints over answers.

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

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

Exercise threads

One thread per exercise. Open one to ask for a nudge or check your thinking.

  • Exercise 120No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

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

  • Exercise 4M23No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

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

  • Exercise 515No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

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

  • Exercise 620No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

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

  • Exercise 721No posts yet

    Hints over answers. Say what you tried; put an answer or a full solution inside a spoiler: ||like this|| or a ```spoiler block.

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

Reference

Why it matters

Distribution-based external sorts are how many big-data systems partition data (think MapReduce shuffles).

Before you start
  • 5.2.5 Sorting by Distribution
How to approach it

Skim and connect it to the shuffle phase of MapReduce or Spark.

Spot a mistake? Report it

Back to week 106