1 / 25

BOOLEAN ALGEBRA

BOOLEAN ALGEBRA. อ.เกล็ดดาว สุวรรณสวัสดิ์ ห้อง 1004. http://www.kmitl.ac.th/~kskledda. Course Outline. Boolean Algebra Relations Graphs Trees. หนังสืออ้างอิง. Kenneth H. Rosen, “Discrete Mathematics and Its Applications”, International Edition, McGraw – Hill. คะแนน. Exam 50%.

Télécharger la présentation

BOOLEAN ALGEBRA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BOOLEAN ALGEBRA อ.เกล็ดดาว สุวรรณสวัสดิ์ ห้อง 1004 http://www.kmitl.ac.th/~kskledda

  2. Course Outline • Boolean Algebra • Relations • Graphs • Trees

  3. หนังสืออ้างอิง • Kenneth H. Rosen, “Discrete Mathematics and Its Applications”, International Edition, McGraw – Hill คะแนน • Exam 50%

  4. Boolean Algebra Operation • 1 หรือ True • 0 หรือ False • ∙ หรือ And / Sum • + หรือ Or / Product

  5. Basic Law of Boolean Algebra • 1 + 1 = 1 , 1 + 0 = 1 , 0 + 1 = 1 , 0 + 0 = 0 • 1 ∙ 1 = 1 , 1 ∙ 0 = 0 , 0 ∙ 1 = 0 , 0 ∙ 0 = 0

  6. Example 1 • F (x, y) = x ∙ y

  7. Example 2 • F (x, y) = xy + z

  8. Law of Boolean Algebra (1) (1) Law of the double complement • x = x (2) Idempotent laws • x + x = x • x ∙ x = x

  9. Law of Boolean Algebra (2) (3) Identity laws • x + 0 = x • x ∙ 1 = x (4) Domination laws • x + 1 = 1 • x ∙ 0 = 0

  10. Law of Boolean Algebra (3) (5) Commutative laws • x + y = y + x • x ∙ y = y ∙ x (6) Associative laws • x + (y + z) = (x + y) + z • x (yz) = (xy)z

  11. Law of Boolean Algebra (4) (7) Distributive laws • x + (yz) = (x + y)(x + z) • x (y + z) = xy + xz (8) De Morgan’s laws • xy = x +y • x + y = x ∙y

  12. Law of Boolean Algebra (5) (9) Absorption laws • x + xy = x • x (x + y) = x (10) Unit property • x +x = 1 (11) Zero property • xx = 0

  13. Example: find Boolean expression • Find Boolean expression that represent the functions F(x,y,z) and G(x,y,z) which are given in table • F(x,y,z) = xy z G(x,y,z) = x yz +x yz

  14. Example: find function expansion • Find function expansion for the function F(x,y,z) = (x + y)z and determine the function F(x,y,z) = (x + y)z = xz + yz = x 1z + 1 yz = x (y +y)z + (x +x) yz = xyz + xyz + xyz + xyz Distributive law Identity law Unit property Distributive law Idempotent law

  15. Logic Gates x xy AND gate y x + y x OR gate y x x Inverter

  16. Combination of Gate (1) • xy + xz • x + xy x xy y xy + xz xz z x x + xy x xy y

  17. Combination of Gate (2) x xy y xy + xy x xy x y x xy y xy + xy x xy

  18. Example: combination of gate • (x + y)x • x (y +z) • (x + y + z)xyz • xy + xz + yz • xy + xy • xyz + xyz + x yz + xy z

  19. Minimization of Circuits using laws (1) • xyz + xy z = (y +y)(xz) = 1 ∙ xz = xz • x + x = (x + x) ∙ 1 = (x + x) ∙ (x +x) = x + (x +x) = x + 0 = x

  20. Minimization of Circuits using laws (2) • x + xy = x ∙ 1 + xy = x (1 + y) = x (y + 1) = x ∙ 1 = x • x + 1 = (x + 1) ∙ 1 = (x + 1) ∙ (x +x) = x + 1 ∙x = x +x = 1 Identity laws Distributive laws Commutative laws Domination laws Identity laws Identity laws Unit property Distributive laws Identity laws Unit property

  21. Minimization of Circuits using k-maps K-maps in 2 variables K-maps in 3 variables xyz xy z xyz xy z

  22. Example: minimization of circuits using k-maps (1) • xy +xy • xy + x y • xy +x y +xy = y = xy + x y = x + y

  23. Example: minimization of circuits using k-maps (2) • xyz +xyz • xyz + xyz + xyz + xyz • xyz + xyz + xyz + xyz = yz = z = x

  24. Duality • 1 0 • 0 1 • + ∙ • ∙ +

  25. Example: Duality • a + b = 0 a ∙ b = 1 • (a + 0) + (1 ∙a) = 1 (a ∙ 1) ∙ (0 +a) = 0 • a ∙ (a + b) = a ∙ b a + (a ∙ b) = a + b

More Related