0 index
1 Boolean logic
2 Boolean Identities
3 Or gate
4 OR truth table
5 The OR gate
6 Not gate
7 NOT truth table
8 The NOT gate
9 And gate
10 AND truth table
11 The AND gate
12 Virtual Logic Gate
13 Let's practice
14 Tools

outline
created using slideshow.cgi by Andy Harris















CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
1. Boolean logic
  • Deals with manipulating the logical values true and false
  • True would be represented by the binary value 1
  • False would be represented by the binary value 0



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
2. Boolean Identities
  • Identity  Name  
    x + x = x
    x * x = x
    Idempotent laws
    x + 0 = x
    x * 1 = x
    Identity laws
    x + 1 = 1
    x * 0 = 0
    Dominance laws
    x + y = y + x
    xy = yx
    Commutative laws
    (x + y) + z = x + (y + z)
    x(yz) = (xy)z
    Associative laws
    x + yz = (x + y )(x + z)
    x(y + z) = xy + xz
    Distributive laws



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
3. Or gate
  • Several ways to write ‘or’
    - OR ex: a OR b
    - ‘+’ ex: a + b
    - ‘v’ ex: a v b
    - or gate



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
4. OR truth table
  • Lets build a truth table for A or B



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
5. The OR gate
  • The logical operation of an OR gate is:

    ABA OR B
    falsefalsefalse
    truefalsetrue
    falsetruetrue
    truetruetrue



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
6. Not gate
  • Ways to write ‘not’
    - NOT ex: NOT a
    - ‘¬’ ex: a ¬ b
    - not gate



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
7. NOT truth table
  • Let's build the NOT truth table



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
8. The NOT gate
  • The logical operation of a NOT gate is:
    A¬A
    falseTrue
    TrueFalse



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
9. And gate
  • Several ways to write ‘and’
    - AND ex: a AND b
    - ‘*’ ex: a * b
    - ‘^’ ex: a ^ b
    - ab
    - and gate



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
10. AND truth table
  • Let's build the AND truth table



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
11. The AND gate
  • The logical operation of an AND gate is:
    ABA ^ B
    falsefalsefalse
    falsetruefalse
    truefalsefalse
    truetruetrue



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
12. Virtual Logic Gate



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
13. Let's practice
  • Build the truth table for A OR ¬ B



































CSCI N301 Fundamental CS Concepts: n301/cs06booleanlogic
14. Tools



































outline

Boolean logic

  • Deals with manipulating the logical values true and false
  • True would be represented by the binary value 1
  • False would be represented by the binary value 0

Boolean Identities

  • Or gate

    • Several ways to write ‘or’
      - OR ex: a OR b
      - ‘+’ ex: a + b
      - ‘v’ ex: a v b
      - or gate

    OR truth table

    • Lets build a truth table for A or B

    The OR gate

    • The logical operation of an OR gate is:

    Identity  Name  
    x + x = x
    x * x = x
    Idempotent laws
    x + 0 = x
    x * 1 = x
    Identity laws
    x + 1 = 1
    x * 0 = 0
    Dominance laws
    x + y = y + x
    xy = yx
    Commutative laws
    (x + y) + z = x + (y + z)
    x(yz) = (xy)z
    Associative laws
    x + yz = (x + y )(x + z)
    x(y + z) = xy + xz
    Distributive laws
    ABA OR B
    falsefalsefalse
    truefalsetrue
    falsetruetrue
    truetruetrue

Not gate

  • Ways to write ‘not’
    - NOT ex: NOT a
    - ‘¬’ ex: a ¬ b
    - not gate

NOT truth table

  • Let's build the NOT truth table

The NOT gate

  • The logical operation of a NOT gate is:
    A¬A
    falseTrue
    TrueFalse

And gate

  • Several ways to write ‘and’
    - AND ex: a AND b
    - ‘*’ ex: a * b
    - ‘^’ ex: a ^ b
    - ab
    - and gate

AND truth table

  • Let's build the AND truth table

The AND gate

  • The logical operation of an AND gate is:
    ABA ^ B
    falsefalsefalse
    falsetruefalse
    truefalsefalse
    truetruetrue

Virtual Logic Gate

Let's practice

  • Build the truth table for A OR ¬ B

Tools