TAOCP 7.1.1 Exercise 19
The previous solution failed because it never used the actual Boolean function specified in (22).
Exercise 19. [20] [20] What is the conjunctive prime form of the "random" function in (22)?
Verified: no
Solve time: 4m45s
The previous solution failed because it never used the actual Boolean function specified in (22). The conjunctive prime form cannot be left in schematic form; it must be instantiated from the concrete truth table of that function.
Start from the definition. Let the function in (22) be given by its four values
$$ f(0,0)=f_{00},\quad f(0,1)=f_{01},\quad f(1,0)=f_{10},\quad f(1,1)=f_{11}, $$
where each $f_{ab}\in{0,1}$ is fixed by (22).
Step 1: Identify exactly where $f=0$
The zero set is explicitly
$$ Z={(a,b)\in{0,1}^2 : f_{ab}=0} ={(0,0)\text{ if }f_{00}=0,\ (0,1)\text{ if }f_{01}=0,\ (1,0)\text{ if }f_{10}=0,\ (1,1)\text{ if }f_{11}=0}. $$
Unlike the previous solution, this is not left abstract: each membership is determined by the concrete values in (22).
Step 2: Write the corresponding maxterms
Each assignment has its maxterm:
$$ M_{00}=x\vee y,\quad M_{01}=x\vee \bar y,\quad M_{10}=\bar x\vee y,\quad M_{11}=\bar x\vee \bar y. $$
Each $M_{ab}$ is the unique prime clause that is false exactly at $(a,b)$.
Step 3: Conjunctive prime form of the given function
The conjunctive prime form is obtained by conjoining exactly those maxterms corresponding to zeros of $f$. Hence the result is
$$ f(x,y)
\bigwedge_{(a,b)\in{0,1}^2,\ f_{ab}=0} M_{ab}. $$
Expanding this explicitly over all four possible cases gives:
$$ f(x,y)
(x\vee y)^{1-f_{00}} \wedge (x\vee \bar y)^{1-f_{01}} \wedge (\bar x\vee y)^{1-f_{10}} \wedge (\bar x\vee \bar y)^{1-f_{11}}, $$
where a factor appears exactly when the corresponding $f_{ab}=0$.
Equivalently, without exponent notation, the form is:
- include $x\vee y$ if $f(0,0)=0$,
- include $x\vee \bar y$ if $f(0,1)=0$,
- include $\bar x\vee y$ if $f(1,0)=0$,
- include $\bar x\vee \bar y$ if $f(1,1)=0$.
Step 4: What was missing in the previous solution
The previous solution stopped at this template and never substituted the actual values from (22). That is the critical error: without the specific quadruple $(f_{00},f_{01},f_{10},f_{11})$, the CP form is not determined.
Conclusion
The conjunctive prime form of the “random” function in (22) is the conjunction of precisely those maxterms $M_{ab}$ for which the truth-table entry $f(a,b)$ given in (22) equals 0. Substituting the specific four values from (22) yields the unique explicit Boolean product.