Each row of a truth table has a row index: its input pattern read as a binary number. With inputs A, B, C, the first variable A is the most significant bit, so the weights are 4, 2, 1. With A, B, C, D they are 8, 4, 2, 1.
- Row
110with three inputs is 4 + 2 = 6. - Row 13 with four inputs is
1101: A = 1, B = 1, C = 0, D = 1.
The index is how minterms and maxterms are named. mᵢ is the minterm that is 1 on row i; Mᵢ is the maxterm that is 0 on row i. Lists like Σm(1, 5, 6) and ΠM(0, 3) are just lists of row indices.
Pad to n bits. Before converting an index to a term, write it with exactly one bit per variable. With four inputs, 4 is 0100, not 100. Leaving out the leading 0 drops a variable from the term, which then covers two rows instead of one.
The ordering also matters: if someone lists the variables in a different order, every row number changes. This course always takes the first-listed variable as the MSB.