#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 3::5.4.8 Two-Tape Sorting
#columns:Front	Back	Tags
TAOCP §5.4.8 Two-Tape Sorting: what does it cover?	What you can do with only two tapes, and why it is so much harder than with three or more.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::about
TAOCP §5.4.8: why does it matter?	Mostly of theoretical and historical interest. Honest note: the tape-merging sections describe hardware nobody uses anymore. Knuth himself says much of 5.4 is historical. The ideas (run generation, merge patterns, minimizing passes over slow storage) still apply to external sorting on disks and SSDs, database sort operators and big-data shuffles, so read for those ideas and skim the tape mechanics.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::why
TAOCP §5.4.8, exercise 1 (rated 20): what is it asking?	Can two-tape bubble sorting gain from reading backward?	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8, exercise 10 (rated 20): what is it asking?	How would you sort several reels of data with just two tapes?	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8, exercise 4 (rated M23): what is it asking?	Build an elevator schedule when some floors need no stops.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8, exercise 5 (rated M23, recommended): what is it asking?	True or false: a claim about passengers' destinations after the first step of the elevator algorithm.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8, exercise 9 (rated M25, recommended): what is it asking?	Connect cocktail-shaker sort to the elevator problem's counts.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8, exercise 2 (rated M26): what is it asking?	Closed forms for the two-tape pass counts. The math stretch.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercise
TAOCP §5.4.8: how many exercises, and how are they rated?	10 exercises, rated 20 to M40.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::exercises
TAOCP §5.4.8: what should you be comfortable with first?	<ul><li>5.4.1 Multiway Merging</li></ul>	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::prereqs
TAOCP §5.4.8: how should you work through it?	Skim.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.8 cracked.guide::kind::approach
