
Written and maintained by the PhDino author · Last reviewed 21 September 2026 · Checked against 2 independent reference calculations · how PhDino checks its numbers
How a single number (a minterm) encodes one specific row of a truth table.
A minterm is simply a numbered row of a truth table, encoded as a single integer for convenience. For a function of 4 variables (conventionally A, B, C, D), minterm number 6 written in binary is 0110 — meaning A=0, B=1, C=1, D=0 for that specific row. This numbering is exactly how textbooks and tools compactly describe "the function is 1 for minterms 2, 6, 7, and 13" instead of writing out a full four-column truth table every time.
Reading a minterm back into its variable assignments is just binary decoding: the minterm's binary representation, padded to the number of variables, gives each variable's value directly, most-significant bit first.
Minterm (binary, MSB first) = A B C D e.g. minterm 6 = 0110₂ → A=0, B=1, C=1, D=0
PhDino earns a commission on qualifying purchases made through this link, at no extra cost to you.
Code: The Hidden Language of Computer Hardware and Software by Charles Petzold — Builds from switches and logic gates up to a working computer, one clear step at a time. (Bookshop.org UK, UK delivery only)
→ The full PhDino bookshelf on Bookshop.org (UK delivery only)
