SlideShare a Scribd company logo
1 of 24
DISCRETE STRUCTURES
& OPTIMIZATION
UNIT-1(PART 1)
BY:SURBHI SAROHA
MATHEMATICAL LOGIC
◦ Propositional and Predicate Logic
◦ Propositional Equivalences
◦ Normal Forms
◦ Predicates and Quantifiers
◦ Nested Quantifiers
◦ Rules of Inference
Propositional and Predicate Logic
◦ Every statement (or proposition) is either TRUE or FALSE.
◦ A statement can be formed using other statements connected to each other by 5 kinds of
connectives: AND, OR, NOT, IMPLIES and IFF.
◦ The Connectives AND (∧), OR (∨), NOT (¬), IMPLIES ( =⇒ ) and IFF ( ⇐⇒ ) .
◦ So these connectives are functions of the form {T rue, F alse} 2 → {T rue, F alse}. The connective
NOT takes a single statement and outputs a single statement. So the connective NOT is a
function of the form {T rue, F alse} → {T rue, F alse}.
Truth table of the AND (p ∧ q)
Truth table of the OR (p ∨ q)
Truth table of the NOT (¬p)
The IMPLIES (p ⇒ q)
◦ TRUE statements proves a TRUE statement.
◦ TRUE statements cannot proves a FALSE statement.
◦ FALSE statement can prove any statement.
◦ Example of False implying anything
◦ “If 2 + 2 = 5 then you are pope.”
◦ Let 2 + 2 = 5.
◦ But we know 2 + 2 = 4.
◦ So 5 = 4
◦ and so subtracting 3 from both sides 2 = 1
◦ So 2 person = 1 person.
Cont…..
◦ So YOU and POPE are 1 person and hence you are pope.
◦ The IMPLIES (p ⇒ q)
Truth table of the IFF (p ⇐⇒ q)
Every statement (proposition) is either
TRUE or FALSE.
◦ If you did not know the material earlier and you don’t study hard then you will not get a A in
this course. Therefore if you get a A grade in this course then you knew this material earlier and
you studied hard.
◦ A statement is true if under any condition satisfying the premise (or assumptions) the
statement holds true.
◦ Is the above sentence True or False?
◦ Variable:
◦ you did not know the material earlier = p
◦ you don’t study hard = q
◦ you will not get a A in this course = r
◦ What is “you knew this material earlier”?
Cont…..
◦ you knew this material earlier = ¬p
◦ you studied hard = ¬q
◦ you get a A grade in this course = ¬r
So the sentence is ((p ∧ q) =⇒ r) =⇒ (¬r =⇒ (¬p ∧ ¬q))
We create a table with all the possible input and the
evaluations.
That is, we write the truth table explicitly.
f = [((p ∧ q) =⇒ r) =⇒ (¬r =⇒ (¬p ∧ ¬q))]
f = [s =⇒ t]
Truth table
Consistency/correctness of the
expression
◦ Since the expression does not evaluate to true always so the expression is not correct.
◦ Two statements are equivalent if their TRUTH TABLES are the same.
◦ Is: A ⇒ B is equivalent to (¬B ∧ A)
Definition of Logical Equivalence
◦ Tautology – A proposition which is always true, is called a tautology.
◦ Contradiction – A proposition which is always false, is called a contradiction.
◦ Contingency – A proposition that is neither a tautology nor a contradiction is called a
contingency.
Normal Forms
◦ The problem of finding whether a given statement is tautology or contradiction or satisfiable in
a finite number of steps is called the Decision Problem.
◦ For Decision Problem, construction of truth table may not be practical always. We consider an
alternate procedure known as the reduction to normal forms.
◦ There are two such forms:
◦ Disjunctive Normal Form (DNF)
◦ Conjunctive Normal Form
Disjunctive Normal Form (DNF):
◦ Disjunctive Normal Form (DNF): If p, q are two statements, then "p or q" is a compound
statement, denoted by p ∨ q and referred as the disjunction of p and q.
◦ The disjunction of p and q is true whenever at least one of the two statements is true, and it is
false only when both p and q are false.
p q p ∨ q
T T T
T F T
F T T
F F F
Conjunctive Normal Form
◦ Conjunctive Normal Form: If p, q are two statements, then "p and q" is a compound
statement, denoted by p ∧ q and referred as the conjunction of p and q.
◦ The conjunction of p and q is true only when both p and q are true, otherwise, it is false.
p q p ∧ q
T T T
T F F
F T F
F F F
Predicate Logic – Definition
◦ A predicate is an expression of one or more variables defined on some specific domain. A
predicate with variables can be made a proposition by either assigning a value to the variable or
by quantifying the variable.
◦ The following are some examples of predicates −
◦ Let E(x, y) denote "x = y"
◦ Let X(a, b, c) denote "a + b + c = 0"
◦ Let M(x, y) denote "x is married to y"
Quantifiers
◦ Quantifiers are expressions that indicate the scope of the term to which they are attached, here
predicates. A predicate is a property the subject of the statement can have.
◦ Types of quantification or scopes:
◦ Universal(∀) – The predicate is true for all values of x in the domain.
◦ Existential(∃) – The predicate is true for at least one x in the domain.
◦ “For all” ∀
◦ ∀x P(x)
◦ “There exists” ∃
◦ ∃x P(x)
Nested Quantifiers
◦ a) Everybody loves Jerry.
◦ ∀x L(x, Jerry)
◦ b) Everybody loves somebody.
◦ ∀x ∃y L(x, y)
◦ c) There is somebody whom everybody loves.
◦ ∃y ∀x L(x, y)
◦ d) Nobody loves everybody.
◦ ∀x ∃y ¬L(x, y) or ¬∃x ∀y L(x, y)
◦ e) Everyone loves himself or herself
◦ ∀x L(x, x)
Rules of Inference
◦ Simple arguments can be used as building blocks to construct more complicated valid
arguments.
◦ Certain simple arguments that have been established as valid are very important in terms of
their usage.
◦ These arguments are called Rules of Inference.
Similarly, we have Rules of Inference for
quantified statements –
Thank you

More Related Content

What's hot

Lecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfLecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfDeptii Chaudhari
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingHemantha Kulathilake
 
Types of Language in Theory of Computation
Types of Language in Theory of ComputationTypes of Language in Theory of Computation
Types of Language in Theory of ComputationAnkur Singh
 
Context free grammars
Context free grammarsContext free grammars
Context free grammarsRonak Thakkar
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Ambiguous & Unambiguous Grammar
Ambiguous & Unambiguous GrammarAmbiguous & Unambiguous Grammar
Ambiguous & Unambiguous GrammarMdImamHasan1
 
Intermediate code- generation
Intermediate code- generationIntermediate code- generation
Intermediate code- generationrawan_z
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free GrammarsMarina Santini
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: ParsingRushdi Shams
 
Language Model (N-Gram).pptx
Language Model (N-Gram).pptxLanguage Model (N-Gram).pptx
Language Model (N-Gram).pptxHeneWijaya
 
Pattern matching
Pattern matchingPattern matching
Pattern matchingshravs_188
 
Context free languages
Context free languagesContext free languages
Context free languagesJahurul Islam
 
Relation in Discrete Mathematics
Relation in Discrete Mathematics Relation in Discrete Mathematics
Relation in Discrete Mathematics NANDINI SHARMA
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal languageRabia Khalid
 
Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Abhimanyu Mishra
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issuesSURBHI SAROHA
 

What's hot (20)

Lecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfLecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdf
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological Parsing
 
Types of Language in Theory of Computation
Types of Language in Theory of ComputationTypes of Language in Theory of Computation
Types of Language in Theory of Computation
 
Context free grammars
Context free grammarsContext free grammars
Context free grammars
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Ambiguous & Unambiguous Grammar
Ambiguous & Unambiguous GrammarAmbiguous & Unambiguous Grammar
Ambiguous & Unambiguous Grammar
 
Intermediate code- generation
Intermediate code- generationIntermediate code- generation
Intermediate code- generation
 
Theory of Computation Unit 3
Theory of Computation Unit 3Theory of Computation Unit 3
Theory of Computation Unit 3
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free Grammars
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: Parsing
 
Lexical analysis - Compiler Design
Lexical analysis - Compiler DesignLexical analysis - Compiler Design
Lexical analysis - Compiler Design
 
Language Model (N-Gram).pptx
Language Model (N-Gram).pptxLanguage Model (N-Gram).pptx
Language Model (N-Gram).pptx
 
Pattern matching
Pattern matchingPattern matching
Pattern matching
 
Context free languages
Context free languagesContext free languages
Context free languages
 
Relation in Discrete Mathematics
Relation in Discrete Mathematics Relation in Discrete Mathematics
Relation in Discrete Mathematics
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2Theory of Automata and formal languages unit 2
Theory of Automata and formal languages unit 2
 
Pumping lemma
Pumping lemmaPumping lemma
Pumping lemma
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issues
 

Similar to Discrete structures & optimization unit 1

Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsAbdulRehman378540
 
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
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete StructureNANDINI SHARMA
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdfjayarao21
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
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,VECsundarKanagaraj1
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysisAnoojaI
 

Similar to Discrete structures & optimization unit 1 (20)

Course notes1
Course notes1Course notes1
Course notes1
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete Mathematics
 
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 د. خالد بكرو
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
Logic
LogicLogic
Logic
 
L2.pdf
L2.pdfL2.pdf
L2.pdf
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Quantification
QuantificationQuantification
Quantification
 
L01.ppt
L01.pptL01.ppt
L01.ppt
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Slide subtopic 4
Slide subtopic 4Slide subtopic 4
Slide subtopic 4
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete Structure
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
 
Truth table
Truth tableTruth table
Truth table
 
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
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysis
 

More from SURBHI SAROHA

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2SURBHI SAROHA
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptxSURBHI SAROHA
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)SURBHI SAROHA
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxSURBHI SAROHA
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxSURBHI SAROHA
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 

More from SURBHI SAROHA (20)

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptx
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptx
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptx
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
 
DBMS (UNIT 5)
DBMS (UNIT 5)DBMS (UNIT 5)
DBMS (UNIT 5)
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
 
JAVA(UNIT 4)
JAVA(UNIT 4)JAVA(UNIT 4)
JAVA(UNIT 4)
 
OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)
 
OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)
 
DBMS UNIT 3
DBMS UNIT 3DBMS UNIT 3
DBMS UNIT 3
 
JAVA (UNIT 3)
JAVA (UNIT 3)JAVA (UNIT 3)
JAVA (UNIT 3)
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
 
JAVA UNIT 2
JAVA UNIT 2JAVA UNIT 2
JAVA UNIT 2
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Discrete structures & optimization unit 1

  • 2. MATHEMATICAL LOGIC ◦ Propositional and Predicate Logic ◦ Propositional Equivalences ◦ Normal Forms ◦ Predicates and Quantifiers ◦ Nested Quantifiers ◦ Rules of Inference
  • 3. Propositional and Predicate Logic ◦ Every statement (or proposition) is either TRUE or FALSE. ◦ A statement can be formed using other statements connected to each other by 5 kinds of connectives: AND, OR, NOT, IMPLIES and IFF. ◦ The Connectives AND (∧), OR (∨), NOT (¬), IMPLIES ( =⇒ ) and IFF ( ⇐⇒ ) . ◦ So these connectives are functions of the form {T rue, F alse} 2 → {T rue, F alse}. The connective NOT takes a single statement and outputs a single statement. So the connective NOT is a function of the form {T rue, F alse} → {T rue, F alse}.
  • 4. Truth table of the AND (p ∧ q)
  • 5. Truth table of the OR (p ∨ q)
  • 6. Truth table of the NOT (¬p)
  • 7. The IMPLIES (p ⇒ q) ◦ TRUE statements proves a TRUE statement. ◦ TRUE statements cannot proves a FALSE statement. ◦ FALSE statement can prove any statement. ◦ Example of False implying anything ◦ “If 2 + 2 = 5 then you are pope.” ◦ Let 2 + 2 = 5. ◦ But we know 2 + 2 = 4. ◦ So 5 = 4 ◦ and so subtracting 3 from both sides 2 = 1 ◦ So 2 person = 1 person.
  • 8. Cont….. ◦ So YOU and POPE are 1 person and hence you are pope. ◦ The IMPLIES (p ⇒ q)
  • 9. Truth table of the IFF (p ⇐⇒ q)
  • 10. Every statement (proposition) is either TRUE or FALSE. ◦ If you did not know the material earlier and you don’t study hard then you will not get a A in this course. Therefore if you get a A grade in this course then you knew this material earlier and you studied hard. ◦ A statement is true if under any condition satisfying the premise (or assumptions) the statement holds true. ◦ Is the above sentence True or False? ◦ Variable: ◦ you did not know the material earlier = p ◦ you don’t study hard = q ◦ you will not get a A in this course = r ◦ What is “you knew this material earlier”?
  • 11. Cont….. ◦ you knew this material earlier = ¬p ◦ you studied hard = ¬q ◦ you get a A grade in this course = ¬r So the sentence is ((p ∧ q) =⇒ r) =⇒ (¬r =⇒ (¬p ∧ ¬q)) We create a table with all the possible input and the evaluations. That is, we write the truth table explicitly. f = [((p ∧ q) =⇒ r) =⇒ (¬r =⇒ (¬p ∧ ¬q))] f = [s =⇒ t]
  • 13. Consistency/correctness of the expression ◦ Since the expression does not evaluate to true always so the expression is not correct. ◦ Two statements are equivalent if their TRUTH TABLES are the same. ◦ Is: A ⇒ B is equivalent to (¬B ∧ A)
  • 14. Definition of Logical Equivalence ◦ Tautology – A proposition which is always true, is called a tautology. ◦ Contradiction – A proposition which is always false, is called a contradiction. ◦ Contingency – A proposition that is neither a tautology nor a contradiction is called a contingency.
  • 15. Normal Forms ◦ The problem of finding whether a given statement is tautology or contradiction or satisfiable in a finite number of steps is called the Decision Problem. ◦ For Decision Problem, construction of truth table may not be practical always. We consider an alternate procedure known as the reduction to normal forms. ◦ There are two such forms: ◦ Disjunctive Normal Form (DNF) ◦ Conjunctive Normal Form
  • 16. Disjunctive Normal Form (DNF): ◦ Disjunctive Normal Form (DNF): If p, q are two statements, then "p or q" is a compound statement, denoted by p ∨ q and referred as the disjunction of p and q. ◦ The disjunction of p and q is true whenever at least one of the two statements is true, and it is false only when both p and q are false. p q p ∨ q T T T T F T F T T F F F
  • 17. Conjunctive Normal Form ◦ Conjunctive Normal Form: If p, q are two statements, then "p and q" is a compound statement, denoted by p ∧ q and referred as the conjunction of p and q. ◦ The conjunction of p and q is true only when both p and q are true, otherwise, it is false. p q p ∧ q T T T T F F F T F F F F
  • 18. Predicate Logic – Definition ◦ A predicate is an expression of one or more variables defined on some specific domain. A predicate with variables can be made a proposition by either assigning a value to the variable or by quantifying the variable. ◦ The following are some examples of predicates − ◦ Let E(x, y) denote "x = y" ◦ Let X(a, b, c) denote "a + b + c = 0" ◦ Let M(x, y) denote "x is married to y"
  • 19. Quantifiers ◦ Quantifiers are expressions that indicate the scope of the term to which they are attached, here predicates. A predicate is a property the subject of the statement can have. ◦ Types of quantification or scopes: ◦ Universal(∀) – The predicate is true for all values of x in the domain. ◦ Existential(∃) – The predicate is true for at least one x in the domain. ◦ “For all” ∀ ◦ ∀x P(x) ◦ “There exists” ∃ ◦ ∃x P(x)
  • 20. Nested Quantifiers ◦ a) Everybody loves Jerry. ◦ ∀x L(x, Jerry) ◦ b) Everybody loves somebody. ◦ ∀x ∃y L(x, y) ◦ c) There is somebody whom everybody loves. ◦ ∃y ∀x L(x, y) ◦ d) Nobody loves everybody. ◦ ∀x ∃y ¬L(x, y) or ¬∃x ∀y L(x, y) ◦ e) Everyone loves himself or herself ◦ ∀x L(x, x)
  • 21. Rules of Inference ◦ Simple arguments can be used as building blocks to construct more complicated valid arguments. ◦ Certain simple arguments that have been established as valid are very important in terms of their usage. ◦ These arguments are called Rules of Inference.
  • 22.
  • 23. Similarly, we have Rules of Inference for quantified statements –