SlideShare a Scribd company logo
1 of 18
Download to read offline
KNOWLEDGE REPRESENTATION
Dr.T.M.SARAVANAN
Associate Professor,
Department of Computer Applications,
Kongu Engineering College,
Perundurai – 638 060.
Inference rules
2
PROPOSITIONAL LOGIC
25-08-2021
PROPOSITIONAL LOGIC
PROPOSITIONAL LOGIC
PROPOSITIONAL LOGIC
Propositional Equivalences
 Two statements X and Y are logically equivalent if any of the
following two conditions hold − The truth tables of each statement
have the same truth values.
 The bi-conditional statement X⇔Y is a tautology.
PROPOSITIONAL LOGIC
Propositional Equivalences
 Two statements X and Y are logically equivalent if any of the
following two conditions hold − The truth tables of each statement
have the same truth values.
 The bi-conditional statement X⇔Y is a tautology.
PROPOSITIONAL LOGIC
Propositional Equivalences
 According to propositional logic is the following a tautology,
a contradiction or a contingent?
¬(A∧(¬B))↔(A→B)
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
1. If it rains, then I will stay at home.
The given sentence is- “If it rains, then I will stay at home.”
This sentence is of the form- “If p then q”.
So, the symbolic form is p → q where-
p : It rains
q : I will stay at home
2. If I will go to Australia, then I will earn more money.
So, the symbolic form is p → q where-
p : I will go to Australia
q : I will earn more money
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
3. He is poor but honest.
So, the symbolic form is p ∧ q where-
p : He is poor
q : He is honest
4. If a = b and b = c then a = c.
So, the symbolic form is (p ∧ q) → r where-
p : a = b
q : b = c
r : a = c
5. Neither it is hot nor cold today.
So, the symbolic form is ∼p ∧ ∼q where-
p : It is hot today
q : It is cold today
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
6. He goes to play a match if and only if it does not rain.
So, the symbolic form is p ↔ q where-
p : He goes to play a match
q : It does not rain
7. Birds fly if and only if sky is clear.
So, the symbolic form is p ↔ q where-
p : Birds fly
q : Sky is clear
8. I will go only if he stays.
So, the symbolic form is p → q where-
p : I will go
q : He stays
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
9. I will go if he stays.
So, the symbolic form is p → q where-
p : He stays
q : I will go
10. It is false that he is poor but not honest.
So, the symbolic form is ∼(p ∧ ∼q) where-
p : He is poor
q : He is honest
11.It is false that he is poor or clever but not honest.
So, the symbolic form is ∼((p ∨ q) ∧ ∼r) where-
p : He is poor
q : He is clever
r : He is honest
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
12. It is hot or else it is both cold and cloudy.
So, the symbolic form is p ∨ (q ∧ r) where-
p : It is hot
q : It is cold
r : It is cloudy
13. I will not go to class unless you come.
So, the symbolic form is ∼ q → p where-
p : I will go to class
q : You come
14. We will leave whenever he comes.
So, the symbolic form is p → q where-
p : He comes
q : We will leave
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
15. Either today is Sunday or Monday.
So, the symbolic form is p ∨ q where-
p : Today is Sunday
q : Today is Monday
16. You will qualify GATE only if you work hard.
So, the symbolic form is p → q where-
p : You will qualify GATE
q : You work hard
17. Presence of cycle in a single instance RAG is a necessary and
sufficient condition for deadlock.
So, the symbolic form is p ↔ q where-
p : Presence of cycle in a single instance RAG
q : Presence of deadlock
PROPOSITIONAL LOGIC
Write the following English sentences in symbolic form-
18. Presence of cycle in a multi instance RAG is a necessary but not
sufficient condition for deadlock.
So, the symbolic form is (q → p) ∧ ∼(p → q) where-
p : Presence of cycle in a multi instance RAG
q : Presence of deadlock
19. I will dance only if you sing.
So, the symbolic form is p → q where-
p : I will dance
q : You sing
20. Neither the red nor the green is available in size 5.
So, the symbolic form is ∼p ∧ ∼q where-
p : Red is available in size 5
q : Green is available in size 5
PROPOSITIONAL LOGIC
1. Consider the statement about a party, “If it's your birthday or
there will be cake, then there will be cake.”
a) Translate the above statement into symbols. Clearly state which
statement is P and which is Q.
b) Make a truth table for the statement.
c) Assuming the statement is true, what (if anything) can you
conclude if there will be cake?
d) Assuming the statement is true, what (if anything) can you
conclude if there will not be cake?
e) Suppose you found out that the statement was a lie. What can
you conclude?
PROPOSITIONAL LOGIC
1. Consider the statement about a party, “If it's your birthday or
there will be cake, then there will be cake.”
a) P:P: it's your birthday; Q:Q: there will be cake. (P∨Q)→Q
b) Hint: you should get three T's and one F.
c) Only that there will be cake.
d) It's NOT your birthday!
e) It's your birthday, but the cake is a lie.
2. Make a truth table for the statement (P∨Q)→(P∧Q).
PROPOSITIONAL LOGIC
3. Make a truth table for the statement ¬P∧(Q→P). What can you
conclude about P and Q if you know the statement is true?
If the statement is true, then both P and Q are false.
4. Make a truth table for the statement ¬P→(Q∧R).
5. Determine whether the following two statements are logically
equivalent: ¬(P→Q)¬(P→Q) and P∧¬Q.P∧¬Q. Explain how you know
you are correct.
6. Are the statements P→(Q∨R) and (P→Q)∨(P→R) logically
equivalent?

More Related Content

What's hot

AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESsuthi
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 DigiGurukul
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematicsblaircomp2003
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardAnimesh Chaturvedi
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automatadeepinderbedi
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languagesparmeet834
 
Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE A. N. M. Jubaer
 
Presentation on Text Classification
Presentation on Text ClassificationPresentation on Text Classification
Presentation on Text ClassificationSai Srinivas Kotni
 

What's hot (20)

Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTES
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Kleene's theorem
Kleene's theoremKleene's theorem
Kleene's theorem
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Normal forms
Normal formsNormal forms
Normal forms
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematics
 
First order logic
First order logicFirst order logic
First order logic
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Machine Learning: Bias and Variance Trade-off
Machine Learning: Bias and Variance Trade-offMachine Learning: Bias and Variance Trade-off
Machine Learning: Bias and Variance Trade-off
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
String matching, naive,
String matching, naive,String matching, naive,
String matching, naive,
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
 
NP completeness
NP completenessNP completeness
NP completeness
 
Regular Languages
Regular LanguagesRegular Languages
Regular Languages
 
Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE
 
Presentation on Text Classification
Presentation on Text ClassificationPresentation on Text Classification
Presentation on Text Classification
 

Similar to Artificial Intelligence - Propositional Logic

Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsZenLooper
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etcAbdur Rehman
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxMahdiHasan86
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdfZLEMORHAN3
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverseAbdur Rehman
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsAbdulRehman378540
 
#3 formal methods – propositional logic
#3 formal methods – propositional logic#3 formal methods – propositional logic
#3 formal methods – propositional logicSharif Omar Salem
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS ASSINGMENT
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS  ASSINGMENTLOGICAL CONNETIVES USE DISCRETE MATHSMATICS  ASSINGMENT
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS ASSINGMENTSELF EMPLOY
 
Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 

Similar to Artificial Intelligence - Propositional Logic (20)

Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applications
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptx
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdf
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverse
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete Mathematics
 
#3 formal methods – propositional logic
#3 formal methods – propositional logic#3 formal methods – propositional logic
#3 formal methods – propositional logic
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS ASSINGMENT
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS  ASSINGMENTLOGICAL CONNETIVES USE DISCRETE MATHSMATICS  ASSINGMENT
LOGICAL CONNETIVES USE DISCRETE MATHSMATICS ASSINGMENT
 
Logic
LogicLogic
Logic
 
Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Logic.pdf
Logic.pdfLogic.pdf
Logic.pdf
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 

Recently uploaded

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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
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
 

Recently uploaded (20)

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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
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
 
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
 

Artificial Intelligence - Propositional Logic

  • 1. KNOWLEDGE REPRESENTATION Dr.T.M.SARAVANAN Associate Professor, Department of Computer Applications, Kongu Engineering College, Perundurai – 638 060.
  • 6. PROPOSITIONAL LOGIC Propositional Equivalences  Two statements X and Y are logically equivalent if any of the following two conditions hold − The truth tables of each statement have the same truth values.  The bi-conditional statement X⇔Y is a tautology.
  • 7. PROPOSITIONAL LOGIC Propositional Equivalences  Two statements X and Y are logically equivalent if any of the following two conditions hold − The truth tables of each statement have the same truth values.  The bi-conditional statement X⇔Y is a tautology.
  • 8. PROPOSITIONAL LOGIC Propositional Equivalences  According to propositional logic is the following a tautology, a contradiction or a contingent? ¬(A∧(¬B))↔(A→B)
  • 9. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 1. If it rains, then I will stay at home. The given sentence is- “If it rains, then I will stay at home.” This sentence is of the form- “If p then q”. So, the symbolic form is p → q where- p : It rains q : I will stay at home 2. If I will go to Australia, then I will earn more money. So, the symbolic form is p → q where- p : I will go to Australia q : I will earn more money
  • 10. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 3. He is poor but honest. So, the symbolic form is p ∧ q where- p : He is poor q : He is honest 4. If a = b and b = c then a = c. So, the symbolic form is (p ∧ q) → r where- p : a = b q : b = c r : a = c 5. Neither it is hot nor cold today. So, the symbolic form is ∼p ∧ ∼q where- p : It is hot today q : It is cold today
  • 11. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 6. He goes to play a match if and only if it does not rain. So, the symbolic form is p ↔ q where- p : He goes to play a match q : It does not rain 7. Birds fly if and only if sky is clear. So, the symbolic form is p ↔ q where- p : Birds fly q : Sky is clear 8. I will go only if he stays. So, the symbolic form is p → q where- p : I will go q : He stays
  • 12. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 9. I will go if he stays. So, the symbolic form is p → q where- p : He stays q : I will go 10. It is false that he is poor but not honest. So, the symbolic form is ∼(p ∧ ∼q) where- p : He is poor q : He is honest 11.It is false that he is poor or clever but not honest. So, the symbolic form is ∼((p ∨ q) ∧ ∼r) where- p : He is poor q : He is clever r : He is honest
  • 13. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 12. It is hot or else it is both cold and cloudy. So, the symbolic form is p ∨ (q ∧ r) where- p : It is hot q : It is cold r : It is cloudy 13. I will not go to class unless you come. So, the symbolic form is ∼ q → p where- p : I will go to class q : You come 14. We will leave whenever he comes. So, the symbolic form is p → q where- p : He comes q : We will leave
  • 14. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 15. Either today is Sunday or Monday. So, the symbolic form is p ∨ q where- p : Today is Sunday q : Today is Monday 16. You will qualify GATE only if you work hard. So, the symbolic form is p → q where- p : You will qualify GATE q : You work hard 17. Presence of cycle in a single instance RAG is a necessary and sufficient condition for deadlock. So, the symbolic form is p ↔ q where- p : Presence of cycle in a single instance RAG q : Presence of deadlock
  • 15. PROPOSITIONAL LOGIC Write the following English sentences in symbolic form- 18. Presence of cycle in a multi instance RAG is a necessary but not sufficient condition for deadlock. So, the symbolic form is (q → p) ∧ ∼(p → q) where- p : Presence of cycle in a multi instance RAG q : Presence of deadlock 19. I will dance only if you sing. So, the symbolic form is p → q where- p : I will dance q : You sing 20. Neither the red nor the green is available in size 5. So, the symbolic form is ∼p ∧ ∼q where- p : Red is available in size 5 q : Green is available in size 5
  • 16. PROPOSITIONAL LOGIC 1. Consider the statement about a party, “If it's your birthday or there will be cake, then there will be cake.” a) Translate the above statement into symbols. Clearly state which statement is P and which is Q. b) Make a truth table for the statement. c) Assuming the statement is true, what (if anything) can you conclude if there will be cake? d) Assuming the statement is true, what (if anything) can you conclude if there will not be cake? e) Suppose you found out that the statement was a lie. What can you conclude?
  • 17. PROPOSITIONAL LOGIC 1. Consider the statement about a party, “If it's your birthday or there will be cake, then there will be cake.” a) P:P: it's your birthday; Q:Q: there will be cake. (P∨Q)→Q b) Hint: you should get three T's and one F. c) Only that there will be cake. d) It's NOT your birthday! e) It's your birthday, but the cake is a lie. 2. Make a truth table for the statement (P∨Q)→(P∧Q).
  • 18. PROPOSITIONAL LOGIC 3. Make a truth table for the statement ¬P∧(Q→P). What can you conclude about P and Q if you know the statement is true? If the statement is true, then both P and Q are false. 4. Make a truth table for the statement ¬P→(Q∧R). 5. Determine whether the following two statements are logically equivalent: ¬(P→Q)¬(P→Q) and P∧¬Q.P∧¬Q. Explain how you know you are correct. 6. Are the statements P→(Q∨R) and (P→Q)∨(P→R) logically equivalent?