Chapter 7

Zhegalkin Polynomials

[17/100%]
Show
LaTeX
Problem 176

Prove equivalences (6)-(9).

?
Problem 177

Using the basic equivalences and identities (6)-(9), find equivalent reduced Zhegalkin polynomials and prove the equivalence of the following pairs of formulas:

?
(a)

Φ=((z∧(x→y))∨¬(¬x→z)),Ψ=(x→(y∧z))\Phi =((z \wedge (x \rightarrow y)) \vee \neg (\neg x \rightarrow z)), \Psi =(x \rightarrow (y \wedge z));

(b)

Φ=¬(x→(y∧z))∧(¬y∨¬x)\Phi =\neg (x \rightarrow (y \wedge z)) \wedge (\neg y \vee \neg x), Ψ=(¬(x→y)∨z)∧¬((¬x∧z)∨(y∧z));\Psi =(\neg (x \rightarrow y) \vee z) \wedge \neg ((\neg x \wedge z) \vee (y \wedge z)) ;

(c)

Φ=(((y∧z)→¬(x∨z))∧¬(¬y∧z∧x)),Ψ=(z→(¬y∧¬x));\Phi =(((y \wedge z) \rightarrow \neg (x \vee z)) \wedge \neg (\neg y \wedge z \wedge x)), \Psi =(z \rightarrow (\neg y \wedge \neg x)) ;

(d)

Φ=¬(((x→y)∨¬z)∧x),Ψ=(¬(z→y)∨¬x)\Phi =\neg (((x \rightarrow y) \vee \neg z) \wedge x), \Psi =(\neg (z \rightarrow y) \vee \neg x);

(e)

Φ=(¬((x→y)∨¬(y→x))∧z),Ψ=¬((x∧z)→y)\Phi =(\neg ((x \rightarrow y) \vee \neg (y \rightarrow x)) \wedge z), \Psi =\neg ((x \wedge z) \rightarrow y).

Problem 178

Under a lexicographic ordering of the tuples of arguments, the values of the Boolean function f(x1,x2,x3)f\left(x_{1}, x_{2}, x_{3}\right) form the sequence (1001 0001). Write out explicitly the system of equations for finding the Zhegalkin polynomial by the method of undetermined coefficients, find its solution, and construct the Zhegalkin polynomial for ff.

?
Problem 179

Find the Zhegalkin polynomials (by the method of undetermined coefficients and using the matrix JJ) for the following functions f(x,y,z)f(x, y, z). We assume that the tuples of arguments of the functions are ordered lexicographically and their values are given by a sequence of 8 zeros and ones:

?
(a)

f=(00101100)f=(00101100);

(b)

f=(11101100)f=(11101100);

(c)

f=(11000011)f=(11000011);

(d)

f=(01101011)f=(01101011).

Problem 180

Find, using the method of undetermined coefficients, the Zhegalkin polynomials for the following functions:

?
(a)

f(x,y,z)=(x↑y)→(¬y∨z)f(x, y, z)=(x \uparrow y) \rightarrow (\neg y \vee z);

(b)

the values of the function g(x,y,z,u)g(x, y, z, u) are given by the following sequence of zeros and ones under a lexicographic ordering of the arguments: (10101100 0110 1101);

(c)

h(x,y,z)=(x∧¬y∧¬z)∨(¬x→(y∧z∧¬u))h(x, y, z)=(x \wedge \neg y \wedge \neg z) \vee (\neg x \rightarrow (y \wedge z \wedge \neg u)).

Problem 181

Prove that for a Boolean function f(x1,x2,…,xn)f\left(x_{1}, x_{2}, \ldots , x_{n}\right) the Zhegalkin polynomial can be obtained by expanding the parentheses in the following formula and simplifying it:

pf(x1,x2,…,xn)==⨁f(σ1,σ2,…,σn)=1(x1⊕σ1⊕1)(x2⊕σ2⊕1)…(xn⊕σn⊕1). \begin{aligned} & p_{f}\left(x_{1}, x_{2}, \ldots , x_{n}\right)= \\ & \quad =\bigoplus _{f\left(\sigma _{1}, \sigma _{2}, \ldots , \sigma _{n}\right)=1}\left(x_{1} \oplus \sigma _{1} \oplus 1\right)\left(x_{2} \oplus \sigma _{2} \oplus 1\right) \ldots \left(x_{n} \oplus \sigma _{n} \oplus 1\right). \end{aligned}
?
Problem 182

Using the previous problem, find the Zhegalkin polynomials for the following functions. The values of the functions f(x,y,z)f(x, y, z) and g(x,y,z)g(x, y, z) are given by sequences of zeros and ones under a lexicographic ordering of the arguments:

?
(a)

f=(01101000)f=(01101000);

(b)

g=(10101100)g=(10101100);

(c)

h(x,y,z)=(x∧¬y∧z)→(y∧z)h(x, y, z)=(x \wedge \neg y \wedge z) \rightarrow (y \wedge z).

Problem 183

Prove that a Zhegalkin polynomial is identically equal to zero if and only if all its coefficients αi\alpha_{i} in the representation (10) are equal to zero.

?
Problem 184

The length of a Zhegalkin polynomial is the number of its terms. For example, the polynomial p(x1,x2)=1⊕x1⊕x1x2p\left(x_{1}, x_{2}\right)=1 \oplus x_{1} \oplus x_{1} x_{2} has length three. Determine how many distinct Zhegalkin polynomials of nn variables and length kk there are that simultaneously vanish on the tuples (0,0,…,0)(0,0, \ldots , 0) and (1,1,…,1)(1,1, \ldots , 1), consisting of all zeros and all ones, respectively.

?
Problem 185

Let the reduced Zhegalkin polynomial p(x1,…,xn)p\left(x_{1}, \ldots , x_{n}\right) take value 1 on exactly one tuple (σ1,…,σn)(\sigma_{1}, \ldots , \sigma_{n}). Find its length.

?
Problem 186

Find a Boolean function of nn variables for which the reduced Zhegalkin polynomial has the greatest length.

?
Problem 187

What happens to a Boolean function if in the Zhegalkin polynomial (10) all the coefficients are changed to their opposites?

?
Problem 188

Let the reduced Zhegalkin polynomial p(x1,…,xn)p\left(x_{1}, \ldots , x_{n}\right) take value 1 on exactly two opposite tuples: (σ1,…,σn)\left(\sigma_{1}, \ldots , \sigma_{n}\right) and (¬σ1,…,¬σn)(\neg \sigma_{1}, \ldots , \neg \sigma_{n}). Find its length.

?
Problem 189

Prove that the reduced Zhegalkin polynomial p(x1,…,xn)p\left(x_{1}, \ldots , x_{n}\right) defines a function that is commutative in every pair of arguments if and only if for every k=0,…,nk=0, \ldots , n the polynomial either contains all possible terms with kk factors, or contains none of them.

?
Problem 190

Let the length of a Zhegalkin polynomial be defined as in problem 184 on the previous page. By induction on n⩾1n \geqslant 1, prove that for every k=0,…,2nk=0, \ldots , 2^{n} there exists a Zhegalkin polynomial p(x1,…,xn)p\left(x_{1}, \ldots , x_{n}\right) of length no greater than nn that equals one on exactly kk tuples of arguments.

?
Problem 191

Let the Zhegalkin polynomial be given by the formula

pn(x1,…,xn)=1⊕x1⊕x1x2⊕x1x2x3⊕…⊕x1x2…xn. p_{n}\left(x_{1}, \ldots , x_{n}\right)=1 \oplus x_{1} \oplus x_{1} x_{2} \oplus x_{1} x_{2} x_{3} \oplus \ldots \oplus x_{1} x_{2} \ldots x_{n}.

Prove by induction on n⩾1n \geqslant 1 that this polynomial equals one on exactly 13(2n+1+(−1)n)\frac{1}{3}\left(2^{n+1}+(-1)^{n}\right) tuples of arguments.

?
Problem 192

Let a nonzero Zhegalkin polynomial with nn variables contain no terms with more than kk variables, k⩽nk \leqslant n. Using induction on nn, prove that the number of ones among the values of this polynomial is at least 2n−k2^{n-k}.

?