SlideShare una empresa de Scribd logo
1 de 16
IT2001PA
Engineering Essentials (2/2)


Chapter 7 - Boolean Algebra

 Lecturer Name
lecturer_email@ite.edu.sg
                              Nov 20, 2012
Contact Number
Chapter 7 - Boolean Algebra


Lesson Objectives
Upon completion of this topic, you should be able to:
   State the rules and functions of Boolean algebra.




    IT2001PA Engineering Essentials (2/2)               2
Chapter 7 - Boolean Algebra


Specific Objectives
  Students should be able to :
   State the function of Boolean algebra.
      State the 9 equalities of Boolean algebra.
      State the Commutative Law.
      State the Associative Law.
      State the Distributive Law.




      IT2001PA Engineering Essentials (2/2)
Chapter 7 - Boolean Algebra


Introduction
   Boolean Algebra is a set of algebraic rules, named
    after mathematician George Boole, in which TRUE and
    FALSE are equated to ‘0’ and ‘1’.
   Boolean algebra includes a series of operators (AND,
    OR, NOT, NAND (NOT AND), NOR, and XOR
    (exclusive OR)), which can be used to manipulate
    TRUE and FALSE values.
   It is the basis of computer logic because the truth
    values can be directly associated with bits.


    IT2001PA Engineering Essentials (2/2)                 4
Chapter 7 - Boolean Algebra


Boolean Algebra Laws
   Frequently, a Boolean expression is not in its simplest
    form.
   Boolean expressions can be simplified, but we need
    identities or laws that apply to Boolean algebra instead
    of regular algebra.
   These identities can be applied to single Boolean
    variables as well as Boolean expressions.




    IT2001PA Engineering Essentials (2/2)               5
Chapter 7 - Boolean Algebra


Commutative Law
                          A+B=B+A


                          A*B = B*A
Associative Law
              A+B+C = A+(B+C) = (A+B)+C = B+(A+C)
              A*B*C = A*(B*C) = (A*B)*C = B*(A*C)
Distributive Law

               A(B+C) = A*B + A*C
               (A+B)*(C+D) = A*C + A*D + B*C + B*D

    IT2001PA Engineering Essentials (2/2)            6
Chapter 7 - Boolean Algebra


Commutative Law
   The commutative law allows the change in position
    (reordering) of an ANDed or ORed variable.




    IT2001PA Engineering Essentials (2/2)          7
Chapter 7 - Boolean Algebra


Associative Law
   The Associative Law allows the regrouping of
    variables.




    IT2001PA Engineering Essentials (2/2)          8
Chapter 7 - Boolean Algebra


Distributive Law
   The Distributive Law shows how OR distributes over
    AND and vice versa.




    IT2001PA Engineering Essentials (2/2)          9
Chapter 7 - Boolean Algebra


Boolean Algebra Theorems
   Boolean theorems can help to simplify logic expression
    and logic circuits.




    IT2001PA Engineering Essentials (2/2)           10
Chapter 7 - Boolean Algebra


Boolean Algebra Equalities or Identities
    (a) A . 0   =0                          (j) A + AB = A + B
    (b) A . 1   =A                            A + AB = A + B
    (c) A . A   =A
    (d) A . A   =0
                                   The variable A may represent
    (e) A + 0 = A                  an expression containing more
    (f) A + 1 = 1                  than one variable.
                                   For instance, XY(XY)
    (g) A + A = A
    (h) A + A = 1                  Let A = XY,
    (i) A       =A                 then XY(XY) = A . A = 0

    IT2001PA Engineering Essentials (2/2)                        11
Chapter 7 - Boolean Algebra


Boolean Algebra Equalities or Identities
        A*0 = 0                                 A*1 = A
    A                                   A
                  X = A*0 = 0                         X = A*1 = A
    0                                   1
    Anything ANDed with a 0 is           Anything ANDed with a 1 is
    • equal to 0.                           • equal to itself.

        A*A = A                                 A*A = 0
  A                                     A
  A             X = A*A = A             1                    X = A*A = 0
  Anything ANDed with itself is             Anything ANDed with its own
  • equal to itself.                        • complement equals 0.
    IT2001PA Engineering Essentials (2/2)                            12
Chapter 7 - Boolean Algebra


Boolean Algebra Equalities or Identities
        A+0 = A                                A+1 = 1
    A                                   A
                  X = A+0 = A                          X = A+1 = 1
    0                                   1
    Anything ORed with a 0 is            Anything ORed with a 1 is
    • equal to itself.                      • equal to 1.

        A+A = A                                A+A = 0
  A                                     A
  A              X = A+A = A            1                   X = A+A = 1
  Anything ORed with itself is              Anything ORed with its own
  • equal to itself.                        • complement equals 1.
    IT2001PA Engineering Essentials (2/2)                            13
Chapter 7 - Boolean Algebra


Boolean Algebra Equalities or Identities


                              A=A

                              A
             A                              X=A=A



          A variable that is complemented twice will
          • return to its original


    IT2001PA Engineering Essentials (2/2)           14
Chapter 7 - Boolean Algebra


Elimination Law
   Equivalence is demonstrated by showing the truth
    table derived from the expression on the left side of the
    equation matches that on the right side.




    IT2001PA Engineering Essentials (2/2)              15
Chapter 7 - Boolean Algebra


Next Lesson




    IT2001PA Engineering Essentials (2/2)   16

Más contenido relacionado

Destacado

Ee1 chapter4 resistors_inparallel
Ee1 chapter4 resistors_inparallelEe1 chapter4 resistors_inparallel
Ee1 chapter4 resistors_inparallelCK Yang
 
Ee2 chapter11 led_applications
Ee2 chapter11 led_applicationsEe2 chapter11 led_applications
Ee2 chapter11 led_applicationsCK Yang
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflowCK Yang
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in cssCK Yang
 
Web topic 13 html validation tools
Web topic 13  html validation toolsWeb topic 13  html validation tools
Web topic 13 html validation toolsCK Yang
 
Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class testCK Yang
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 countersCK Yang
 

Destacado (7)

Ee1 chapter4 resistors_inparallel
Ee1 chapter4 resistors_inparallelEe1 chapter4 resistors_inparallel
Ee1 chapter4 resistors_inparallel
 
Ee2 chapter11 led_applications
Ee2 chapter11 led_applicationsEe2 chapter11 led_applications
Ee2 chapter11 led_applications
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
 
Web topic 13 html validation tools
Web topic 13  html validation toolsWeb topic 13  html validation tools
Web topic 13 html validation tools
 
Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
 

Similar a Ee2 chapter7 boolean_algebra

Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...
Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...
Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...Hsien-Hsin Sean Lee, Ph.D.
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptxMitKumar2
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarSivakumar R D .
 
Pe 4030 digital logic chapter 7 (weeks 11 12)
Pe 4030 digital logic chapter 7 (weeks 11 12)Pe 4030 digital logic chapter 7 (weeks 11 12)
Pe 4030 digital logic chapter 7 (weeks 11 12)Charlton Inao
 
Boolean Algebra.pptx
Boolean Algebra.pptxBoolean Algebra.pptx
Boolean Algebra.pptxPooja Dixit
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
Digital logic design lecture 06
Digital logic design   lecture 06 Digital logic design   lecture 06
Digital logic design lecture 06 FarhatUllah27
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitKMJ Science Computer
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & OrganizationNANDINI SHARMA
 
Digital electronics lesson 2
Digital electronics lesson 2Digital electronics lesson 2
Digital electronics lesson 2Sukriti Dhang
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptSanjay446332
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraHanu Kavi
 
Gerbang Logika Dasar
Gerbang Logika DasarGerbang Logika Dasar
Gerbang Logika DasarArif Hakim
 

Similar a Ee2 chapter7 boolean_algebra (20)

Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...
Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...
Lec5 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Boo...
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptx
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
 
Pe 4030 digital logic chapter 7 (weeks 11 12)
Pe 4030 digital logic chapter 7 (weeks 11 12)Pe 4030 digital logic chapter 7 (weeks 11 12)
Pe 4030 digital logic chapter 7 (weeks 11 12)
 
Boolean Algebra.pptx
Boolean Algebra.pptxBoolean Algebra.pptx
Boolean Algebra.pptx
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
BOOLEAN
BOOLEANBOOLEAN
BOOLEAN
 
Boolean Algebra.pptx
Boolean Algebra.pptxBoolean Algebra.pptx
Boolean Algebra.pptx
 
Digital logic design lecture 06
Digital logic design   lecture 06 Digital logic design   lecture 06
Digital logic design lecture 06
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Digital electronics lesson 2
Digital electronics lesson 2Digital electronics lesson 2
Digital electronics lesson 2
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebra
 
Gerbang Logika Dasar
Gerbang Logika DasarGerbang Logika Dasar
Gerbang Logika Dasar
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
sop_pos(DE).pptx
sop_pos(DE).pptxsop_pos(DE).pptx
sop_pos(DE).pptx
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 

Más de CK Yang

Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websitesCK Yang
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote siteCK Yang
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contentsCK Yang
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meetCK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validationCK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validationCK Yang
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesCK Yang
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and securityCK Yang
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized websiteCK Yang
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browserCK Yang
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibilityCK Yang
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web formsCK Yang
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascriptCK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html formsCK Yang
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html formsCK Yang
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in cssCK Yang
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layoutCK Yang
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layoutCK Yang
 
Web topic 14 cascading style sheets
Web topic 14  cascading style sheetsWeb topic 14  cascading style sheets
Web topic 14 cascading style sheetsCK Yang
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in htmlCK Yang
 

Más de CK Yang (20)

Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
Web topic 14 cascading style sheets
Web topic 14  cascading style sheetsWeb topic 14  cascading style sheets
Web topic 14 cascading style sheets
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in html
 

Ee2 chapter7 boolean_algebra

  • 1. IT2001PA Engineering Essentials (2/2) Chapter 7 - Boolean Algebra Lecturer Name lecturer_email@ite.edu.sg Nov 20, 2012 Contact Number
  • 2. Chapter 7 - Boolean Algebra Lesson Objectives Upon completion of this topic, you should be able to:  State the rules and functions of Boolean algebra. IT2001PA Engineering Essentials (2/2) 2
  • 3. Chapter 7 - Boolean Algebra Specific Objectives Students should be able to :  State the function of Boolean algebra.  State the 9 equalities of Boolean algebra.  State the Commutative Law.  State the Associative Law.  State the Distributive Law. IT2001PA Engineering Essentials (2/2)
  • 4. Chapter 7 - Boolean Algebra Introduction  Boolean Algebra is a set of algebraic rules, named after mathematician George Boole, in which TRUE and FALSE are equated to ‘0’ and ‘1’.  Boolean algebra includes a series of operators (AND, OR, NOT, NAND (NOT AND), NOR, and XOR (exclusive OR)), which can be used to manipulate TRUE and FALSE values.  It is the basis of computer logic because the truth values can be directly associated with bits. IT2001PA Engineering Essentials (2/2) 4
  • 5. Chapter 7 - Boolean Algebra Boolean Algebra Laws  Frequently, a Boolean expression is not in its simplest form.  Boolean expressions can be simplified, but we need identities or laws that apply to Boolean algebra instead of regular algebra.  These identities can be applied to single Boolean variables as well as Boolean expressions. IT2001PA Engineering Essentials (2/2) 5
  • 6. Chapter 7 - Boolean Algebra Commutative Law A+B=B+A A*B = B*A Associative Law A+B+C = A+(B+C) = (A+B)+C = B+(A+C) A*B*C = A*(B*C) = (A*B)*C = B*(A*C) Distributive Law A(B+C) = A*B + A*C (A+B)*(C+D) = A*C + A*D + B*C + B*D IT2001PA Engineering Essentials (2/2) 6
  • 7. Chapter 7 - Boolean Algebra Commutative Law  The commutative law allows the change in position (reordering) of an ANDed or ORed variable. IT2001PA Engineering Essentials (2/2) 7
  • 8. Chapter 7 - Boolean Algebra Associative Law  The Associative Law allows the regrouping of variables. IT2001PA Engineering Essentials (2/2) 8
  • 9. Chapter 7 - Boolean Algebra Distributive Law  The Distributive Law shows how OR distributes over AND and vice versa. IT2001PA Engineering Essentials (2/2) 9
  • 10. Chapter 7 - Boolean Algebra Boolean Algebra Theorems  Boolean theorems can help to simplify logic expression and logic circuits. IT2001PA Engineering Essentials (2/2) 10
  • 11. Chapter 7 - Boolean Algebra Boolean Algebra Equalities or Identities (a) A . 0 =0 (j) A + AB = A + B (b) A . 1 =A A + AB = A + B (c) A . A =A (d) A . A =0 The variable A may represent (e) A + 0 = A an expression containing more (f) A + 1 = 1 than one variable. For instance, XY(XY) (g) A + A = A (h) A + A = 1 Let A = XY, (i) A =A then XY(XY) = A . A = 0 IT2001PA Engineering Essentials (2/2) 11
  • 12. Chapter 7 - Boolean Algebra Boolean Algebra Equalities or Identities A*0 = 0 A*1 = A A A X = A*0 = 0 X = A*1 = A 0 1 Anything ANDed with a 0 is Anything ANDed with a 1 is • equal to 0. • equal to itself. A*A = A A*A = 0 A A A X = A*A = A 1 X = A*A = 0 Anything ANDed with itself is Anything ANDed with its own • equal to itself. • complement equals 0. IT2001PA Engineering Essentials (2/2) 12
  • 13. Chapter 7 - Boolean Algebra Boolean Algebra Equalities or Identities A+0 = A A+1 = 1 A A X = A+0 = A X = A+1 = 1 0 1 Anything ORed with a 0 is Anything ORed with a 1 is • equal to itself. • equal to 1. A+A = A A+A = 0 A A A X = A+A = A 1 X = A+A = 1 Anything ORed with itself is Anything ORed with its own • equal to itself. • complement equals 1. IT2001PA Engineering Essentials (2/2) 13
  • 14. Chapter 7 - Boolean Algebra Boolean Algebra Equalities or Identities A=A A A X=A=A A variable that is complemented twice will • return to its original IT2001PA Engineering Essentials (2/2) 14
  • 15. Chapter 7 - Boolean Algebra Elimination Law  Equivalence is demonstrated by showing the truth table derived from the expression on the left side of the equation matches that on the right side. IT2001PA Engineering Essentials (2/2) 15
  • 16. Chapter 7 - Boolean Algebra Next Lesson IT2001PA Engineering Essentials (2/2) 16