#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 1::2.2.6 Arrays and Orthogonal Lists
#columns:Front	Back	Tags
TAOCP §2.2.6 Arrays and Orthogonal Lists: what does it cover?	Storing multidimensional arrays in memory, including triangular arrays, then sparse matrices stored as lists linked across both rows and columns, with a pivot step from matrix computation as the example.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::about
TAOCP §2.2.6: why does it matter?	Row-major versus column-major layout decides cache behavior in numeric code. Sparse matrix storage is how graph algorithms and scientific computing handle huge, mostly empty data.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::why
TAOCP §2.2.6, a common trap: “Index arithmetic errors with triangular arrays.” What's the catch?	Test on a 4x4 case.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::trap
TAOCP §2.2.6, exercise 1 (rated 17): what is it asking?	Address formula for a two-dimensional array whose nodes are two words long.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 2 (rated 21, recommended): what is it asking?	Generalize the array address formula to arbitrary index bounds.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 4 (rated 22): what is it asking?	Derive the address formula for an upper triangular array.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 11 (rated 11): what is it asking?	Storage cost of a sparse matrix in the orthogonal list form.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 12 (rated 20, recommended): what is it asking?	Track the values the pivot algorithm holds at one step.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 13 (rated 22, recommended): what is it asking?	Why the sparse matrix uses circular lists, and whether it has to.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 24 (rated 25, recommended): what is it asking?	Get zero-on-first-read array behavior without clearing memory. The sparse array trick.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6, exercise 15 (rated 29, recommended): what is it asking?	Write the sparse pivot algorithm in MIXAL with floating point. The stretch.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercise
TAOCP §2.2.6: how many exercises, and how are they rated?	24 exercises, rated 11 to 33.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::exercises
TAOCP §2.2.6: what should you be comfortable with first?	<ul><li>2.2.5 Doubly Linked Lists</li><li>Basic matrices</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::prereqs
TAOCP §2.2.6: how should you work through it?	Derive the address formula for row-major storage yourself. Then implement the orthogonal list representation for a tiny sparse matrix and check it by printing rows and columns.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.2.6 cracked.guide::kind::approach
