#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::TAOCP Vol 4A::7.1.1 Boolean Basics (part 2)
#columns:Front	Back	Tags
TAOCP §7.1.1 Boolean Basics (part 2): what does it cover?	Part 2 finishes 7.1.1 (book pages 62 to 78): the median (majority) operation and monotone self-dual functions, median algebras and median graphs with their labels, median sets, threshold functions, symmetric Boolean functions, canalizing functions, and a closing table comparing how many functions of n variables fall into each class.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::about
TAOCP §7.1.1 (part 2): why does it matter?	Horn clauses are the basis of Prolog and Datalog, and 2SAT is one of the few satisfiability problems solvable in linear time, a classic competitive programming trick.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::why
TAOCP §7.1.1 (part 2), fill in the blank:<br>Horn clauses are the basis of Prolog and Datalog, and 2SAT is one of the few satisfiability problems solvable in <span class="cg-blank">&nbsp;</span>, a classic competitive programming trick.	Horn clauses are the basis of Prolog and Datalog, and 2SAT is one of the few satisfiability problems solvable in <b>linear time</b>, a classic competitive programming trick.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::complexity
TAOCP §7.1.1 (part 2), a common trap: “Expecting Horn clauses and 2SAT here.” What's the catch?	They are in part 1; this half is about medians and special classes of functions.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::trap
TAOCP §7.1.1 (part 2), a common trap: “Skipping the median material because it looks abstract.” What's the catch?	Median graphs connect 2SAT solutions, hypercube labels and distance problems.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::trap
TAOCP §7.1.1 (part 2), exercise 60 (rated 12): what is it asking?	Decide which formulas really compute the median of three. Quick check that you know majority from its look-alikes.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 65 (rated M21, recommended): what is it asking?	Translate families of sets into Boolean functions and see which properties of the family become monotone or self-dual. The set view is used again for ZDDs.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 71 (rated M21, recommended): what is it asking?	Derive the long distributive law of median algebras from the short one. Short axiomatic practice.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 99 (rated 20, recommended): what is it asking?	Prove a median identity that lets you fold repeated inputs. Good warm-up for threshold functions.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 106 (rated M25, recommended): what is it asking?	Compare two binary numbers with a single large median. A threshold function with a hardware flavor.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 128 (rated 20, recommended): what is it asking?	Find a function true at exactly two points that is not canalizing. Checks you understand the definition.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 133 (rated 20, recommended): what is it asking?	Choose coin biases so the probability that a function of the random bits is 1 equals its truth table read as a binary fraction. A cute link between truth tables and probabilities.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2), exercise 67 (rated M30, recommended): what is it asking?	Express the Y function (from the board game Y) as nested medians on a triangular grid. The stretch.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercise
TAOCP §7.1.1 (part 2): how many exercises, and how are they rated?	133 exercises, rated 05 to M48.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::exercises
TAOCP §7.1.1 (part 2): what should you be comfortable with first?	<ul><li>7.1.1 part 1</li></ul>	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::prereqs
TAOCP §7.1.1 (part 2): how should you work through it?	Read the threshold and symmetric function material with pencil in hand: build a few small examples and check them against the definitions before moving on.	cracked.guide cracked.guide::phase::taocp-4a cracked.guide::section::7.1.1 cracked.guide::kind::approach
