Docsity

Boolean Logic: Understanding Boolean Operators, Truth Tables, and Circuits, Slides of Computer Science

Partial preview of the text

Download Boolean Logic: Understanding Boolean Operators, Truth Tables, and Circuits and more Slides Computer Science in PDF only on Docsity!

Boolean Logic

Chapter 4 (Sections 4.1 and 4.2)

The Roots: Logic

1848 George Boole The Calculus of Logic

chocolate and ¬nuts and mint

Boolean Searching

  • (white,cream,ecru) crane silk
  • Washington (pin,button,charm)

Boolean Searching

What’s the “Native Language” of Our

Computers?

The first “computers” were actually people who

crunched numbers.

The Mathematical

Tables Project

NY in the 1940’s

http://gridtalk-project.blogspot.com/2010/09/when-computers-were-human.html Top Secret Rosies: http://www.cnn.com/2011/TECH/innovation/02/08/women.rosies.math/index.html?hpt=C

Computing Is About Boolean Logic

The rules of the logic tell us how to manipulate inputs

and produce outputs.

We define the rules so that we get answers that are

useful to us.

Boolean Operators

NOT P ¬ True False False True

Boolean Operators

AND P Q P ∧ Q True True True False False True False False

Boolean Operators

OR P Q P ∨ Q True True True False False True False False

Boolean Operators

OR P Q P ∨ Q True True True True False True False True True False False False

Boolean Operators

IMPLIES P Q P → Q True True True True False False False True True False False True

Boolean Operators

EQUIVALENCE P Q P ↔ Q True True True False False True False False

Boolean Logic

P Q ¬ P P ∨ Q P ∧ Q P → Q P ↔ Q

True True False True True True True True False False True False False False False True True True False True False False False True False False True True

Using Boolean Logic

P Q ¬ P

True True True False False True False False ¬P ∧ ((P ∨ Q)→ Q)