Boolean Algebra Laws for UIL Computer Science

Identity Laws

  • X+0=XX + 0 = X
    • Explanation: Adding 00 changes nothing.
  • X⋅1=XX \cdot 1 = X
    • Explanation: Multiplying by 11 changes nothing.

Null (Domination) Laws

  • X+1=1X + 1 = 1
    • Explanation: OR with 11 always becomes 11.
  • X⋅0=0X \cdot 0 = 0
    • Explanation: AND with 00 always becomes 00.

Idempotent Laws

  • X+X=XX + X = X
    • Explanation: ORing something with itself is still itself.
  • X⋅X=XX \cdot X = X
    • Explanation: ANDing something with itself is still itself.

Complement Laws

  • X+X′=1X + X' = 1
    • Explanation: A value OR its opposite is always true.
  • X⋅X′=0X \cdot X' = 0
    • Explanation: A value AND its opposite can never both be true.

Involution Law

  • (X′)′=X(X')' = X
    • Explanation: Double negation goes back to the original.

Commutative Laws

  • X+Y=Y+XX + Y = Y + X
    • Explanation: OR order doesn’t matter.
  • X⋅Y=Y⋅XX \cdot Y = Y \cdot X
    • Explanation: AND order doesn’t matter.

Associative Laws

  • X+(Y+Z)=(X+Y)+ZX + (Y + Z) = (X + Y) + Z
    • Explanation: Grouping ORs doesn’t change meaning.
  • X⋅(Y⋅Z)=(X⋅Y)⋅ZX \cdot (Y \cdot Z) = (X \cdot Y) \cdot Z
    • Explanation: Grouping ANDs doesn’t change meaning.

Distributive Laws

  • X⋅(Y+Z)=(X⋅Y)+(X⋅Z)X \cdot (Y + Z) = (X \cdot Y) + (X \cdot Z)
    • Explanation: AND distributes over OR.
  • X+(Y⋅Z)=(X+Y)⋅(X+Z)X + (Y \cdot Z) = (X + Y) \cdot (X + Z)
    • Explanation: OR distributes over AND.

Absorption Laws

  • X+(X⋅Y)=XX + (X \cdot Y) = X
    • Explanation: OR absorbs a more complex version of itself.
  • X⋅(X+Y)=XX \cdot (X + Y) = X
    • Explanation: AND absorbs a more complex version of itself.

De Morgan’s Laws

  • (X+Y)′=X′⋅Y′(X + Y)' = X' \cdot Y'
    • Explanation: The opposite of OR becomes AND of opposites.
  • (X⋅Y)′=X′+Y′(X \cdot Y)' = X' + Y'
    • Explanation: The opposite of AND becomes OR of opposites.