SlideShare a Scribd company logo
1 of 22
ARTIFICAL INTELLIGENCE
(R18 III(II Sem))
Department of computer science and
engineering (AI/ML)
Session 23
by
Asst.Prof.M.Gokilavani
VITS
4/25/2023 Dpaertment of CSE ( AL & ML) 1
TEXTBOOK:
• Artificial Intelligence A modern Approach, Third
Edition, Stuart Russell and Peter Norvig, Pearson
Education.
REFERENCES:
• Artificial Intelligence, 3rd Edn, E. Rich and K.Knight
(TMH).
• Artificial Intelligence, 3rd Edn, Patrick Henny
Winston, Pearson Education.
• Artificial Intelligence, Shivani Goel, Pearson
Education.
• Artificial Intelligence and Expert Systems- Patterson,
Pearson Education.
4/25/2023 Dpaertment of CSE ( AL & ML) 2
Topics covered in session 23
4/25/2023 Dpaertment of CSE ( AL & ML) 3
Logic and Knowledge Representation
First-Order Logic: Representation, Syntax and
Semantics of First-Order Logic, Using First-Order Logic,
Knowledge Engineering in First-Order Logic.
Inference in First-Order Logic: Propositional vs. First-
Order Inference, Unification and Lifting, Forward
Chaining, Backward Chaining, Resolution.
Knowledge Representation: Ontological Engineering,
Categories and Objects, Events. Mental Events and
Mental Objects, Reasoning Systems for Categories,
Reasoning with Default Information.
Resolution
• Resolution is a theorem proving technique that proceeds
by building refutation proofs, i.e., proofs by
contradictions.
• Resolution is used, if there are various statements are
given, and we need to prove a conclusion of those
statements.
• Unification is a key concept in proofs by resolutions.
4/25/2023 4
Dpaertment of CSE ( AL & ML)
Resolution
• Resolution is a single inference rule which can
efficiently operate on the conjunctive normal form
or clausal form.
• Clause: Disjunction of literals (an atomic sentence) is
called a clause. It is also known as a unit clause.
• Conjunctive Normal Form: A sentence represented
as a conjunction of clauses is said to be conjunctive
normal form or CNF.
4/25/2023 5
Dpaertment of CSE ( AL & ML)
The Resolution Inference Rule
• The propositional rule is just a lifted version of the
resolution rule for first-order logic.
• If two clauses include complementary literals that are
expected to be standardized apart so that they share no
variables, resolution can resolve them.
4/25/2023 6
Dpaertment of CSE ( AL & ML)
Where li and mj are complementary literals, there is a
resolution in FOL.
Because it only resolves perfectly, this rule is also known as
the binary resolution rule .
Example 1
We can determine two clauses which are given below:
[Animal (g(x) V Loves (f(x), x)] and [¬ Loves(a, b)
V ¬Kills(a, b)]
Sol: Two complimentary literals are:
Loves (f(x), x) and ¬ Loves (a, b).
These literals could be unified with
unifier θ= [a/f(x), and b/x] ,
and it will bring about a resolvent clause:
[Animal (g(x) V ¬ Kills(f(x), x)].
4/25/2023 7
Dpaertment of CSE ( AL & ML)
Steps for Resolution
• Conversion of facts into first-order logic
• Convert FOL statements into CNF
• Negate the statement which needs to prove (proof
by contradiction)
• Draw resolution graph (unification)
To better comprehend all of the preceding phases, we
shall use resolution as an example.
4/25/2023 8
Dpaertment of CSE ( AL & ML)
Conversion to Clausal form or Conjunctive Normal Form (CNF)
1. Eliminate logical implications, ⇒, using the fact that A ⇒ B is equivalent to ¬A ∨
B.
2. Reduce the scope of each negation to a single term, using the following facts:
¬(¬P) = P
¬(A ∨ B) = ¬A ∧ ¬B
¬(A ∧ B) = ¬A V ¬B
¬∀x: P(x) = ∃x: ¬P(x)
¬∃x: P(x) = ∀x: ¬P(x)
3. Standardize variables so that each quantifier binds a unique variable.
4. Move all quantifiers to the left, maintaining their order.
5. Eliminate existential quantifiers, using Skolem functions (functions of the
preceding universally quantified variables).
6. Drop the prefix; assume universal quantification.
7. Convert the matrix into a conjunction of disjunctions. [(a &b) or c=(a or c) & (b or
c)
8. Create a separate clause corresponding to each conjunction.
9. Standardize apart the variables in the clauses.
4/25/2023 Dpaertment of CSE ( AL & ML) 9
4/25/2023 Dpaertment of CSE ( AL & ML) 10
Example
4/25/2023 11
Dpaertment of CSE ( AL & ML)
John likes all kind of food.
Apple and vegetable are food
Anything anyone eats and not killed is food.
Anil eats peanuts and still alive
Harry eats everything that Anil eats.
Prove by resolution that:
John likes peanuts.
Step-1: Conversion of Facts into FOL
4/25/2023 12
Dpaertment of CSE ( AL & ML)
Step-2: Conversion of FOL into CNF
• Converting FOL to CNF is essential in first-order logic
resolution because CNF makes resolution proofs easier.
i. Eliminate all implication (→) and rewrite:
4/25/2023 13
Dpaertment of CSE ( AL & ML)
ii. Move negation (¬)inwards and rewrite
4/25/2023 Dpaertment of CSE ( AL & ML) 14
4/25/2023 Dpaertment of CSE ( AL & ML) 15
Eliminate existential instantiation
quantifier by elimination.
• We will eliminate existential quantifiers in this step,
which is referred to as Skolemization.
• However, because there is no existential quantifier in
this example problem, all of the assertions in this
phase will be the same.
4/25/2023 Dpaertment of CSE ( AL & ML) 16
Drop Universal quantifiers
• We'll remove all universal quantifiers ∃ in this phase
because none of the statements are implicitly
quantified, therefore we don't need them.
4/25/2023 Dpaertment of CSE ( AL & ML) 17
4/25/2023 Dpaertment of CSE ( AL & ML) 18
Step 3: Reverse the statement that needs
to be proven.
4/25/2023 Dpaertment of CSE ( AL & ML) 19
We will use negation to write the conclusion
assertions in this statement, which will be written
as "likes" (John, Peanuts)
4/25/2023 Dpaertment of CSE ( AL & ML) 20
Step 4: Create a graph of resolution
• First step: ¬likes(John, Peanuts) , and likes(John,
x) get resolved(canceled) by substitution of
{Peanuts/x}, and we are left with ¬ food(Peanuts)
• Second step: ¬ food(Peanuts) , and food(z) get
resolved (canceled) by substitution of { Peanuts/z}, and
we are left with¬ eats(y, Peanuts) V killed(y) .
• Third step: ¬ eats(y, Peanuts) and eats (Anil,
Peanuts) get resolved by substitution {Anil/y}, and we
are left with Killed(Anil).
• Fourth step: Killed(Anil) and ¬ killed(k) get resolve by
substitution {Anil/k}, and we are left with ¬
alive(Anil) .
• Last step:¬ alive(Anil) and alive(Anil) get resolve
4/25/2023 Dpaertment of CSE ( AL & ML) 21
Topics to be covered in next session 24
• Knowledge Representation
Thank you!!!
4/25/2023 Dpaertment of CSE ( AL & ML) 22

More Related Content

What's hot

What's hot (20)

Transportation Problem
Transportation ProblemTransportation Problem
Transportation Problem
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
ders 3 Unit root test.pptx
ders 3 Unit root test.pptxders 3 Unit root test.pptx
ders 3 Unit root test.pptx
 
Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)
 
4.6 halting problem
4.6 halting problem4.6 halting problem
4.6 halting problem
 
Golden Section method
Golden Section methodGolden Section method
Golden Section method
 
4.3 techniques for turing machines construction
4.3 techniques for turing machines construction4.3 techniques for turing machines construction
4.3 techniques for turing machines construction
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
Autocorrelation (1)
Autocorrelation (1)Autocorrelation (1)
Autocorrelation (1)
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Time Series Analysis Ravi
Time Series Analysis RaviTime Series Analysis Ravi
Time Series Analysis Ravi
 
Gomory's cutting plane method
Gomory's cutting plane methodGomory's cutting plane method
Gomory's cutting plane method
 
Lec 3 desgin via root locus
Lec 3 desgin via root locusLec 3 desgin via root locus
Lec 3 desgin via root locus
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
 
Probability And Random Variable Lecture 1
Probability And Random Variable Lecture 1Probability And Random Variable Lecture 1
Probability And Random Variable Lecture 1
 
Spectral factorization
Spectral factorizationSpectral factorization
Spectral factorization
 
Assignment problems
Assignment problemsAssignment problems
Assignment problems
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
AI_Session 15 Alpha–Beta Pruning.pptx
AI_Session 15 Alpha–Beta Pruning.pptxAI_Session 15 Alpha–Beta Pruning.pptx
AI_Session 15 Alpha–Beta Pruning.pptx
 

Similar to AI_session 23 Resolution.pptx

Introductory Algebra Lesson 11 – Linear Functions, Part 2 .docx
Introductory Algebra   Lesson 11 – Linear Functions, Part 2 .docxIntroductory Algebra   Lesson 11 – Linear Functions, Part 2 .docx
Introductory Algebra Lesson 11 – Linear Functions, Part 2 .docx
mariuse18nolet
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to
fariyaPatel
 
NIACFDS2014-12-16_Nishikawa_BoundaryFormula
NIACFDS2014-12-16_Nishikawa_BoundaryFormulaNIACFDS2014-12-16_Nishikawa_BoundaryFormula
NIACFDS2014-12-16_Nishikawa_BoundaryFormula
Hiroaki Nishikawa
 
2. diferensial hiperbolik
2. diferensial hiperbolik2. diferensial hiperbolik
2. diferensial hiperbolik
Sophia Sumbung
 
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docx
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docxAssignment 2 Cloud SolutionsCloud-based computing allows busine.docx
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docx
sherni1
 

Similar to AI_session 23 Resolution.pptx (20)

AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
AI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptx
 
AI_Session 20 Horn clause.pptx
AI_Session 20 Horn clause.pptxAI_Session 20 Horn clause.pptx
AI_Session 20 Horn clause.pptx
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptx
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
 
EMBODO LP Grade 11 Anti-derivative of Polynomial Functions .docx
EMBODO LP Grade 11 Anti-derivative of Polynomial Functions .docxEMBODO LP Grade 11 Anti-derivative of Polynomial Functions .docx
EMBODO LP Grade 11 Anti-derivative of Polynomial Functions .docx
 
Joco pavone
Joco pavoneJoco pavone
Joco pavone
 
AI_Session 18 Cryptoarithmetic problem.pptx
AI_Session 18 Cryptoarithmetic problem.pptxAI_Session 18 Cryptoarithmetic problem.pptx
AI_Session 18 Cryptoarithmetic problem.pptx
 
Master of Computer Application (MCA) – Semester 4 MC0079
Master of Computer Application (MCA) – Semester 4  MC0079Master of Computer Application (MCA) – Semester 4  MC0079
Master of Computer Application (MCA) – Semester 4 MC0079
 
Paso 5-Realizar transferencia del conocimiento.
Paso 5-Realizar transferencia del conocimiento.Paso 5-Realizar transferencia del conocimiento.
Paso 5-Realizar transferencia del conocimiento.
 
A Regularization Approach to the Reconciliation of Constrained Data Sets
A Regularization Approach to the Reconciliation of Constrained Data SetsA Regularization Approach to the Reconciliation of Constrained Data Sets
A Regularization Approach to the Reconciliation of Constrained Data Sets
 
Introductory Algebra Lesson 11 – Linear Functions, Part 2 .docx
Introductory Algebra   Lesson 11 – Linear Functions, Part 2 .docxIntroductory Algebra   Lesson 11 – Linear Functions, Part 2 .docx
Introductory Algebra Lesson 11 – Linear Functions, Part 2 .docx
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to
 
Lesson 26
Lesson 26Lesson 26
Lesson 26
 
AI Lesson 26
AI Lesson 26AI Lesson 26
AI Lesson 26
 
NIACFDS2014-12-16_Nishikawa_BoundaryFormula
NIACFDS2014-12-16_Nishikawa_BoundaryFormulaNIACFDS2014-12-16_Nishikawa_BoundaryFormula
NIACFDS2014-12-16_Nishikawa_BoundaryFormula
 
2. diferensial hiperbolik
2. diferensial hiperbolik2. diferensial hiperbolik
2. diferensial hiperbolik
 
Accelerated life testing
Accelerated life testingAccelerated life testing
Accelerated life testing
 
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docx
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docxAssignment 2 Cloud SolutionsCloud-based computing allows busine.docx
Assignment 2 Cloud SolutionsCloud-based computing allows busine.docx
 

More from Asst.prof M.Gokilavani

More from Asst.prof M.Gokilavani (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdf
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notes
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
GE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _NotesGE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _Notes
 
GE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_NotesGE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_Notes
 
GE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_NotesGE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_Notes
 
GE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_NotesGE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_Notes
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptxAI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
 
AI3391 Artificial Intelligence session 24 knowledge representation.pptx
AI3391 Artificial Intelligence session 24 knowledge representation.pptxAI3391 Artificial Intelligence session 24 knowledge representation.pptx
AI3391 Artificial Intelligence session 24 knowledge representation.pptx
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

AI_session 23 Resolution.pptx

  • 1. ARTIFICAL INTELLIGENCE (R18 III(II Sem)) Department of computer science and engineering (AI/ML) Session 23 by Asst.Prof.M.Gokilavani VITS 4/25/2023 Dpaertment of CSE ( AL & ML) 1
  • 2. TEXTBOOK: • Artificial Intelligence A modern Approach, Third Edition, Stuart Russell and Peter Norvig, Pearson Education. REFERENCES: • Artificial Intelligence, 3rd Edn, E. Rich and K.Knight (TMH). • Artificial Intelligence, 3rd Edn, Patrick Henny Winston, Pearson Education. • Artificial Intelligence, Shivani Goel, Pearson Education. • Artificial Intelligence and Expert Systems- Patterson, Pearson Education. 4/25/2023 Dpaertment of CSE ( AL & ML) 2
  • 3. Topics covered in session 23 4/25/2023 Dpaertment of CSE ( AL & ML) 3 Logic and Knowledge Representation First-Order Logic: Representation, Syntax and Semantics of First-Order Logic, Using First-Order Logic, Knowledge Engineering in First-Order Logic. Inference in First-Order Logic: Propositional vs. First- Order Inference, Unification and Lifting, Forward Chaining, Backward Chaining, Resolution. Knowledge Representation: Ontological Engineering, Categories and Objects, Events. Mental Events and Mental Objects, Reasoning Systems for Categories, Reasoning with Default Information.
  • 4. Resolution • Resolution is a theorem proving technique that proceeds by building refutation proofs, i.e., proofs by contradictions. • Resolution is used, if there are various statements are given, and we need to prove a conclusion of those statements. • Unification is a key concept in proofs by resolutions. 4/25/2023 4 Dpaertment of CSE ( AL & ML)
  • 5. Resolution • Resolution is a single inference rule which can efficiently operate on the conjunctive normal form or clausal form. • Clause: Disjunction of literals (an atomic sentence) is called a clause. It is also known as a unit clause. • Conjunctive Normal Form: A sentence represented as a conjunction of clauses is said to be conjunctive normal form or CNF. 4/25/2023 5 Dpaertment of CSE ( AL & ML)
  • 6. The Resolution Inference Rule • The propositional rule is just a lifted version of the resolution rule for first-order logic. • If two clauses include complementary literals that are expected to be standardized apart so that they share no variables, resolution can resolve them. 4/25/2023 6 Dpaertment of CSE ( AL & ML) Where li and mj are complementary literals, there is a resolution in FOL. Because it only resolves perfectly, this rule is also known as the binary resolution rule .
  • 7. Example 1 We can determine two clauses which are given below: [Animal (g(x) V Loves (f(x), x)] and [¬ Loves(a, b) V ¬Kills(a, b)] Sol: Two complimentary literals are: Loves (f(x), x) and ¬ Loves (a, b). These literals could be unified with unifier θ= [a/f(x), and b/x] , and it will bring about a resolvent clause: [Animal (g(x) V ¬ Kills(f(x), x)]. 4/25/2023 7 Dpaertment of CSE ( AL & ML)
  • 8. Steps for Resolution • Conversion of facts into first-order logic • Convert FOL statements into CNF • Negate the statement which needs to prove (proof by contradiction) • Draw resolution graph (unification) To better comprehend all of the preceding phases, we shall use resolution as an example. 4/25/2023 8 Dpaertment of CSE ( AL & ML)
  • 9. Conversion to Clausal form or Conjunctive Normal Form (CNF) 1. Eliminate logical implications, ⇒, using the fact that A ⇒ B is equivalent to ¬A ∨ B. 2. Reduce the scope of each negation to a single term, using the following facts: ¬(¬P) = P ¬(A ∨ B) = ¬A ∧ ¬B ¬(A ∧ B) = ¬A V ¬B ¬∀x: P(x) = ∃x: ¬P(x) ¬∃x: P(x) = ∀x: ¬P(x) 3. Standardize variables so that each quantifier binds a unique variable. 4. Move all quantifiers to the left, maintaining their order. 5. Eliminate existential quantifiers, using Skolem functions (functions of the preceding universally quantified variables). 6. Drop the prefix; assume universal quantification. 7. Convert the matrix into a conjunction of disjunctions. [(a &b) or c=(a or c) & (b or c) 8. Create a separate clause corresponding to each conjunction. 9. Standardize apart the variables in the clauses. 4/25/2023 Dpaertment of CSE ( AL & ML) 9
  • 10. 4/25/2023 Dpaertment of CSE ( AL & ML) 10
  • 11. Example 4/25/2023 11 Dpaertment of CSE ( AL & ML) John likes all kind of food. Apple and vegetable are food Anything anyone eats and not killed is food. Anil eats peanuts and still alive Harry eats everything that Anil eats. Prove by resolution that: John likes peanuts.
  • 12. Step-1: Conversion of Facts into FOL 4/25/2023 12 Dpaertment of CSE ( AL & ML)
  • 13. Step-2: Conversion of FOL into CNF • Converting FOL to CNF is essential in first-order logic resolution because CNF makes resolution proofs easier. i. Eliminate all implication (→) and rewrite: 4/25/2023 13 Dpaertment of CSE ( AL & ML)
  • 14. ii. Move negation (¬)inwards and rewrite 4/25/2023 Dpaertment of CSE ( AL & ML) 14
  • 15. 4/25/2023 Dpaertment of CSE ( AL & ML) 15
  • 16. Eliminate existential instantiation quantifier by elimination. • We will eliminate existential quantifiers in this step, which is referred to as Skolemization. • However, because there is no existential quantifier in this example problem, all of the assertions in this phase will be the same. 4/25/2023 Dpaertment of CSE ( AL & ML) 16
  • 17. Drop Universal quantifiers • We'll remove all universal quantifiers ∃ in this phase because none of the statements are implicitly quantified, therefore we don't need them. 4/25/2023 Dpaertment of CSE ( AL & ML) 17
  • 18. 4/25/2023 Dpaertment of CSE ( AL & ML) 18
  • 19. Step 3: Reverse the statement that needs to be proven. 4/25/2023 Dpaertment of CSE ( AL & ML) 19 We will use negation to write the conclusion assertions in this statement, which will be written as "likes" (John, Peanuts)
  • 20. 4/25/2023 Dpaertment of CSE ( AL & ML) 20
  • 21. Step 4: Create a graph of resolution • First step: ¬likes(John, Peanuts) , and likes(John, x) get resolved(canceled) by substitution of {Peanuts/x}, and we are left with ¬ food(Peanuts) • Second step: ¬ food(Peanuts) , and food(z) get resolved (canceled) by substitution of { Peanuts/z}, and we are left with¬ eats(y, Peanuts) V killed(y) . • Third step: ¬ eats(y, Peanuts) and eats (Anil, Peanuts) get resolved by substitution {Anil/y}, and we are left with Killed(Anil). • Fourth step: Killed(Anil) and ¬ killed(k) get resolve by substitution {Anil/k}, and we are left with ¬ alive(Anil) . • Last step:¬ alive(Anil) and alive(Anil) get resolve 4/25/2023 Dpaertment of CSE ( AL & ML) 21
  • 22. Topics to be covered in next session 24 • Knowledge Representation Thank you!!! 4/25/2023 Dpaertment of CSE ( AL & ML) 22