You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

Boolean algebra is the math behind digital logic, using binary variables and operations like AND, OR, and NOT. It's the foundation for understanding how computers process information and make decisions.

Logic operations form the building blocks of digital circuits. From basic AND and OR gates to more complex XOR and NAND operations, these tools let us create the intricate systems that power modern technology.

Boolean Algebra Fundamentals

Boolean Algebra and Variables

Top images from around the web for Boolean Algebra and Variables
Top images from around the web for Boolean Algebra and Variables
  • Boolean algebra is a branch of mathematics that deals with the manipulation of logical expressions involving binary variables
  • Uses logical operators such as AND, OR, and NOT to perform operations on binary variables
  • Boolean variables can only take on two possible values: 0 (false) or 1 (true)
  • These variables are often used to represent the state of a digital system or the truth value of a logical proposition

Boolean Functions and Expressions

  • Boolean functions are mathematical expressions that take Boolean variables as inputs and produce a Boolean output
  • Can be represented using truth tables, which list all possible combinations of input values and their corresponding output values
  • Boolean expressions are combinations of Boolean variables and operators that evaluate to either 0 or 1
  • Examples of Boolean expressions include ABA \cdot B (A AND B) and A+BA + B (A OR B)

Laws of Boolean Algebra

  • states that the order of operands does not affect the result of an operation
    • For AND: AB=BAA \cdot B = B \cdot A
    • For OR: A+B=B+AA + B = B + A
  • allows for the grouping of operands in any order without affecting the result
    • For AND: (AB)C=A(BC)(A \cdot B) \cdot C = A \cdot (B \cdot C)
    • For OR: (A+B)+C=A+(B+C)(A + B) + C = A + (B + C)
  • allows for the distribution of an operator over another
    • AND distributes over OR: A(B+C)=(AB)+(AC)A \cdot (B + C) = (A \cdot B) + (A \cdot C)
    • OR distributes over AND: A+(BC)=(A+B)(A+C)A + (B \cdot C) = (A + B) \cdot (A + C)

Basic Logic Operations

AND Operation

  • returns 1 (true) only if all inputs are 1 (true)
  • Denoted by the symbol \cdot or the word AND
  • for AND:
    • 0 AND 0 = 0
    • 0 AND 1 = 0
    • 1 AND 0 = 0
    • 1 AND 1 = 1
  • Can be implemented using an AND gate in digital circuits

OR Operation

  • returns 1 (true) if at least one input is 1 (true)
  • Denoted by the symbol ++ or the word OR
  • Truth table for OR:
    • 0 OR 0 = 0
    • 0 OR 1 = 1
    • 1 OR 0 = 1
    • 1 OR 1 = 1
  • Can be implemented using an OR gate in digital circuits

NOT Operation

  • , also known as inversion, returns the opposite of the input value
  • Denoted by the symbol ˉ\bar{} or the word NOT
  • Truth table for NOT:
    • NOT 0 = 1
    • NOT 1 = 0
  • Can be implemented using a NOT gate or inverter in digital circuits

Advanced Logic Operations

XOR Operation

  • XOR (exclusive OR) operation returns 1 (true) if exactly one input is 1 (true)
  • Denoted by the symbol \oplus or the word XOR
  • Truth table for XOR:
    • 0 XOR 0 = 0
    • 0 XOR 1 = 1
    • 1 XOR 0 = 1
    • 1 XOR 1 = 0
  • Can be implemented using an XOR gate in digital circuits
  • Used in error detection and correction schemes, such as parity checks

NAND and NOR Operations

  • NAND (NOT AND) operation returns the opposite of the AND operation
    • Denoted by the symbol \overline{\cdot} or the word NAND
    • Truth table for NAND:
      • 0 NAND 0 = 1
      • 0 NAND 1 = 1
      • 1 NAND 0 = 1
      • 1 NAND 1 = 0
    • Can be implemented using a in digital circuits
  • NOR (NOT OR) operation returns the opposite of the OR operation
    • Denoted by the symbol +\overline{+} or the word NOR
    • Truth table for NOR:
      • 0 NOR 0 = 1
      • 0 NOR 1 = 0
      • 1 NOR 0 = 0
      • 1 NOR 1 = 0
    • Can be implemented using a in digital circuits
  • NAND and NOR gates are considered universal gates because any Boolean function can be implemented using only NAND or only NOR gates
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary