#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 1::2.1 Introduction
#columns:Front	Back	Tags
TAOCP §2.1 Introduction: what does it cover?	Chapter 2 opens by defining how Knuth represents data in memory: nodes made of fields, links (pointers), and the notation he uses for them. It walks through a small example with a pile of playing cards.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::about
TAOCP §2.1: why does it matter?	This notation is used for the rest of the series. It also forces you to think about data as concrete memory layout, which is exactly what C taught you in clox.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::why
TAOCP §2.1: what traps should you watch for?	<ul><li>Mixing up a link and the node it points to in Knuth's notation.</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::traps
TAOCP §2.1, exercise 1 (rated 04): what is it asking?	Follow links in the card-pile example to read off field values.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 2 (rated 10): what is it asking?	Work out when taking an address and then dereferencing gets you back where you started.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 3 (rated 11): what is it asking?	Pop the top card. The inverse of the text's push.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 4 (rated 18): what is it asking?	Insert a card at the bottom of the pile, empty pile included.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 5 (rated 21, recommended): what is it asking?	Remove the bottom card, which means walking to the node before it.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 8 (rated 18): what is it asking?	Turn one of the text's card-pile algorithms into MIX.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1, exercise 9 (rated 23): what is it asking?	Print the pile from MIX, one card per line, with face-down cards marked.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercise
TAOCP §2.1: how many exercises, and how are they rated?	9 exercises, rated 04 to 23.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::exercises
TAOCP §2.1: what should you be comfortable with first?	<ul><li>1.3 MIX</li></ul>	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::prereqs
TAOCP §2.1: how should you work through it?	Short and important. Learn the node and field notation until you can read it without thinking. Relate it to C structs and pointers.	cracked.guide cracked.guide::phase::taocp-1 cracked.guide::section::2.1 cracked.guide::kind::approach
