SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Propositional logic
Propositional logicPropositional logic
Propositional logicMamta Pandey
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AIIldar Nurgaliev
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete StructureNANDINI SHARMA
 
Vector calculus
Vector calculusVector calculus
Vector calculusKumar
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicUniversity of Potsdam
 
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
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Inductionshowslidedump
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
Lecture 05 syntax analysis 2
Lecture 05 syntax analysis 2Lecture 05 syntax analysis 2
Lecture 05 syntax analysis 2Iffat Anjum
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramAbdullah Jan
 
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
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 

Tendances (20)

Propositional logic
Propositional logicPropositional logic
Propositional logic
 
First order logic
First order logicFirst order logic
First order logic
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Proposition Logic in Discrete Structure
Proposition Logic in Discrete StructureProposition Logic in Discrete Structure
Proposition Logic in Discrete Structure
 
Vector calculus
Vector calculusVector calculus
Vector calculus
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional Logic
 
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
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Recursion DM
Recursion DMRecursion DM
Recursion DM
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Induction
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Lecture 05 syntax analysis 2
Lecture 05 syntax analysis 2Lecture 05 syntax analysis 2
Lecture 05 syntax analysis 2
 
NFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition DiagramNFA Converted to DFA , Minimization of DFA , Transition Diagram
NFA Converted to DFA , Minimization of DFA , Transition Diagram
 
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 د. خالد بكرو
 
Uncertainty in AI
Uncertainty in AIUncertainty in AI
Uncertainty in AI
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 

Similaire à Discrete structures & optimization unit 1

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
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
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
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysisAnoojaI
 
Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)kevinwu1994
 
proposition, truth tables and tautology.pptx
proposition, truth tables and tautology.pptxproposition, truth tables and tautology.pptx
proposition, truth tables and tautology.pptxJayLagman3
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 

Similaire à Discrete structures & optimization unit 1 (20)

Course notes1
Course notes1Course notes1
Course notes1
 
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
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
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
 
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
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysis
 
Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)
 
proposition, truth tables and tautology.pptx
proposition, truth tables and tautology.pptxproposition, truth tables and tautology.pptx
proposition, truth tables and tautology.pptx
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 

Plus de 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
 

Plus de 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
 

Dernier

Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Dernier (20)

Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

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 –