SlideShare a Scribd company logo
Boolean Logic
George Boole In1854, George Boole published “ An investigation into the Laws of Thought, on which are founded the Mathematical Theories of Logic and Probabilities.”  Boole outlined a system of logic and a corresponding algebraic language dealing with true and false values.  100 th  Anniverary Edition
Boolean Logic Boolean logic is a form of mathematics in which the only values used are true and false. Boolean logic is the basis of all modern computing. There are three basic operations in Boolean logic – AND, OR, and NOT. 100 th  Anniverary Edition
The AND Operation The AND operation is a binary operation, meaning that it needs two operands.  c = a AND b Both a and b must be true for the result to be true. 100 th  Anniverary Edition F F F F T T b F T a AND
The OR Operation The OR operation is also a binary operation with two operands. c = a OR b If either a OR b is true, then the result is true. 100 th  Anniverary Edition F T F T T T B F T a OR
The NOT Operation The NOT operation is a unary operation with only one operand. c = NOT (a) It simply reverses the true or false value of the operand. 100 th  Anniverary Edition T F F T a NOT

More Related Content

PDF
Boolean logic presentation
PPTX
Boolean Logic Searching: A Primer
PPT
Ch 5 boolean logic
PPT
Ch 5 boolean logic
PPTX
Week4_BooleanAlgebra.pptx
PPTX
Boolean Algebra
PPTX
Boolean algebra
PPTX
Boolean Algebra.pptx
Boolean logic presentation
Boolean Logic Searching: A Primer
Ch 5 boolean logic
Ch 5 boolean logic
Week4_BooleanAlgebra.pptx
Boolean Algebra
Boolean algebra
Boolean Algebra.pptx

More from Chaffey College (20)

PPT
Strings Objects Variables
PPT
Ruby Chapter 2
PPTX
Social networks and games
PPT
Serious games
PPT
Chapter 05
PPT
Chapter 04
PPT
Chapter 03
PPTX
The games factory 2 alien wars
PPTX
Target markets
PPT
Ch 8 introduction to data structures
PPT
Ch 8 data structures in alice
PPT
Ch 7 recursion
PPTX
Intro to gml
PPT
Power point unit d
PPT
Power point unit c
PPT
Power point unit b
PPT
Power point unit a
PPT
Gamegraphics
PPT
Gamesound
PPT
Ch 6 text and sound in alice
Strings Objects Variables
Ruby Chapter 2
Social networks and games
Serious games
Chapter 05
Chapter 04
Chapter 03
The games factory 2 alien wars
Target markets
Ch 8 introduction to data structures
Ch 8 data structures in alice
Ch 7 recursion
Intro to gml
Power point unit d
Power point unit c
Power point unit b
Power point unit a
Gamegraphics
Gamesound
Ch 6 text and sound in alice
Ad

Ch 4 structure of algorithms

  • 2. George Boole In1854, George Boole published “ An investigation into the Laws of Thought, on which are founded the Mathematical Theories of Logic and Probabilities.” Boole outlined a system of logic and a corresponding algebraic language dealing with true and false values. 100 th Anniverary Edition
  • 3. Boolean Logic Boolean logic is a form of mathematics in which the only values used are true and false. Boolean logic is the basis of all modern computing. There are three basic operations in Boolean logic – AND, OR, and NOT. 100 th Anniverary Edition
  • 4. The AND Operation The AND operation is a binary operation, meaning that it needs two operands. c = a AND b Both a and b must be true for the result to be true. 100 th Anniverary Edition F F F F T T b F T a AND
  • 5. The OR Operation The OR operation is also a binary operation with two operands. c = a OR b If either a OR b is true, then the result is true. 100 th Anniverary Edition F T F T T T B F T a OR
  • 6. The NOT Operation The NOT operation is a unary operation with only one operand. c = NOT (a) It simply reverses the true or false value of the operand. 100 th Anniverary Edition T F F T a NOT