#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 3::5.4.5 The Oscillating Sort
#columns:Front	Back	Tags
TAOCP §5.4.5 The Oscillating Sort: what does it cover?	A tape sorting scheme that interleaves run creation and merging so the sort oscillates between phases, reducing tape movement.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::about
TAOCP §5.4.5: why does it matter?	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.5 cracked.guide::kind::why
TAOCP §5.4.5, exercise 4 (rated 21): what is it asking?	Show one of two table updates in Algorithm B is never read.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::exercise
TAOCP §5.4.5, exercise 1 (rated 22): what is it asking?	Specify Sobel's original oscillating sort precisely for any number of tapes.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::exercise
TAOCP §5.4.5, exercise 5 (rated M25): what is it asking?	Which run counts let Algorithm B avoid rewinding? The math one.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::exercise
TAOCP §5.4.5, exercise 3 (rated 29, recommended): what is it asking?	Chart Algorithm B on three tapes and nine runs, spot the inefficiency and fix it.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::exercise
TAOCP §5.4.5: how many exercises, and how are they rated?	5 exercises, rated 21 to 29.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::exercises
TAOCP §5.4.5: what should you be comfortable with first?	<ul><li>5.4.4 Reading Tape Backwards</li></ul>	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::prereqs
TAOCP §5.4.5: how should you work through it?	Skim.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::5.4.5 cracked.guide::kind::approach
