SlideShare a Scribd company logo
1 of 12
LOGICAL OPERATIONS
& BOOLEAN ALGEBRA
ANDREI JECHIU
BOOLEAN ALGEBRA
Boolean algebra derives its name from the mathematician George
Boole.
A Boolean algebra value can be either true or false.
˗True is represented by the value 1.
˗False is represented by the value 0.
AND
Output is one if every input has value of 1
More than two values can be “and-ed” together
For example xyz = 1 only if x=1, y=1 and z=1
x y out = xy
0 0 0
0 1 0
1 0 0
1 1 1
x
y
out
OR
Output is 1 if at least one input is 1.
More than two values can be “or-ed” together.
For example x+y+z = 1 if at least one of the three values is 1.
x y out = x+y
0 0 0
0 1 1
1 0 1
1 1 1
x
y
out
NOT
This function operates on a single Boolean value.
Its output is the complement of its input.
An input of 1 produces an output of 0 and an input of 0 produces an
output of 1
x x'x x'
0 1
1 0
XOR (EXCLUSIVE OR)
The number of inputs that are 1 matter.
More than two values can be “xor-ed” together.
General rule: the output is equal to 1 if an odd number of input values
are 1 and 0 if an even number of input values are 1.
x y out =
0 0 0
0 1 1
1 0 1
1 1 0
yx
x
y
out
NAND
Output value is the complemented output from an “AND” function.
x y out = x NAND y
0 0 1
0 1 1
1 0 1
1 1 0
x
y
out
NOR
x y out = x NOR y
0 0 1
0 1 0
1 0 0
1 1 0
x
y
out
Output value is the complemented output from an “OR” function.
XNOR
Output value is the complemented output from an “XOR” function.
x
y
out
x y out =x xnor y
0 0 1
0 1 0
1 0 0
1 1 1
Identity name AND form OR form
Identity Law x1 = x x + 0 = x
Null (or Dominance) Law 0x = 0 1+x = 1
Idempotent Law xx = x x+x = x
Inverse Law
Commutative Law xy = yx x+y = y+x
Associative Law (xy)z = x(yz) (x+y)+z =x+(y+z)
Distributive Law x + y z = (x + y) (x + z) x(y + z) = xy+xz
Absorption Law x(x+y) = x x+xy = x
DeMorgan’s Law
Double Complement Law
BASIC BOOLEAN IDENTITIES
EXAMPLE
Inputs Intermediates Output
x y a b z
0 0 0 1 1
0 1 0 0 0
1 0 0 0 0
1 1 1 0 1
RESOURCES
• Boolean algebra
• Boolean algebra laws
• Boolean algebra #1: Basic laws and rules
• Boolean Algebra Examples

More Related Content

What's hot (6)

Derivative of an exponential function
Derivative of an exponential functionDerivative of an exponential function
Derivative of an exponential function
 
Integration by Parts, Part 2
Integration by Parts, Part 2Integration by Parts, Part 2
Integration by Parts, Part 2
 
reductio [ad absurdum]
reductio [ad absurdum]reductio [ad absurdum]
reductio [ad absurdum]
 
Ejemplos De Metodo Simplex
Ejemplos De Metodo SimplexEjemplos De Metodo Simplex
Ejemplos De Metodo Simplex
 
L'Hopital's rule i
L'Hopital's rule iL'Hopital's rule i
L'Hopital's rule i
 
The Ring programming language version 1.5.3 book - Part 24 of 184
The Ring programming language version 1.5.3 book - Part 24 of 184The Ring programming language version 1.5.3 book - Part 24 of 184
The Ring programming language version 1.5.3 book - Part 24 of 184
 

Viewers also liked

Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
Qundeel
 

Viewers also liked (18)

IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3
 
boolean algebra(continued)
boolean algebra(continued)boolean algebra(continued)
boolean algebra(continued)
 
Introduction to boolean algebra
Introduction to boolean algebraIntroduction to boolean algebra
Introduction to boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Data representation and boolean algebra
Data representation and boolean algebraData representation and boolean algebra
Data representation and boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebra
 
Lattices AND Hasse Diagrams
Lattices AND Hasse DiagramsLattices AND Hasse Diagrams
Lattices AND Hasse Diagrams
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 

Similar to Logical operations & boolean algebra

18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
arunachalamr16
 
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
AntareepMajumder
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
Kumar
 

Similar to Logical operations & boolean algebra (20)

boolean.pdf
boolean.pdfboolean.pdf
boolean.pdf
 
Boolean
BooleanBoolean
Boolean
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Boolean Algebra.pptx
 Boolean Algebra.pptx Boolean Algebra.pptx
Boolean Algebra.pptx
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
 
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
 
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
FALLSEM2022-23_BECE102L_TH_VL2022230104428_Reference_Material_I_25-07-2022_Mo...
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptx
 
Saleh
SalehSaleh
Saleh
 
Boolean alebra
Boolean alebraBoolean alebra
Boolean alebra
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1
 
Rathika i bca
Rathika i bcaRathika i bca
Rathika i bca
 

More from Andrei Jechiu

More from Andrei Jechiu (8)

Drupal distributions and installation profiles
Drupal distributions and installation profilesDrupal distributions and installation profiles
Drupal distributions and installation profiles
 
Services in Drupal 8
Services in Drupal 8Services in Drupal 8
Services in Drupal 8
 
Behavior driven development. Testing drupal using behat
Behavior driven development. Testing drupal using behatBehavior driven development. Testing drupal using behat
Behavior driven development. Testing drupal using behat
 
UML
UMLUML
UML
 
Rss & atom
Rss & atomRss & atom
Rss & atom
 
Retele sociale
Retele sociale Retele sociale
Retele sociale
 
Sabloane de proiectare
Sabloane de proiectareSabloane de proiectare
Sabloane de proiectare
 
Tehnici de testare
Tehnici de testareTehnici de testare
Tehnici de testare
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

Logical operations & boolean algebra

  • 1. LOGICAL OPERATIONS & BOOLEAN ALGEBRA ANDREI JECHIU
  • 2. BOOLEAN ALGEBRA Boolean algebra derives its name from the mathematician George Boole. A Boolean algebra value can be either true or false. ˗True is represented by the value 1. ˗False is represented by the value 0.
  • 3. AND Output is one if every input has value of 1 More than two values can be “and-ed” together For example xyz = 1 only if x=1, y=1 and z=1 x y out = xy 0 0 0 0 1 0 1 0 0 1 1 1 x y out
  • 4. OR Output is 1 if at least one input is 1. More than two values can be “or-ed” together. For example x+y+z = 1 if at least one of the three values is 1. x y out = x+y 0 0 0 0 1 1 1 0 1 1 1 1 x y out
  • 5. NOT This function operates on a single Boolean value. Its output is the complement of its input. An input of 1 produces an output of 0 and an input of 0 produces an output of 1 x x'x x' 0 1 1 0
  • 6. XOR (EXCLUSIVE OR) The number of inputs that are 1 matter. More than two values can be “xor-ed” together. General rule: the output is equal to 1 if an odd number of input values are 1 and 0 if an even number of input values are 1. x y out = 0 0 0 0 1 1 1 0 1 1 1 0 yx x y out
  • 7. NAND Output value is the complemented output from an “AND” function. x y out = x NAND y 0 0 1 0 1 1 1 0 1 1 1 0 x y out
  • 8. NOR x y out = x NOR y 0 0 1 0 1 0 1 0 0 1 1 0 x y out Output value is the complemented output from an “OR” function.
  • 9. XNOR Output value is the complemented output from an “XOR” function. x y out x y out =x xnor y 0 0 1 0 1 0 1 0 0 1 1 1
  • 10. Identity name AND form OR form Identity Law x1 = x x + 0 = x Null (or Dominance) Law 0x = 0 1+x = 1 Idempotent Law xx = x x+x = x Inverse Law Commutative Law xy = yx x+y = y+x Associative Law (xy)z = x(yz) (x+y)+z =x+(y+z) Distributive Law x + y z = (x + y) (x + z) x(y + z) = xy+xz Absorption Law x(x+y) = x x+xy = x DeMorgan’s Law Double Complement Law BASIC BOOLEAN IDENTITIES
  • 11. EXAMPLE Inputs Intermediates Output x y a b z 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1
  • 12. RESOURCES • Boolean algebra • Boolean algebra laws • Boolean algebra #1: Basic laws and rules • Boolean Algebra Examples