#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 3::6.2.4 Multiway Trees
#columns:Front	Back	Tags
TAOCP §6.2.4 Multiway Trees: what does it cover?	B-trees and their variants: nodes with many keys sized to a disk page, insertion by splitting, and analysis of their height and space usage.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::about
TAOCP §6.2.4: why does it matter?	B-trees are the index structure inside nearly every database and filesystem (SQLite, Postgres, NTFS, APFS).	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::why
TAOCP §6.2.4: what traps should you watch for?	<ul><li>Off-by-one on the minimum and maximum keys per node when splitting.</li></ul>	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::traps
TAOCP §6.2.4, exercise 1 (rated 10): what is it asking?	Insert a key into a B-tree of order 7 by hand.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 2 (rated 15): what is it asking?	Same insertion with overflow and three-way splitting.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 5 (rated 21, recommended): what is it asking?	Worst-case fill after a split with variable-length keys.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 9 (rated 22): what is it asking?	Use a B-tree to index a list by position instead of by key.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 3 (rated 23, recommended): what is it asking?	When do sequential inserts first push the leaves to level 4, under three splitting policies?	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 6 (rated 23): what is it asking?	Design B-tree deletion. The algorithm the text leaves to you.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4, exercise 10 (rated 35, recommended): what is it asking?	Concurrent access to a shared B-tree. An open-ended design question that leads to database locking.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercise
TAOCP §6.2.4: how many exercises, and how are they rated?	10 exercises, rated 10 to HM37.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::exercises
TAOCP §6.2.4: what should you be comfortable with first?	<ul><li>6.2.3 Balanced Trees</li><li>5.4.9 Disks and Drums</li></ul>	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::prereqs
TAOCP §6.2.4: how should you work through it?	Implement an in-memory B-tree with insertion and search. Then read how SQLite lays out its B-tree pages to connect it to the real world.	cracked.guide cracked.guide::phase::taocp-3 cracked.guide::section::6.2.4 cracked.guide::kind::approach
