SlideShare uma empresa Scribd logo
1 de 21
Boolean Expressions and Boolean Functions
Let B = {0, 1}. The variable x is called a Boolean
variable if it assumes values only from B. A function
Bn, the set {(x1, x2, ….xn)|xi ε B, 1 ≤ i ≤ n}, to B is
called a Boolean function of degree n
x y F(x, y)
1 1
0
The values of Boolean function.
1 0
1
0 1
0
0 0
0
The Boolean expressions in the variables x1, x2,
…,xn are defined recursively as follows:
0, 1, x1, x2, ….., xn
Example: Find the values of the Boolean function
represented by F ( x, y, z ) = xy + z
x
1
1
1
1
0
0
0
0

y
1
1
0
0
1
1
0
0

z
1
0
1
0
1
0
1
0

xy
1
1
0
0
0
0
0
0

z’
0
1
0
1
0
1
0
1

xy + z’
1
1
0
1
0
1
0
1
The Boolean functions F and G of n variables are
equal if and only if F(b1, b2, …, bn) = G(b1, b2, …,bn)
whenever b1, b2, …, bn belong to B. Two different
Boolean expressions that represent the same
function are called equivalent.
ex: xy, xy + 0, and (xy)1
The complement of the Boolean function F is the
function

F , where

F ( x1 ,  , xn ) = F ( x1 ,  xn )
The Boolean sum F + G and the Boolean product
FG are defined by
(F + G)(x1,…., xn) = F(x1,…, xn) + G(x1,…, xn),
(FG)(x1,…, xn) = F(x1,…, xn)G(x1,…, xn)
The Boolean functions of degree 2
x

y

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10 F11 F12 F13 F14 F15 F16

1
1
0
0

1
0
1
0

1
1
1
1

1
1
1
0

1
1
0
1

1
1
0
0

1
0
1
1

1
0
1
0

1
0
0
1

1
0
0
0

0
1
1
1

0
1
1
0

0
1
0
1

0
1
0
0

0
0
1
1

0
0
1
0

0
0
0
1

0
0
0
0

To determine the number of different Boolean functions
of degree n, we use the formula: 22n
Identities of Boolean Algebra
Identity

Name

x=x

Law of double complement

x+x = x
x.x = x

x +0 = x
x.1 = x
x +1 =1
x.0 = 0

x+ y = y+ x
xy = yx

Idempotent Laws
Identity Laws
Dominance Laws
Commutative Laws
Identities of Boolean Algebra
Identity

x + ( y + z) = ( x + y) + z
x( yz ) = ( xy ) z

Name
Associative Laws

x + yz = ( x + y )( x + z )
x( y + z ) = xy + xz

Distributive Laws

( xy ) = x + y
( x + y ) = xy

De Morgan’s Laws
Example: Show that the distributive law
x(y + z) = xy + xz is valid
x

y

z

y+z

xy

xz

1
1
1
1
0
0
0
0

1
1
0
0
1
1
0
0

1
0
1
0
1
0
1
0

1
1
1
0
1
1
1
0

1
1
0
0
0
0
0
0

1
0
1
0
0
0
0
0

x(y+z) xy+xz

1
1
1
0
0
0
0
0

1
1
1
0
0
0
0
0
Duality
The dual of a Boolean expression is obtained by
interchanging Boolean sums and Boolean products
and interchanging 0s and 1s.
Find the duals of

Answer:

x( y + 0 ) and
x .1 + ( y + z ) .

x + ( y.1) and
( x + 0)( yz )
Note:
The dual of the Boolean function F, denoted by
Fd, represented by a Boolean expression is the function
represented by the dual of this expression. This dual
function does not depend on the particular Boolean
expression used to represent F. An identity between
functions represented by Boolean expressions remains
valid when the duals of both sides of the identity are
taken. This result, called the duality principle, is
useful for obtaining new identities.
A Boolean algebra is a set B with two binary
operations v and ʌ, elements 0 and 1, and unary
operation ¬ such that the following properties hold
for all x, y, and z in B:

x ∨ 0 = x

x ∧1 = x 

Identity Laws

x ∨ x =1

x ∧ x = 0

Domination Laws
x ∨ y = y ∨ x

x ∧ y = y ∧ x

Commutative Laws

( x ∨ y) ∨ z = x ∨ ( y ∨ z)

( x ∧ y) ∧ z = x ∧ ( y ∧ z)

Associative Laws

x ∨ ( y ∧ z) = ( x ∨ y) ∧ ( x ∨ z)

x ∧ ( y ∨ z) = ( x ∧ y) ∨ ( x ∧ z)

Distributive Laws
Representing Boolean Functions
Find Boolean expressions that
functions F(x, y, z) and G(x, y, z)
x
1
1
1
1
0
0
0
0

y
1
1
0
0
1
1
0
0

z
1
0
1
0
1
0
1
0

F
0
0
1
0
0
0
0
0

G
0
1
0
0
0
1
0
0

represent

the

To represent F, the value is
1 when x = z = 1 and y = 0
or xy’z.
To represent G, the value is
1 when x = y = 1 and z = 0
or when x = z = 0 and y =1.
We can form an expression
with these values by taking
the Boolean sum of two
different Boolean products.
x
1
1
1
1
0
0
0
0

y
1
1
0
0
1
1
0
0

z
1
0
1
0
1
0
1
0

F
0
0
1
0
0
0
0
0

G
0
1
0
0
0
1
0
0

xyz’ x’yz’
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0

xyz’ + x’yz’
0
1
0
0
0
1
0
0

xyz’ has value 1, iff x = y = 1 and z = 0
x’yz’ has value 1, iff x = y = 1 and z = 0
xyz’ + x’yz’ has value 1, iff x = y = 1 and z = 0
or x = z = 0 and y = 1
A literal is a Boolean variable or its complement. A
minterm of the Boolean variables x1, x2, …, xn is a
Boolean product y1, y2, …, yn, where yi = xi or yi = x’i.
Hence, a minterm is a product of n literals, with one
literal for each variable.
Example: Find a minterm that equals 1 if x 1 = x3 = 0
and x2 = x4 = x5 = 1, and equals 0 otherwise.

x1 x2 x3 x4 x5

The minterm showed has the
correct set of values.
Sum-of-products expansion or the disjunctive
normal form of the Boolean function is the sum of
minterms that represents a function. A Boolean sum
of minterms has the value 1 when exactly one of the
minterms in the sum has the value 1.
It is also possible to find a Boolean expression that
represents a Boolean function by taking a Boolean
product of Boolean sums. The resulting expansion is
called the conjunctive normal form or product-ofsums expansion of the function. These expansions
can be found from sum-of-products expansion by
taking their duals.
Find the sum-of-products expansion for the function

F ( x, y , z ) = ( x + y ) z

x
1
1
1
1
0
0
0
0
Answer:

y
1
1
0
0
1
1
0
0

z
1
0
1
0
1
0
1
0

x+y
1
1
1
1
1
1
0
0

z’
0
1
0
1
0
1
0
1

(x + y)z’
0
1
0
1
0
1
0
0

F ( x, y, z ) = xyz + xyz + x yz
Logic Gates
Gates are the basic elements of circuits.
Combinatorial circuits or gating networks are
circuits have no memory capabilities. These circuits
give output that depends only on the input, and not
on the current state of the circuit.
Types of Elements
Inverter which accepts the value of one Boolean
variable as input and produces the complement of
this value as output.
OR Gate, the inputs are the values of two or more
Boolean variables. The output is the Boolean sum of
their values.
AND Gate, the inputs are the values of two or more
Boolean variables. The output is the Boolean
product of their values.
Basic Types of Gates

x

x

x
y

x+y

x
y

xy

inverter

OR gate

AND gate
Combinations of Gates
Combinational circuits can be constructed using a
combination of inverters, OR gates, and AND gates.
Example:

x
y
x
y

xy
xy + x y

x
xy
Exercises:
1.Find the Boolean product of the Boolean variables
x, y, and z, or their complements, that has the value
1 if and only if
a. x =y = 0, z = 1
b. x = z = 0, y = 1
c. x = 0, y = z = 1
d. x = y = z = 0
2. Find the sum-of-products expansions of the
following Boolean functions.

a ) F ( x, y , z ) = x + y + z
b ) F ( x, y , z ) = ( x + z ) y
c) F ( x, y, z ) = x + yz
d ) F ( x, y, z ) = xy + z
Exercises:
Construct circuits that produce the following
outputs:

1)( x + y ) x
2) x ( y + z )
3)( x + y + z )( x yz )

Mais conteúdo relacionado

Mais procurados

Subtracter
SubtracterSubtracter
Subtracter
Kumar
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic units
owaisahmad125
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
gavhays
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 

Mais procurados (20)

Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebra
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machine
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Subtracter
SubtracterSubtracter
Subtracter
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Rules of Karnaugh Map
Rules of Karnaugh MapRules of Karnaugh Map
Rules of Karnaugh Map
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Parallel Adder and Subtractor
Parallel Adder and SubtractorParallel Adder and Subtractor
Parallel Adder and Subtractor
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine
 
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic units
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
 
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
 
K map.
K map.K map.
K map.
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
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
 

Destaque

Verslag humanistisch lab 20 oktober HV MiddenHolland
Verslag humanistisch lab 20 oktober HV MiddenHollandVerslag humanistisch lab 20 oktober HV MiddenHolland
Verslag humanistisch lab 20 oktober HV MiddenHolland
HVMiddenHolland
 
Leaders of the new world of finance
Leaders of the new world of finance Leaders of the new world of finance
Leaders of the new world of finance
RippleIsrael
 
Semicolon Devloper 성과발표회
Semicolon Devloper 성과발표회Semicolon Devloper 성과발표회
Semicolon Devloper 성과발표회
상현 양
 
Evaluation Question 1
Evaluation Question 1Evaluation Question 1
Evaluation Question 1
Ashley4510
 
Uses & gratifications
Uses & gratifications Uses & gratifications
Uses & gratifications
Ashley4510
 
Step By Step Front Cover
Step By Step Front Cover Step By Step Front Cover
Step By Step Front Cover
Ashley4510
 
Step By Step - Front Cover
Step By Step - Front CoverStep By Step - Front Cover
Step By Step - Front Cover
Ashley4510
 

Destaque (20)

Verslag humanistisch lab 20 oktober HV MiddenHolland
Verslag humanistisch lab 20 oktober HV MiddenHollandVerslag humanistisch lab 20 oktober HV MiddenHolland
Verslag humanistisch lab 20 oktober HV MiddenHolland
 
Leaders of the new world of finance
Leaders of the new world of finance Leaders of the new world of finance
Leaders of the new world of finance
 
Obrazy olowkowe
Obrazy olowkoweObrazy olowkowe
Obrazy olowkowe
 
Introduction to Swift 2
Introduction to Swift 2Introduction to Swift 2
Introduction to Swift 2
 
Semicolon Devloper 성과발표회
Semicolon Devloper 성과발표회Semicolon Devloper 성과발표회
Semicolon Devloper 성과발표회
 
Nicole trunfio famous model
Nicole trunfio famous modelNicole trunfio famous model
Nicole trunfio famous model
 
Evaluation Question 1
Evaluation Question 1Evaluation Question 1
Evaluation Question 1
 
Museum Object Pest & Mold Control Methods in Storage-JenniferHein Conservation
Museum Object Pest & Mold Control Methods in Storage-JenniferHein ConservationMuseum Object Pest & Mold Control Methods in Storage-JenniferHein Conservation
Museum Object Pest & Mold Control Methods in Storage-JenniferHein Conservation
 
Uses & gratifications
Uses & gratifications Uses & gratifications
Uses & gratifications
 
Representation
RepresentationRepresentation
Representation
 
Step By Step Front Cover
Step By Step Front Cover Step By Step Front Cover
Step By Step Front Cover
 
Nicole trunfio supermodel
Nicole trunfio supermodelNicole trunfio supermodel
Nicole trunfio supermodel
 
제4회 SK APPJAM 앱등이팀 - 커프리
제4회 SK APPJAM 앱등이팀 - 커프리제4회 SK APPJAM 앱등이팀 - 커프리
제4회 SK APPJAM 앱등이팀 - 커프리
 
Second evaltuation q1
Second evaltuation q1Second evaltuation q1
Second evaltuation q1
 
Nicole trunfio
Nicole trunfioNicole trunfio
Nicole trunfio
 
Step By Step - Front Cover
Step By Step - Front CoverStep By Step - Front Cover
Step By Step - Front Cover
 
Masper - The India's Leading Home Furnishing Store
Masper - The India's Leading Home Furnishing StoreMasper - The India's Leading Home Furnishing Store
Masper - The India's Leading Home Furnishing Store
 
Dowcipy zdjeciowe
Dowcipy zdjecioweDowcipy zdjeciowe
Dowcipy zdjeciowe
 
2015 하반기 AppJam
2015 하반기 AppJam 2015 하반기 AppJam
2015 하반기 AppJam
 
Second evaltuation q1
Second evaltuation q1Second evaltuation q1
Second evaltuation q1
 

Semelhante a Boolean

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
mdaglis
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebra
Andrei Jechiu
 
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
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorem
balafet
 

Semelhante a Boolean (20)

DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
boolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematicsboolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematics
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
 
2nd PUC computer science chapter 2 boolean algebra
2nd PUC computer science chapter 2  boolean algebra 2nd PUC computer science chapter 2  boolean algebra
2nd PUC computer science chapter 2 boolean algebra
 
boolean.pdf
boolean.pdfboolean.pdf
boolean.pdf
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebra
 
BooleanAlgebra.ppt
BooleanAlgebra.pptBooleanAlgebra.ppt
BooleanAlgebra.ppt
 
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
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdf
 
Math task 3
Math task 3Math task 3
Math task 3
 
Boolean Matching in Logic Synthesis
Boolean Matching in Logic SynthesisBoolean Matching in Logic Synthesis
Boolean Matching in Logic Synthesis
 
Limits and derivatives
Limits and derivativesLimits and derivatives
Limits and derivatives
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorem
 
ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.
ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.
ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
 

Mais de Jeane Paguio

Mais de Jeane Paguio (6)

Slideshare Project Proposal
Slideshare Project ProposalSlideshare Project Proposal
Slideshare Project Proposal
 
Technical writing i
Technical writing iTechnical writing i
Technical writing i
 
UCL of Slideshare
UCL of SlideshareUCL of Slideshare
UCL of Slideshare
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Logic
LogicLogic
Logic
 
Future of systems analysis
Future of systems analysisFuture of systems analysis
Future of systems analysis
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Boolean

  • 1. Boolean Expressions and Boolean Functions Let B = {0, 1}. The variable x is called a Boolean variable if it assumes values only from B. A function Bn, the set {(x1, x2, ….xn)|xi ε B, 1 ≤ i ≤ n}, to B is called a Boolean function of degree n x y F(x, y) 1 1 0 The values of Boolean function. 1 0 1 0 1 0 0 0 0 The Boolean expressions in the variables x1, x2, …,xn are defined recursively as follows: 0, 1, x1, x2, ….., xn
  • 2. Example: Find the values of the Boolean function represented by F ( x, y, z ) = xy + z x 1 1 1 1 0 0 0 0 y 1 1 0 0 1 1 0 0 z 1 0 1 0 1 0 1 0 xy 1 1 0 0 0 0 0 0 z’ 0 1 0 1 0 1 0 1 xy + z’ 1 1 0 1 0 1 0 1
  • 3. The Boolean functions F and G of n variables are equal if and only if F(b1, b2, …, bn) = G(b1, b2, …,bn) whenever b1, b2, …, bn belong to B. Two different Boolean expressions that represent the same function are called equivalent. ex: xy, xy + 0, and (xy)1 The complement of the Boolean function F is the function F , where F ( x1 ,  , xn ) = F ( x1 ,  xn )
  • 4. The Boolean sum F + G and the Boolean product FG are defined by (F + G)(x1,…., xn) = F(x1,…, xn) + G(x1,…, xn), (FG)(x1,…, xn) = F(x1,…, xn)G(x1,…, xn) The Boolean functions of degree 2 x y F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 1 1 0 0 1 0 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 1 0 1 0 1 0 0 1 1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 To determine the number of different Boolean functions of degree n, we use the formula: 22n
  • 5. Identities of Boolean Algebra Identity Name x=x Law of double complement x+x = x x.x = x x +0 = x x.1 = x x +1 =1 x.0 = 0 x+ y = y+ x xy = yx Idempotent Laws Identity Laws Dominance Laws Commutative Laws
  • 6. Identities of Boolean Algebra Identity x + ( y + z) = ( x + y) + z x( yz ) = ( xy ) z Name Associative Laws x + yz = ( x + y )( x + z ) x( y + z ) = xy + xz Distributive Laws ( xy ) = x + y ( x + y ) = xy De Morgan’s Laws
  • 7. Example: Show that the distributive law x(y + z) = xy + xz is valid x y z y+z xy xz 1 1 1 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 x(y+z) xy+xz 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0
  • 8. Duality The dual of a Boolean expression is obtained by interchanging Boolean sums and Boolean products and interchanging 0s and 1s. Find the duals of Answer: x( y + 0 ) and x .1 + ( y + z ) . x + ( y.1) and ( x + 0)( yz )
  • 9. Note: The dual of the Boolean function F, denoted by Fd, represented by a Boolean expression is the function represented by the dual of this expression. This dual function does not depend on the particular Boolean expression used to represent F. An identity between functions represented by Boolean expressions remains valid when the duals of both sides of the identity are taken. This result, called the duality principle, is useful for obtaining new identities.
  • 10. A Boolean algebra is a set B with two binary operations v and ʌ, elements 0 and 1, and unary operation ¬ such that the following properties hold for all x, y, and z in B: x ∨ 0 = x  x ∧1 = x  Identity Laws x ∨ x =1  x ∧ x = 0 Domination Laws
  • 11. x ∨ y = y ∨ x  x ∧ y = y ∧ x Commutative Laws ( x ∨ y) ∨ z = x ∨ ( y ∨ z)  ( x ∧ y) ∧ z = x ∧ ( y ∧ z) Associative Laws x ∨ ( y ∧ z) = ( x ∨ y) ∧ ( x ∨ z)  x ∧ ( y ∨ z) = ( x ∧ y) ∨ ( x ∧ z) Distributive Laws
  • 12. Representing Boolean Functions Find Boolean expressions that functions F(x, y, z) and G(x, y, z) x 1 1 1 1 0 0 0 0 y 1 1 0 0 1 1 0 0 z 1 0 1 0 1 0 1 0 F 0 0 1 0 0 0 0 0 G 0 1 0 0 0 1 0 0 represent the To represent F, the value is 1 when x = z = 1 and y = 0 or xy’z. To represent G, the value is 1 when x = y = 1 and z = 0 or when x = z = 0 and y =1. We can form an expression with these values by taking the Boolean sum of two different Boolean products.
  • 13. x 1 1 1 1 0 0 0 0 y 1 1 0 0 1 1 0 0 z 1 0 1 0 1 0 1 0 F 0 0 1 0 0 0 0 0 G 0 1 0 0 0 1 0 0 xyz’ x’yz’ 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 xyz’ + x’yz’ 0 1 0 0 0 1 0 0 xyz’ has value 1, iff x = y = 1 and z = 0 x’yz’ has value 1, iff x = y = 1 and z = 0 xyz’ + x’yz’ has value 1, iff x = y = 1 and z = 0 or x = z = 0 and y = 1
  • 14. A literal is a Boolean variable or its complement. A minterm of the Boolean variables x1, x2, …, xn is a Boolean product y1, y2, …, yn, where yi = xi or yi = x’i. Hence, a minterm is a product of n literals, with one literal for each variable. Example: Find a minterm that equals 1 if x 1 = x3 = 0 and x2 = x4 = x5 = 1, and equals 0 otherwise. x1 x2 x3 x4 x5 The minterm showed has the correct set of values.
  • 15. Sum-of-products expansion or the disjunctive normal form of the Boolean function is the sum of minterms that represents a function. A Boolean sum of minterms has the value 1 when exactly one of the minterms in the sum has the value 1. It is also possible to find a Boolean expression that represents a Boolean function by taking a Boolean product of Boolean sums. The resulting expansion is called the conjunctive normal form or product-ofsums expansion of the function. These expansions can be found from sum-of-products expansion by taking their duals.
  • 16. Find the sum-of-products expansion for the function F ( x, y , z ) = ( x + y ) z x 1 1 1 1 0 0 0 0 Answer: y 1 1 0 0 1 1 0 0 z 1 0 1 0 1 0 1 0 x+y 1 1 1 1 1 1 0 0 z’ 0 1 0 1 0 1 0 1 (x + y)z’ 0 1 0 1 0 1 0 0 F ( x, y, z ) = xyz + xyz + x yz
  • 17. Logic Gates Gates are the basic elements of circuits. Combinatorial circuits or gating networks are circuits have no memory capabilities. These circuits give output that depends only on the input, and not on the current state of the circuit. Types of Elements Inverter which accepts the value of one Boolean variable as input and produces the complement of this value as output. OR Gate, the inputs are the values of two or more Boolean variables. The output is the Boolean sum of their values. AND Gate, the inputs are the values of two or more Boolean variables. The output is the Boolean product of their values.
  • 18. Basic Types of Gates x x x y x+y x y xy inverter OR gate AND gate
  • 19. Combinations of Gates Combinational circuits can be constructed using a combination of inverters, OR gates, and AND gates. Example: x y x y xy xy + x y x xy
  • 20. Exercises: 1.Find the Boolean product of the Boolean variables x, y, and z, or their complements, that has the value 1 if and only if a. x =y = 0, z = 1 b. x = z = 0, y = 1 c. x = 0, y = z = 1 d. x = y = z = 0 2. Find the sum-of-products expansions of the following Boolean functions. a ) F ( x, y , z ) = x + y + z b ) F ( x, y , z ) = ( x + z ) y c) F ( x, y, z ) = x + yz d ) F ( x, y, z ) = xy + z
  • 21. Exercises: Construct circuits that produce the following outputs: 1)( x + y ) x 2) x ( y + z ) 3)( x + y + z )( x yz )

Notas do Editor

  1. {}