SlideShare a Scribd company logo
DISCRETE MATHEMATICAL STRUCTRES
Mr Ch Viswanatha Sarma
M.Sc,M.Phil,M.Tech (Ph.D.)
Asst.Prof
Department of Computer Science and Engineering
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
2
❖ Logic
❖ Mathematical Logic
➢ Propositional Logic
■ Syntax of PL
● Statements
● Logical Connectivities
● Truth Tables
◆ Tautology
◆ Contradiction
■ Semantics of PL
■ Logical Equivalences
Summary of Previous Lecture
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
3
Normal Forms
❖ A normal form of formulae is a syntactic restriction
such that for every formula of logic, there is an
equivalent formula in the restricted form.
❖ Each formula must use only ¬, ∨, and ∧
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
4
Normal Forms
Disjunctive Normal
Form
Negation Normal
Form
Conjunctive Normal
Form
Types
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
5
Terminology used in normal forms
❖ Propositional variables are also referred as atom
❖ A literal is either an atom or its negation
❖ A clause is a disjunction of literals.
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
6
Negation Normal Form (NNF)
❖ A formula is in NNF if ¬ appears only in front of the
propositional variables.
Example : In NNF: ¬A ∧ ¬B
Not in NNF: ¬(A ∨ B)
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
7
Transformation into NNF
Any formula can be transformed into an equivalent
formula in NNF by pushing ¬ inwards.
● ¬¬F ≡ F
● ¬(F ∧ G) ≡ (¬F ∨ ¬G)
● ¬(F ∨ G) ≡ (¬F ∧ ¬G)
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
8
Examples of NNF
1. Convert (¬(A ∧ ¬B) ∧ C) in NNF
2. Convert ¬(r V¬(¬p ∧q)) in NNF
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
9
Disjunctive Normal Form (DNF)
❖ A minterm is a conjunction of literals in which each
variable is represented exactly once.
Example : Given two simple propositions p and q,
p∧ q, p∧ ¬q, ¬p∧ ¬q, ¬p∧ q are minterms of p and q
❖ Each minterm is true for exactly one assignment.
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
10
Disjunctive Normal Form (DNF)
A disjunction of minterms is called Disjunctive
Normal Form.
i.e.; (p∧ q) ∨ (¬p ∧ q ∧ r) ∨ (¬ p∧r )
A disjunction of minterms is true only if at least one
of its constituents minterms is true
Definition
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
11
From truth table to DNF
❖ If a function, e.g. F, is given by a truth table,
determine exactly for which assignments it is true.
❖ We can select the minterms that make the function
true and form the disjunction of these minterms.
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
12
From truth table to DNF
F is true for three assignments:
DNF of F :
( p∧ q ∧ r ) ∨ ( p ∧ ¬q ∧ r ) ∨
(¬ p ∧ ¬q ∧ r)
p q r F
1 1 1 1
1 1 0 0
1 0 1 1
1 0 0 0
0 1 1 0
0 1 0 0
0 0 1 1
0 0 0 0
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
13
Convert the compound proposition p → (q ∧ r ) into DNFExample
p q r q ∧ r p → (q ∧ r )
1 1 1 1 1
1 1 0 0 0
1 0 1 0 0
1 0 0 0 0
0 1 1 1 1
0 1 0 0 1
0 0 1 0 1
0 0 0 0 1
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
14
From the above table, we getExample
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
15
Find the DNF of the compound proposition ¬ ( p→(q ∧ r))Example
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
16
Conjunctive Normal Form (CNF)
❖ A clause is a disjunction of literals in which each
variable is represented exactly once.
Example : Given two simple propositions p and q,
pV q, pV ¬q, ¬pV ¬q, ¬pV q are clauses of p and q
.
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
17
Conjunctive Normal Form (CNF)
A conjunction of one or more clauses is called
conjunctive Normal Form.
i.e.; (p ∨q) ∧ (¬p V q V r) ∧ (¬ p V r )
Definition
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
18
From truth table to CNF
❖ If a function, e.g. F, is given by a truth table,
determine exactly for which assignments it is False.
❖ We can select the minterms that make the function
false and form the disjunction of these minterms.
❖ Then take the complement of disjunction of these
minterms.
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
19
From truth table to CNF
p q r F
1 1 1 1
1 1 0 0
1 0 1 1
1 0 0 0
0 1 1 0
0 1 0 0
0 0 1 1
0 0 0 0
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
20
Example:
Find the Conjunctive normal form of compound
proposition (p→q)→(¬r∧q)
Sol :
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
21
Example:
Find the Conjunctive normal form of compound
proposition ((p ∧ q) ∨ (r ∧ s)) ∨ (¬q ∧ (p ∨ t))
Sol :
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
22
Example:
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
23
Example:
Department of Computer Science and Engineering
Course: Discrete Mathematical Structures
24
Example:

More Related Content

What's hot

Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
Rachana Pathak
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
Protap Mondal
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
harman kaur
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
University of Potsdam
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
Rajendran
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
Abdur Rehman
 
Discrete structures & optimization unit 1
Discrete structures & optimization unit 1Discrete structures & optimization unit 1
Discrete structures & optimization unit 1
SURBHI SAROHA
 
C if else
C if elseC if else
C if else
Ritwik Das
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Dr. Khaled Bakro
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
University of Potsdam
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
Lakshmi R
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2Ali Usman
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
Rishabh Soni
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
Abdur Rehman
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics LectureGenie Rose Santos
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
nszakir
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
Kriti Varshney
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
IIUM
 

What's hot (20)

Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Discrete structures & optimization unit 1
Discrete structures & optimization unit 1Discrete structures & optimization unit 1
Discrete structures & optimization unit 1
 
C if else
C if elseC if else
C if else
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
 

Similar to Normal forms

Lecture notes in_discrete_mathematics
Lecture notes in_discrete_mathematicsLecture notes in_discrete_mathematics
Lecture notes in_discrete_mathematics
saiful26baiust
 
Notes discrete math
Notes discrete mathNotes discrete math
Notes discrete math
liyana31
 
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Unit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VECUnit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VEC
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
sundarKanagaraj1
 
Characterizing the Distortion of Some Simple Euclidean Embeddings
Characterizing the Distortion of Some Simple Euclidean EmbeddingsCharacterizing the Distortion of Some Simple Euclidean Embeddings
Characterizing the Distortion of Some Simple Euclidean Embeddings
Don Sheehy
 
Logic
LogicLogic
Logic
Hamxi
 
Sampling and low-rank tensor approximations
Sampling and low-rank tensor approximationsSampling and low-rank tensor approximations
Sampling and low-rank tensor approximations
Alexander Litvinenko
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
Iosif Itkin
 
Discrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docxDiscrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docx
SwapnajitSahoo1
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
DakshBaveja
 
Engineering mathematics 1
Engineering mathematics 1Engineering mathematics 1
Engineering mathematics 1
Minia University
 
lecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdflecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdf
AnaNeacsu5
 
Data sparse approximation of Karhunen-Loeve Expansion
Data sparse approximation of Karhunen-Loeve ExpansionData sparse approximation of Karhunen-Loeve Expansion
Data sparse approximation of Karhunen-Loeve Expansion
Alexander Litvinenko
 
Data sparse approximation of the Karhunen-Loeve expansion
Data sparse approximation of the Karhunen-Loeve expansionData sparse approximation of the Karhunen-Loeve expansion
Data sparse approximation of the Karhunen-Loeve expansion
Alexander Litvinenko
 
Slides
SlidesSlides
A Tutorial on Computational Geometry
A Tutorial on Computational GeometryA Tutorial on Computational Geometry
A Tutorial on Computational Geometry
Minh-Tri Pham
 
Local Model Checking Algorithm Based on Mu-calculus with Partial Orders
Local Model Checking Algorithm Based on Mu-calculus with Partial OrdersLocal Model Checking Algorithm Based on Mu-calculus with Partial Orders
Local Model Checking Algorithm Based on Mu-calculus with Partial Orders
TELKOMNIKA JOURNAL
 
CVC Seminar
CVC SeminarCVC Seminar
CVC Seminar
Gema R. Quintana
 
Darmon points for fields of mixed signature
Darmon points for fields of mixed signatureDarmon points for fields of mixed signature
Darmon points for fields of mixed signature
mmasdeu
 
P, NP and NP-Complete, Theory of NP-Completeness V2
P, NP and NP-Complete, Theory of NP-Completeness V2P, NP and NP-Complete, Theory of NP-Completeness V2
P, NP and NP-Complete, Theory of NP-Completeness V2
S.Shayan Daneshvar
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
SergioUlisesRojasAla
 

Similar to Normal forms (20)

Lecture notes in_discrete_mathematics
Lecture notes in_discrete_mathematicsLecture notes in_discrete_mathematics
Lecture notes in_discrete_mathematics
 
Notes discrete math
Notes discrete mathNotes discrete math
Notes discrete math
 
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Unit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VECUnit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VEC
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
 
Characterizing the Distortion of Some Simple Euclidean Embeddings
Characterizing the Distortion of Some Simple Euclidean EmbeddingsCharacterizing the Distortion of Some Simple Euclidean Embeddings
Characterizing the Distortion of Some Simple Euclidean Embeddings
 
Logic
LogicLogic
Logic
 
Sampling and low-rank tensor approximations
Sampling and low-rank tensor approximationsSampling and low-rank tensor approximations
Sampling and low-rank tensor approximations
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
 
Discrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docxDiscrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docx
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
Engineering mathematics 1
Engineering mathematics 1Engineering mathematics 1
Engineering mathematics 1
 
lecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdflecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdf
 
Data sparse approximation of Karhunen-Loeve Expansion
Data sparse approximation of Karhunen-Loeve ExpansionData sparse approximation of Karhunen-Loeve Expansion
Data sparse approximation of Karhunen-Loeve Expansion
 
Data sparse approximation of the Karhunen-Loeve expansion
Data sparse approximation of the Karhunen-Loeve expansionData sparse approximation of the Karhunen-Loeve expansion
Data sparse approximation of the Karhunen-Loeve expansion
 
Slides
SlidesSlides
Slides
 
A Tutorial on Computational Geometry
A Tutorial on Computational GeometryA Tutorial on Computational Geometry
A Tutorial on Computational Geometry
 
Local Model Checking Algorithm Based on Mu-calculus with Partial Orders
Local Model Checking Algorithm Based on Mu-calculus with Partial OrdersLocal Model Checking Algorithm Based on Mu-calculus with Partial Orders
Local Model Checking Algorithm Based on Mu-calculus with Partial Orders
 
CVC Seminar
CVC SeminarCVC Seminar
CVC Seminar
 
Darmon points for fields of mixed signature
Darmon points for fields of mixed signatureDarmon points for fields of mixed signature
Darmon points for fields of mixed signature
 
P, NP and NP-Complete, Theory of NP-Completeness V2
P, NP and NP-Complete, Theory of NP-Completeness V2P, NP and NP-Complete, Theory of NP-Completeness V2
P, NP and NP-Complete, Theory of NP-Completeness V2
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
 

Recently uploaded

Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 

Recently uploaded (20)

Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 

Normal forms

  • 1. DISCRETE MATHEMATICAL STRUCTRES Mr Ch Viswanatha Sarma M.Sc,M.Phil,M.Tech (Ph.D.) Asst.Prof Department of Computer Science and Engineering Department of Computer Science and Engineering Course: Discrete Mathematical Structures
  • 2. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 2 ❖ Logic ❖ Mathematical Logic ➢ Propositional Logic ■ Syntax of PL ● Statements ● Logical Connectivities ● Truth Tables ◆ Tautology ◆ Contradiction ■ Semantics of PL ■ Logical Equivalences Summary of Previous Lecture
  • 3. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 3 Normal Forms ❖ A normal form of formulae is a syntactic restriction such that for every formula of logic, there is an equivalent formula in the restricted form. ❖ Each formula must use only ¬, ∨, and ∧
  • 4. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 4 Normal Forms Disjunctive Normal Form Negation Normal Form Conjunctive Normal Form Types
  • 5. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 5 Terminology used in normal forms ❖ Propositional variables are also referred as atom ❖ A literal is either an atom or its negation ❖ A clause is a disjunction of literals.
  • 6. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 6 Negation Normal Form (NNF) ❖ A formula is in NNF if ¬ appears only in front of the propositional variables. Example : In NNF: ¬A ∧ ¬B Not in NNF: ¬(A ∨ B)
  • 7. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 7 Transformation into NNF Any formula can be transformed into an equivalent formula in NNF by pushing ¬ inwards. ● ¬¬F ≡ F ● ¬(F ∧ G) ≡ (¬F ∨ ¬G) ● ¬(F ∨ G) ≡ (¬F ∧ ¬G)
  • 8. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 8 Examples of NNF 1. Convert (¬(A ∧ ¬B) ∧ C) in NNF 2. Convert ¬(r V¬(¬p ∧q)) in NNF
  • 9. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 9 Disjunctive Normal Form (DNF) ❖ A minterm is a conjunction of literals in which each variable is represented exactly once. Example : Given two simple propositions p and q, p∧ q, p∧ ¬q, ¬p∧ ¬q, ¬p∧ q are minterms of p and q ❖ Each minterm is true for exactly one assignment.
  • 10. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 10 Disjunctive Normal Form (DNF) A disjunction of minterms is called Disjunctive Normal Form. i.e.; (p∧ q) ∨ (¬p ∧ q ∧ r) ∨ (¬ p∧r ) A disjunction of minterms is true only if at least one of its constituents minterms is true Definition
  • 11. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 11 From truth table to DNF ❖ If a function, e.g. F, is given by a truth table, determine exactly for which assignments it is true. ❖ We can select the minterms that make the function true and form the disjunction of these minterms.
  • 12. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 12 From truth table to DNF F is true for three assignments: DNF of F : ( p∧ q ∧ r ) ∨ ( p ∧ ¬q ∧ r ) ∨ (¬ p ∧ ¬q ∧ r) p q r F 1 1 1 1 1 1 0 0 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 0 0
  • 13. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 13 Convert the compound proposition p → (q ∧ r ) into DNFExample p q r q ∧ r p → (q ∧ r ) 1 1 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 1 1 0 1 0 0 1 0 0 1 0 1 0 0 0 0 1
  • 14. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 14 From the above table, we getExample
  • 15. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 15 Find the DNF of the compound proposition ¬ ( p→(q ∧ r))Example
  • 16. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 16 Conjunctive Normal Form (CNF) ❖ A clause is a disjunction of literals in which each variable is represented exactly once. Example : Given two simple propositions p and q, pV q, pV ¬q, ¬pV ¬q, ¬pV q are clauses of p and q .
  • 17. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 17 Conjunctive Normal Form (CNF) A conjunction of one or more clauses is called conjunctive Normal Form. i.e.; (p ∨q) ∧ (¬p V q V r) ∧ (¬ p V r ) Definition
  • 18. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 18 From truth table to CNF ❖ If a function, e.g. F, is given by a truth table, determine exactly for which assignments it is False. ❖ We can select the minterms that make the function false and form the disjunction of these minterms. ❖ Then take the complement of disjunction of these minterms.
  • 19. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 19 From truth table to CNF p q r F 1 1 1 1 1 1 0 0 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 0 0
  • 20. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 20 Example: Find the Conjunctive normal form of compound proposition (p→q)→(¬r∧q) Sol :
  • 21. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 21 Example: Find the Conjunctive normal form of compound proposition ((p ∧ q) ∨ (r ∧ s)) ∨ (¬q ∧ (p ∨ t)) Sol :
  • 22. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 22 Example:
  • 23. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 23 Example:
  • 24. Department of Computer Science and Engineering Course: Discrete Mathematical Structures 24 Example: