Boolean algebra identities - Discrete Math

Start this quiz

  1. Which of the following demonstrates a correct application of the consensus theorem in Boolean algebra? The consensus theorem states that xy+x‾z+yz=xy+x‾zxy + \overline{x}z + yz = xy + \overline{x}z.
    Answer: (a+b)(a‾+c)(b+c)=(a+b)(a‾+c)(a + b)(\overline{a} + c)(b + c) = (a + b)(\overline{a} + c) The consensus theorem removes the term built from the two terms that contain a variable and its complement. Its dual form is (x+y)(x‾+z)(y+z)=(x+y)(x‾+z)(x + y)(\overline{x} + z)(y + z) = (x + y)(\overline{x} + z); with x=ax = a, y=by = b, z=cz = c, the factor (b+c)(b + c) is redundant, so (a+b)(a‾+c)(b+c)=(a+b)(a‾+c)(a + b)(\overline{a} + c)(b + c) = (a + b)(\overline{a} + c). The other identities fail. Dropping a‾c\overline{a}c instead of the consensus term bcbc is wrong: at a=0,b=0,c=1,d=0a = 0, b = 0, c = 1, d = 0 the left side is 1 and the right side is 0. Dropping zz from xyz‾+x‾yz+zxy\overline{z} + \overline{x}yz + z is not consensus; at x=1,y=0,z=1x = 1, y = 0, z = 1 the sides are 1 and 0. Dropping abab from abc+a‾bc+ababc + \overline{a}bc + ab fails at a=1,b=1,c=0a = 1, b = 1, c = 0, where the sides are 1 and 0.
  2. Consider the Boolean identity (A+B)(A+B‾)=A(A + B)(A + \overline{B}) = A. If we generalize this to (X+Y)(X+Y‾)=X(X + Y)(X + \overline{Y}) = X, which of the following correctly explains why this identity holds?
    Answer: By the distributive law: XX+XY‾+YX+YY‾=X+XY‾+YX+0=X(1+Y‾+Y)=XXX + X\overline{Y} + YX + Y\overline{Y} = X + X\overline{Y} + YX + 0 = X(1 + \overline{Y} + Y) = X Applying the distributive law to (X+Y)(X+Y‾)(X + Y)(X + \overline{Y}): we get XX+XY‾+YX+YY‾XX + X\overline{Y} + YX + Y\overline{Y}. Using the idempotent law XX=XXX = X, the complement law YY‾=0Y\overline{Y} = 0, and the identity law for addition with 0: X+XY‾+YX+0=X+XY‾+YX=X(1+Y‾+Y)X + X\overline{Y} + YX + 0 = X + X\overline{Y} + YX = X(1 + \overline{Y} + Y). Since Y‾+Y=1\overline{Y} + Y = 1 and 1+1=11 + 1 = 1, we get X(1)=XX(1) = X. Choice A incorrectly uses X2X^2, Choice B omits the YY‾=0Y\overline{Y} = 0 step, and Choice D incorrectly factors the expression.
  3. In Boolean algebra, which of the following expressions is equivalent to A‾B+AB‾‾⋅(A+B)\overline{\overline{A}B + A\overline{B}} \cdot (A + B) after applying De Morgan's laws and simplification?
    Answer: ABAB First, recognize that ĀB + AB̄ is the XOR operation (A ⊕ B). So we have (A ⊕ B)¯ · (A + B). The complement of XOR is the XNOR operation: (A ⊕ B)¯ = AB + ĀB̄. Therefore, the expression becomes (AB + ĀB̄)(A + B). Expanding: AB(A + B) + ĀB̄(A + B) = AB·A + AB·B + ĀB̄·A + ĀB̄·B = AB + AB + 0 + 0 = AB. Choice A gives the unsimplified product-of-sums form. Choice B represents XNOR but doesn't account for the (A + B) factor. Choice C represents XOR, which is the opposite of what we want.
  4. A Boolean function F(A,B,C)=AB+AC‾+B‾CF(A,B,C) = AB + A\overline{C} + \overline{B}C is to be minimized. After applying the consensus theorem and other reduction identities, which term can be eliminated?
    Answer: The term B‾C\overline{B}C can be eliminated because it is the consensus of ABAB and AC‾A\overline{C} The consensus theorem states that XY+X‾Z+YZ=XY+X‾ZXY + \overline{X}Z + YZ = XY + \overline{X}Z (the YZYZ term can be eliminated). Here, we can rewrite as AB+AC‾+B‾CAB + A\overline{C} + \overline{B}C. We need terms of the form XY+X‾Z+YZXY + \overline{X}Z + YZ. Looking at AC‾+A‾B+C‾BA\overline{C} + \overline{A}B + \overline{C}B - this doesn't directly fit. However, we can check if B‾C\overline{B}C is the consensus of the other terms. For consensus, we need AB+AC‾AB + A\overline{C} to imply B‾C\overline{B}C in some cases. Actually, B‾C\overline{B}C is indeed the consensus term and can be eliminated, leaving AB+AC‾AB + A\overline{C}.
  5. The Boolean identity A+AB=AA + AB = A is known as the absorption law. Which of the following expressions demonstrates the dual form of this absorption law?
    Answer: A(A+B)=AA(A + B) = A showing that multiplication absorbs addition when terms share variables In Boolean algebra, every law has a dual obtained by swapping + with · and 0 with 1. The absorption law A+AB=AA + AB = A has the dual A(A+B)=AA(A + B) = A. We can verify this: A(A+B)=AA+AB=A+AB=AA(A + B) = AA + AB = A + AB = A (using idempotency and the original absorption law). Choice A correctly states this dual form. Choice B is just commutativity, Choice C is the same law with complements (not the dual), and Choice D incorrectly states that A(A+B)=A+ABA(A + B) = A + AB when it actually equals AA.
  6. Which of the following Boolean expressions is NOT equivalent to the others?
    Answer: (A+B)(A‾+B‾)(A + B)(\overline{A} + \overline{B}) When you encounter Boolean equivalence problems, your goal is to simplify each expression to its most basic form and compare the results. Boolean algebra follows specific rules like De Morgan's laws, distributive properties, and complement rules. Let's work through each expression systematically. For option A, (A+B)(A‾+B‾)(A + B)(\overline{A} + \overline{B}), use the distributive property: AA‾+AB‾+BA‾+BB‾A\overline{A} + A\overline{B} + B\overline{A} + B\overline{B}. Since AA‾=0A\overline{A} = 0 and BB‾=0B\overline{B} = 0, this simplifies to AB‾+BA‾A\overline{B} + B\overline{A}, which is the XOR operation A⊕BA \oplus B. Option B, A‾B‾+AB\overline{A}\overline{B} + AB, is already in simplified form and represents the XNOR operation A⊕B‾\overline{A \oplus B} (true when both inputs are the same). For option C, A+B‾+A‾+B‾‾\overline{A + B} + \overline{\overline{A} + \overline{B}}, apply De Morgan's law. The first term A+B‾=A‾B‾\overline{A + B} = \overline{A}\overline{B}. The second term A‾+B‾‾=AB\overline{\overline{A} + \overline{B}} = AB (by De Morgan's law again). So this becomes A‾B‾+AB\overline{A}\overline{B} + AB, which matches option B. Option D, A⊕B‾\overline{A \oplus B}, is literally the XNOR operation, equivalent to A‾B‾+AB\overline{A}\overline{B} + AB. Options B, C, and D all simplify to A‾B‾+AB\overline{A}\overline{B} + AB (XNOR), while option A simplifies to AB‾+BA‾A\overline{B} + B\overline{A} (XOR). These are complements of each other. Study tip: When checking Boolean equivalence, always simplify to sum-of-products form and watch for XOR versus XNOR patterns—they're frequently confused on exams.
  7. The Boolean expression A‾B+AB‾‾⋅(A+B)\overline{\overline{A}B + A\overline{B}} \cdot (A + B) simplifies to which of the following?
    Answer: ABAB When simplifying Boolean expressions, your goal is to systematically apply Boolean algebra laws to reduce the expression to its simplest form. This problem tests your ability to work with complements, distribution, and absorption laws. Let's simplify A‾B+AB‾‾⋅(A+B)\overline{\overline{A}B + A\overline{B}} \cdot (A + B) step by step. First, apply De Morgan's law to the complement: A‾B+AB‾‾=A‾B‾⋅AB‾‾\overline{\overline{A}B + A\overline{B}} = \overline{\overline{A}B} \cdot \overline{A\overline{B}}. Using De Morgan's again: =(A+B‾)⋅(A‾+B)= (A + \overline{B}) \cdot (\overline{A} + B). Now our expression becomes: (A+B‾)⋅(A‾+B)⋅(A+B)(A + \overline{B}) \cdot (\overline{A} + B) \cdot (A + B). Expanding the first two terms using distribution: (A+B‾)⋅(A‾+B)=AA‾+AB+A‾B‾+B‾B=0+AB+A‾B‾+0=AB+A‾B‾(A + \overline{B}) \cdot (\overline{A} + B) = A\overline{A} + AB + \overline{A}\overline{B} + \overline{B}B = 0 + AB + \overline{A}\overline{B} + 0 = AB + \overline{A}\overline{B}. So we have: (AB+A‾B‾)⋅(A+B)(AB + \overline{A}\overline{B}) \cdot (A + B). Distributing: AB(A+B)+A‾B‾(A+B)=AB+AB+A‾B‾A+A‾B‾B=AB+0+0=ABAB(A + B) + \overline{A}\overline{B}(A + B) = AB + AB + \overline{A}\overline{B}A + \overline{A}\overline{B}B = AB + 0 + 0 = AB. Choice A gives the intermediate step but isn't fully simplified. Choice B shows AB+A‾B‾AB + \overline{A}\overline{B}, which is what we had before applying the final (A+B)(A + B) term. Choice C represents the original expression A‾B+AB‾\overline{A}B + A\overline{B} (exclusive OR) multiplied by (A+B)(A + B), but doesn't account for the complement. Choice D correctly gives ABAB, the final simplified result. Remember: when simplifying Boolean expressions, work systematically through complement laws, distribution, and always check if further reduction is possible using absorption or consensus laws.
  8. Consider the Boolean expression (A+B)(A‾+C)(B+C)(A + B)(\overline{A} + C)(B + C). Which of the following is the simplified form after applying Boolean algebra identities?
    Answer: AC+BCAC + BC Expanding (A+B)(A‾+C)(B+C)(A + B)(\overline{A} + C)(B + C): First expand (A+B)(A‾+C)=AA‾+AC+BA‾+BC=AC+BA‾+BC(A + B)(\overline{A} + C) = A\overline{A} + AC + B\overline{A} + BC = AC + B\overline{A} + BC (since AA‾=0A\overline{A} = 0). Then multiply by (B+C)(B + C): (AC+BA‾+BC)(B+C)=ACB+ACC+BA‾B+BA‾C+BCB+BCC=ABC+AC+BA‾C+BC(AC + B\overline{A} + BC)(B + C) = ACB + ACC + B\overline{A}B + B\overline{A}C + BCB + BCC = ABC + AC + B\overline{A}C + BC (using idempotent laws). Since ABC⊆ACABC \subseteq AC and BA‾C⊆BCB\overline{A}C \subseteq BC, we get AC+BCAC + BC.
  9. Using the Boolean algebra identity A⊕B⊕C=(ABC)+(A‾B‾C)+(A‾BC‾)+(AB‾C‾)A \oplus B \oplus C = (ABC) + (\overline{A}\overline{B}C) + (\overline{A}B\overline{C}) + (A\overline{B}\overline{C}), which expression is equivalent to x⊕y⊕z‾\overline{x \oplus y \oplus z}?
    Answer: x‾y‾z‾+x‾yz+xy‾z+xyz‾\overline{x}\overline{y}\overline{z} + \overline{x}yz + x\overline{y}z + xy\overline{z} A three-way XOR is 1 exactly when an odd number of inputs are 1, which is what the given identity lists: 111, 001, 010 and 100. Its complement x⊕y⊕z‾\overline{x \oplus y \oplus z} is 1 exactly when an even number of inputs are 1: 000, 011, 101 and 110. Those minterms are x‾y‾z‾\overline{x}\overline{y}\overline{z}, x‾yz\overline{x}yz, xy‾zx\overline{y}z and xyz‾xy\overline{z}, so the complement is x‾y‾z‾+x‾yz+xy‾z+xyz‾\overline{x}\overline{y}\overline{z} + \overline{x}yz + x\overline{y}z + xy\overline{z}. The sum xyz+x‾y‾z+x‾yz‾+xy‾z‾xyz + \overline{x}\overline{y}z + \overline{x}y\overline{z} + x\overline{y}\overline{z} is the original XOR, not its complement. The sum containing xyzxyz in place of xyz‾xy\overline{z} includes the odd-parity term 111. The sum xyz+x‾yz‾+xy‾z+x‾y‾z‾xyz + \overline{x}y\overline{z} + x\overline{y}z + \overline{x}\overline{y}\overline{z} mixes two odd-parity terms (111 and 010) with two even ones.
  10. Consider the Boolean function F(a,b,c)=ab‾c+a‾bc+abc+a‾b‾c‾F(a,b,c) = a\overline{b}c + \overline{a}bc + abc + \overline{a}\overline{b}\overline{c}. Using Boolean algebra identities, which expression represents the complement F(a,b,c)‾\overline{F(a,b,c)}?
    Answer: abc‾+a‾bc‾+ab‾c‾+a‾b‾cab\overline{c} + \overline{a}b\overline{c} + a\overline{b}\overline{c} + \overline{a}\overline{b}c Reading each term as abc, F contains the minterms 101, 011, 111 and 000, that is m(0, 3, 5, 7). The complement contains the other four minterms of a 3-variable function: 001, 010, 100 and 110, which are a‾b‾c\overline{a}\overline{b}c, a‾bc‾\overline{a}b\overline{c}, ab‾c‾a\overline{b}\overline{c} and abc‾ab\overline{c}; the order of the terms does not matter. A sum that includes abcabc (111) or ab‾ca\overline{b}c (101) includes a minterm already in F, so it cannot be the complement. A sum that includes a‾b‾c‾\overline{a}\overline{b}\overline{c} (000) makes the same mistake with F's only all-zero term and leaves out abc‾ab\overline{c}. Checking each term against the list of F's minterms is the quickest test.
  11. In Boolean algebra, the expression (A+B)(A+B‾)(A + B)(\overline{A + B}) simplifies to which of the following?
    Answer: 00 by the complement law since we have a term and its complement The expression (A+B)(A+B‾)(A + B)(\overline{A + B}) has the form X⋅X‾X \cdot \overline{X} where X=A+BX = A + B. By the complement law in Boolean algebra, X⋅X‾=0X \cdot \overline{X} = 0 for any Boolean expression XX. Therefore, (A+B)(A+B‾)=0(A + B)(\overline{A + B}) = 0. Choice A shows an incorrect expansion, Choice C stops at an intermediate step without completing the simplification, and Choice D gives the wrong result (that would be XOR of A and B).

Start this quiz