SlideShare a Scribd company logo
1 of 29
Download to read offline
Lecture no : 12
Introduction to Computer
Mr. Muhammad Moazzam
Faculty of DHPT,
University of the Lahore.
Boolean Algebra
Boolean Algebra
• In Boolean Algebra , elements have one of
two values –True or False or (0,1)
• The circuits in a computer are also designed
for two-state operations
• That is input and output of a circuit is either
low(0) or high(1)
• The circuits are called logic circuits.
BOOLEAN VARIABLES
• The variables in Boolean Algebra can
take only two values- True or false.
• The variables are called Boolean
variables.
Boolean Operators
• There are three basic operators in Boolean
Algebra which are called logical operators or
Boolean operators.
OR - logical addition
AND – logical multiplication
NOT – Logical negation
TRUTH TABLES
• A truth table is a table that represents the
possible values of the operands and
corresponding values of a Boolean operation
or a Boolean expressions.
• Boolean expression with ‘n’ number of
variables , the truth table will have 2n rows.
LOGIC GATES
• A logic gate is an electronic circuit which
makes logic decisions.
• A logic gate takes one or more inputs and
will produce only one output.
• Logic gates are the building blocks from
which most of the digital systems are built
up.
• The three basic logical operators are
OR,AND and NOT
• They are said to be logically complete as any
Boolean function can be realized in terms of
these connectives .
• Gate used to implement these logical operators
are known as basic logic gates.
LOGIC GATES
EVALUATION OF BOOLEAN EXPRESSION USING
TRUTH TABLE
To create a truth table, follow the steps given below.
 Step 1: Determine the number of variables, for n
variables create a table with 2n rows.
 For two variables i.e. X, Y then truth table will need 22 or
4 rows.
 For three variables i.e. X, Y, Z, then truth table will need
23 or 8 rows.
 Step 2: List the variables and every combination of 1
(TRUE) and 0 (FALSE) for the given variables
 Step 3: Create a new column for each term of the
statement or argument.
 Step 4: If two statements have the same truth values,
then they are equivalent. 13
OR Operation
• Boolean expression for the OR operation:
x =A + B
• The above expression is read as
“x equals A OR B”
OR Gate
• An OR gate is a gate that has two or more
inputs and whose output is equal to the OR
combination of the inputs.
AND Gate
• The and gate is a logic circuit which
accepts two or more input signals but
produces only one output signal.
• The output signal produced will be 1 only if
all input signals are 1 otherwise it will be 0.
AND Operation
• Boolean expression for the AND operation:
x =A.B
• The above expression is read as
“x equals AAND B”
AND Gate
• An AND gate is a gate that has two or more
inputs and whose output is equal to the
AND product of the inputs.
NOT Gate
• The NOT gate is a logic circuit which will
accept only one input signal .
• The output state produced by NOT gate will be
always the opposite of the input signal
• Hence it is called the inverter.
NOT Operation
• The NOT operation is an unary operation, taking only
one input variable.
• Boolean expression for the NOT operation:
x = A
• The above expression is read as “x equals the inverse
of A
• Also known as inversion or complementation.
• Can also be expressed as: A’
NOT Operation
NAND Gate
 Not AND Gate - NOT + AND gate It is a combination
of NOT and AND gates It is Complemented AND
Gate
 Symbol of NAND gate
NAND Gate
NAND Gate
NOR Gate
NOR Gate
Boolean algebra
• A Boolean algebra comprises...
– A set of elements
– Binary operators {+ , •} Boolean sum and
product
– A unary operation { ' } (or { }) example: A’ or A
Boolean algebra
• …and the following axioms
– The set B contains at least two elements {a b} with a  b
– Closure: a+b is in B a•b is in B
– Commutative: a+b = b+a a•b = b•a
– Associative: a+(b+c) = (a+b)+c a•(b•c) = (a•b)•c
– Identity: a+0 = a a•1 = a
– Distributive: a+(b•c)=(a+b)•(a+c) ,a•(b+c)=(a•b)+(a•c)
– Complementarity: a+a' = 1 a•a' = 0
DeMorgan's theorem
 First Theorem:
 The De-Morgan's first theorem states that, "The
complement of a sum equals to the product of the
complements".
 i.e. (A+B)'=A'.B’
DeMorgan's
theorem
DeMorgan's theorem
Second Theorem:
De Morgan's second theorem states that, "The
complement of a product is equal to the sum of the
complements."
i.e. (A.B)'=A'+B'
DeMorgan's theorem
Boolean Algebra

More Related Content

What's hot

Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 
Digital electronics
Digital electronicsDigital electronics
Digital electronicsnanishajieha
 
Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gatesMD Mahadi Hasan
 
Presentation of universal logic gate
Presentation of universal logic gatePresentation of universal logic gate
Presentation of universal logic gateNur Mohammad Rayhan
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logicYoungik Song
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVDeepak Yadav
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)Hemant Suthar
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentationDigital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentationfoyez ahammad
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanYasir Khan
 
Gates and Flip flop
Gates and Flip flopGates and Flip flop
Gates and Flip flophamza munir
 

What's hot (20)

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 ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
Digital electronics - Basics
Digital electronics - BasicsDigital electronics - Basics
Digital electronics - Basics
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gates
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Presentation of universal logic gate
Presentation of universal logic gatePresentation of universal logic gate
Presentation of universal logic gate
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Logic gate
Logic gateLogic gate
Logic gate
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAV
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentationDigital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
 
Logic gates
Logic gatesLogic gates
Logic gates
 
logic gates
logic gateslogic gates
logic gates
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
Digital 1
Digital 1Digital 1
Digital 1
 
Gates and Flip flop
Gates and Flip flopGates and Flip flop
Gates and Flip flop
 

Similar to Boolean Algebra

Digital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxDigital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxProfVilasShamraoPati
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxRithinA1
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesEr. Nawaraj Bhandari
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraelfeds916
 
Digital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxDigital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxThapar Institute
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxNadzlinIbrahim3
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxGaganaP13
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraAshish KC
 
Logic Gates & Related Device
Logic Gates & Related DeviceLogic Gates & Related Device
Logic Gates & Related DeviceMd. Nahidul Islam
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxAbubakrZahid1
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfTamiratDejene1
 

Similar to Boolean Algebra (20)

boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Digital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxDigital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptx
 
Digital design chap 2
Digital design    chap 2Digital design    chap 2
Digital design chap 2
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
UNIT1-part2.pptx
UNIT1-part2.pptxUNIT1-part2.pptx
UNIT1-part2.pptx
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Digital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxDigital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptx
 
UNIT1-part2.pptx
UNIT1-part2.pptxUNIT1-part2.pptx
UNIT1-part2.pptx
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptx
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
Logic Gates & Related Device
Logic Gates & Related DeviceLogic Gates & Related Device
Logic Gates & Related Device
 
Electronics: Logic Gates
Electronics: Logic GatesElectronics: Logic Gates
Electronics: Logic Gates
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptx
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
 
Boolean Algebra part 2.ppt
Boolean Algebra part 2.pptBoolean Algebra part 2.ppt
Boolean Algebra part 2.ppt
 
Logic gates
Logic gatesLogic gates
Logic gates
 

More from The University of Lahore

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...The University of Lahore
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...The University of Lahore
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output DevicesThe University of Lahore
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input DevicesThe University of Lahore
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of ComputerThe University of Lahore
 

More from The University of Lahore (17)

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
 
Numbering System Base Conversion
Numbering System Base ConversionNumbering System Base Conversion
Numbering System Base Conversion
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices
 
Components of Computer System
Components of Computer SystemComponents of Computer System
Components of Computer System
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Types of Computer
Types of Computer Types of Computer
Types of Computer
 
Generations of Computer
Generations of Computer Generations of Computer
Generations of Computer
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of Computer
 
Rehabilitation Engineering
Rehabilitation Engineering Rehabilitation Engineering
Rehabilitation Engineering
 
Introduction to rehabilitation
Introduction to rehabilitationIntroduction to rehabilitation
Introduction to rehabilitation
 
2. levels of prevention
2. levels of prevention2. levels of prevention
2. levels of prevention
 
definitions of health& concept of disease
definitions of health& concept of diseasedefinitions of health& concept of disease
definitions of health& concept of disease
 

Recently uploaded

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 

Recently uploaded (20)

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

Boolean Algebra

  • 1. Lecture no : 12 Introduction to Computer Mr. Muhammad Moazzam Faculty of DHPT, University of the Lahore.
  • 3. Boolean Algebra • In Boolean Algebra , elements have one of two values –True or False or (0,1) • The circuits in a computer are also designed for two-state operations • That is input and output of a circuit is either low(0) or high(1) • The circuits are called logic circuits.
  • 4. BOOLEAN VARIABLES • The variables in Boolean Algebra can take only two values- True or false. • The variables are called Boolean variables.
  • 5. Boolean Operators • There are three basic operators in Boolean Algebra which are called logical operators or Boolean operators. OR - logical addition AND – logical multiplication NOT – Logical negation
  • 6. TRUTH TABLES • A truth table is a table that represents the possible values of the operands and corresponding values of a Boolean operation or a Boolean expressions. • Boolean expression with ‘n’ number of variables , the truth table will have 2n rows.
  • 7. LOGIC GATES • A logic gate is an electronic circuit which makes logic decisions. • A logic gate takes one or more inputs and will produce only one output. • Logic gates are the building blocks from which most of the digital systems are built up.
  • 8. • The three basic logical operators are OR,AND and NOT • They are said to be logically complete as any Boolean function can be realized in terms of these connectives . • Gate used to implement these logical operators are known as basic logic gates. LOGIC GATES
  • 9. EVALUATION OF BOOLEAN EXPRESSION USING TRUTH TABLE To create a truth table, follow the steps given below.  Step 1: Determine the number of variables, for n variables create a table with 2n rows.  For two variables i.e. X, Y then truth table will need 22 or 4 rows.  For three variables i.e. X, Y, Z, then truth table will need 23 or 8 rows.  Step 2: List the variables and every combination of 1 (TRUE) and 0 (FALSE) for the given variables  Step 3: Create a new column for each term of the statement or argument.  Step 4: If two statements have the same truth values, then they are equivalent. 13
  • 10. OR Operation • Boolean expression for the OR operation: x =A + B • The above expression is read as “x equals A OR B”
  • 11. OR Gate • An OR gate is a gate that has two or more inputs and whose output is equal to the OR combination of the inputs.
  • 12. AND Gate • The and gate is a logic circuit which accepts two or more input signals but produces only one output signal. • The output signal produced will be 1 only if all input signals are 1 otherwise it will be 0.
  • 13. AND Operation • Boolean expression for the AND operation: x =A.B • The above expression is read as “x equals AAND B”
  • 14. AND Gate • An AND gate is a gate that has two or more inputs and whose output is equal to the AND product of the inputs.
  • 15. NOT Gate • The NOT gate is a logic circuit which will accept only one input signal . • The output state produced by NOT gate will be always the opposite of the input signal • Hence it is called the inverter.
  • 16. NOT Operation • The NOT operation is an unary operation, taking only one input variable. • Boolean expression for the NOT operation: x = A • The above expression is read as “x equals the inverse of A • Also known as inversion or complementation. • Can also be expressed as: A’
  • 18. NAND Gate  Not AND Gate - NOT + AND gate It is a combination of NOT and AND gates It is Complemented AND Gate  Symbol of NAND gate
  • 23. Boolean algebra • A Boolean algebra comprises... – A set of elements – Binary operators {+ , •} Boolean sum and product – A unary operation { ' } (or { }) example: A’ or A
  • 24. Boolean algebra • …and the following axioms – The set B contains at least two elements {a b} with a  b – Closure: a+b is in B a•b is in B – Commutative: a+b = b+a a•b = b•a – Associative: a+(b+c) = (a+b)+c a•(b•c) = (a•b)•c – Identity: a+0 = a a•1 = a – Distributive: a+(b•c)=(a+b)•(a+c) ,a•(b+c)=(a•b)+(a•c) – Complementarity: a+a' = 1 a•a' = 0
  • 25. DeMorgan's theorem  First Theorem:  The De-Morgan's first theorem states that, "The complement of a sum equals to the product of the complements".  i.e. (A+B)'=A'.B’
  • 27. DeMorgan's theorem Second Theorem: De Morgan's second theorem states that, "The complement of a product is equal to the sum of the complements." i.e. (A.B)'=A'+B'