際際滷

際際滷Share a Scribd company logo
Unit II
Logical Reasoning
V.Saranya
AP/CSE
Sri Vidya College of Engineering and
Technology,
Virudhunagar
Logical Agents
Knowledge based Agents
The Wumpus World
Logic
February 20, 2006 AI: Chapter 7: Logical Agents 3
Logical Agents
 Humans can know things and reason
 Representation: How are the things stored?
 Reasoning: How is the knowledge used?
 To solve a problem
 To generate more knowledge
 Knowledge and reasoning are important to artificial agents
because they enable successful behaviors difficult to achieve
otherwise
 Useful in partially observable environments
 Can benefit from knowledge in very general forms,
combining and recombining information
February 20, 2006 AI: Chapter 7: Logical Agents 4
Knowledge-Based Agents
 Central component of a Knowledge-Based Agent is
a Knowledge-Base
 A set of sentences in a formal language
 Sentences are expressed using a knowledge representation
language
 Two generic functions:
 TELL - add new sentences (facts) to the KB
 Tell it what it needs to know
 ASK - query what is known from the KB
 Ask what to do next
February 20, 2006 AI: Chapter 7: Logical Agents 5
Knowledge-Based Agents
 The agent must be able to:
 Represent states and actions
 Incorporate new percepts
 Update internal
representations of the world
 Deduce hidden properties of
the world
 Deduce appropriate actions
Inference Engine
Knowledge-Base
Domain-
Independent
Algorithms
Domain-
Specific
Content
February 20, 2006 AI: Chapter 7: Logical Agents 6
Knowledge-Based Agents
February 20, 2006 AI: Chapter 7: Logical Agents 7
Knowledge-Based Agents
 Declarative
 You can build a knowledge-based agent simply by
TELLing it what it needs to know
 Procedural
 Encode desired behaviors directly as program
code
 Minimizing the role of explicit representation and
reasoning can result in a much more efficient system
February 20, 2006 AI: Chapter 7: Logical Agents 8
Wumpus World
 Performance Measure
 Gold +1000, Death  1000
 Step -1, Use arrow -10
 Environment
 Square adjacent to the Wumpus are smelly
 Squares adjacent to the pit are breezy
 Glitter iff gold is in the same square
 Shooting kills Wumpus if you are facing it
 Shooting uses up the only arrow
 Grabbing picks up the gold if in the same square
 Releasing drops the gold in the same square
 Actuators
 Left turn, right turn, forward, grab, release,
shoot
 Sensors
 Breeze, glitter, and smell
February 20, 2006 AI: Chapter 7: Logical Agents 9
Wumpus World
 Characterization of Wumpus World
 Observable
 partial, only local perception
 Deterministic
 Yes, outcomes are specified
 Episodic
 No, sequential at the level of actions
 Static
 Yes, Wumpus and pits do not move
 Discrete
 Yes
 Single Agent
 Yes
February 20, 2006 AI: Chapter 7: Logical Agents 10
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 11
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 12
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 13
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 14
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 15
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 16
Wumpus World
February 20, 2006 AI: Chapter 7: Logical Agents 17
Wumpus World
LOGIC
Syntax:
 Knowledge base consists of sentences
 These sentences are expressed according to the
syntax.
Ex: x + y=4 is a well formed sentence.
Semantic:
 Meaning of the sentence.
 Mention the truth of each sentence.
February 20, 2006 AI: Chapter 7: Logical Agents 19
Logic
 Entailment means that one thing follows logically
from another
a |= b
 a |= b iff in every model in which a is true, b is also
true
 if a is true, then b must be true
 the truth of b is contained in the truth of a
Example
 X+Y=4 is true where X is 2
 And Y is 2
 But false where x is 1 and y is 1.
 (every sentence must be true or false in each
possible world.)
Entailment
 Relation of logical element.
 A sentence follows logically from another
sentence.
 Notation : 留l= 硫
 Means sentence a entails(require, need, improve,
demand) 硫
 If every word of 留 is true and 硫 is also true.
 (simply if 留 is true then 硫 must be true)
Logic in Wumpus world
 The agent detecting nothing in
[1,1]
 The agent is interested in
whether the adjacent squares
[1,2] & [2,2] and [3,1].
 Each of these squares may or
may not contain a pit.
 So 23 = 8 possible models.
No pit in
[1,2]
 No pit in
[2,2]
Conclusion
 留1 : there is no pit in [1,2]
 留2 : there is no pit in [2,2]
 KB is false in any model in which [1,2]
contains pit ,because there is no breeze in
[1,1]
We know if KB is true 留1 is also true.
Hence KB is not equal to 留1
in some models, if KB is true 留2 is false
KB V 留2 so the agent cannot conclude that
there is no pit in [2,2]
Inference (assumption or conclusion)
 The inference algorithm I can be derive from
KB, then
KB |-i a
 a is derived from KB by i (or)
  i derives a from KB
Sound
 An inference algorithm derives only entailed sentences is called
Sound or Truth Preserving.
 Soundness is highly desirable property.
Correspondence between world and
representation
entailssentences sentence
Representation
World
Aspects of the
real world
Aspects of the
real world
semantics
semantics
Illustration
Sentences are physical configuration of the
agent.
Reasoning is the process of constructing new
physical configurations from old ones.
If any connection between logical reasoning
process and the real environment in which
the agent exists is called grounding

More Related Content

Similar to Logical reasoning 21.1.13 (13)

Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Geetha Kannan
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
Muthu78825
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
Nuruzzaman Milon
Knowledge based reasoning using aiml.pdf
Knowledge based reasoning using aiml.pdfKnowledge based reasoning using aiml.pdf
Knowledge based reasoning using aiml.pdf
anuabhi0107
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
chandsek666
Unit-III.pptx
Unit-III.pptxUnit-III.pptx
Unit-III.pptx
DarbhalaPavanKumar
Unit 4 Knowledge Representation.pptx
Unit 4 Knowledge Representation.pptxUnit 4 Knowledge Representation.pptx
Unit 4 Knowledge Representation.pptx
DrYogeshDeshmukh1
l4.pptx
l4.pptxl4.pptx
l4.pptx
AnujaBeatriceB
OOP History and Core Concepts
OOP History and Core ConceptsOOP History and Core Concepts
OOP History and Core Concepts
Nghia Bui Van
Object Oriented Paradigm
Object Oriented ParadigmObject Oriented Paradigm
Object Oriented Paradigm
H端seyin Ergin
AI - a personal view
AI - a personal viewAI - a personal view
AI - a personal view
Franz Wotawa
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdfAI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
Praneeth545741
AI Presenation - Vietnam National University.pptx
AI Presenation - Vietnam National University.pptxAI Presenation - Vietnam National University.pptx
AI Presenation - Vietnam National University.pptx
L棚 Quang Minh
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Geetha Kannan
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
Muthu78825
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
Nuruzzaman Milon
Knowledge based reasoning using aiml.pdf
Knowledge based reasoning using aiml.pdfKnowledge based reasoning using aiml.pdf
Knowledge based reasoning using aiml.pdf
anuabhi0107
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
chandsek666
Unit 4 Knowledge Representation.pptx
Unit 4 Knowledge Representation.pptxUnit 4 Knowledge Representation.pptx
Unit 4 Knowledge Representation.pptx
DrYogeshDeshmukh1
OOP History and Core Concepts
OOP History and Core ConceptsOOP History and Core Concepts
OOP History and Core Concepts
Nghia Bui Van
Object Oriented Paradigm
Object Oriented ParadigmObject Oriented Paradigm
Object Oriented Paradigm
H端seyin Ergin
AI - a personal view
AI - a personal viewAI - a personal view
AI - a personal view
Franz Wotawa
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdfAI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
AI22L520wwwwwwwwwwwwwwwwwwwwwwwwwww16.pdf
Praneeth545741
AI Presenation - Vietnam National University.pptx
AI Presenation - Vietnam National University.pptxAI Presenation - Vietnam National University.pptx
AI Presenation - Vietnam National University.pptx
L棚 Quang Minh

More from 際際滷share (20)

Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
際際滷share
Report generation
Report generationReport generation
Report generation
際際滷share
Trigger
TriggerTrigger
Trigger
際際滷share
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
際際滷share
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
際際滷share
OLAP
OLAPOLAP
OLAP
際際滷share
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
際際滷share
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
際際滷share
What is in you
What is in youWhat is in you
What is in you
際際滷share
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
際際滷share
Logic agent
Logic agentLogic agent
Logic agent
際際滷share
Statistical learning
Statistical learningStatistical learning
Statistical learning
際際滷share
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
際際滷share
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
際際滷share
Neural networks
Neural networksNeural networks
Neural networks
際際滷share
Instance based learning
Instance based learningInstance based learning
Instance based learning
際際滷share
Statistical learning
Statistical learningStatistical learning
Statistical learning
際際滷share
Neural networks
Neural networksNeural networks
Neural networks
際際滷share
Instance based learning
Instance based learningInstance based learning
Instance based learning
際際滷share
Input & output devices
Input & output devicesInput & output devices
Input & output devices
際際滷share
Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
際際滷share
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
際際滷share
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
際際滷share
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
際際滷share
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
際際滷share
Statistical learning
Statistical learningStatistical learning
Statistical learning
際際滷share
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
際際滷share
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
際際滷share
Instance based learning
Instance based learningInstance based learning
Instance based learning
際際滷share
Statistical learning
Statistical learningStatistical learning
Statistical learning
際際滷share
Instance based learning
Instance based learningInstance based learning
Instance based learning
際際滷share
Input & output devices
Input & output devicesInput & output devices
Input & output devices
際際滷share

Recently uploaded (20)

Dot NET Core Interview Questions PDF By ScholarHat
Dot NET Core Interview Questions PDF By ScholarHatDot NET Core Interview Questions PDF By ScholarHat
Dot NET Core Interview Questions PDF By ScholarHat
Scholarhat
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
Discharge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptxDischarge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptx
PoojaSen20
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdfNUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
Dolisha Warbi
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Admission Procedure and types in hospital pptx
Admission Procedure  and types in hospital pptxAdmission Procedure  and types in hospital pptx
Admission Procedure and types in hospital pptx
PoojaSen20
Entity Framework Interview Questions PDF By ScholarHat
Entity Framework Interview Questions PDF By ScholarHatEntity Framework Interview Questions PDF By ScholarHat
Entity Framework Interview Questions PDF By ScholarHat
Scholarhat
Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18
Celine George
Azure Data Engineer Interview Questions By ScholarHat
Azure Data Engineer Interview Questions By ScholarHatAzure Data Engineer Interview Questions By ScholarHat
Azure Data Engineer Interview Questions By ScholarHat
Scholarhat
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
How to create security group category in Odoo 17
How to create security group category in Odoo 17How to create security group category in Odoo 17
How to create security group category in Odoo 17
Celine George
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.pptAnnex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
joan dalilis
PUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health HistoryPUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health History
Jonathan Hallett
Intellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptxIntellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptx
NidhiSharma495177
Research & Research Methods: Basic Concepts and Types.pptx
Research & Research Methods: Basic Concepts and Types.pptxResearch & Research Methods: Basic Concepts and Types.pptx
Research & Research Methods: Basic Concepts and Types.pptx
Dr. Sarita Anand
Managing expiration dates of products in odoo
Managing expiration dates of products in odooManaging expiration dates of products in odoo
Managing expiration dates of products in odoo
Celine George
Azure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHatAzure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHat
Scholarhat
OOPs Interview Questions PDF By ScholarHat
OOPs Interview Questions PDF By ScholarHatOOPs Interview Questions PDF By ScholarHat
OOPs Interview Questions PDF By ScholarHat
Scholarhat
How to Configure Deliver Content by Email in Odoo 18 Sales
How to Configure Deliver Content by Email in Odoo 18 SalesHow to Configure Deliver Content by Email in Odoo 18 Sales
How to Configure Deliver Content by Email in Odoo 18 Sales
Celine George
Essentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok SonawalaEssentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok Sonawala
Association for Project Management
Dot NET Core Interview Questions PDF By ScholarHat
Dot NET Core Interview Questions PDF By ScholarHatDot NET Core Interview Questions PDF By ScholarHat
Dot NET Core Interview Questions PDF By ScholarHat
Scholarhat
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
Discharge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptxDischarge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptx
PoojaSen20
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdfNUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
NUTRITIONAL ASSESSMENT AND EDUCATION - 5TH SEM.pdf
Dolisha Warbi
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Admission Procedure and types in hospital pptx
Admission Procedure  and types in hospital pptxAdmission Procedure  and types in hospital pptx
Admission Procedure and types in hospital pptx
PoojaSen20
Entity Framework Interview Questions PDF By ScholarHat
Entity Framework Interview Questions PDF By ScholarHatEntity Framework Interview Questions PDF By ScholarHat
Entity Framework Interview Questions PDF By ScholarHat
Scholarhat
Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18
Celine George
Azure Data Engineer Interview Questions By ScholarHat
Azure Data Engineer Interview Questions By ScholarHatAzure Data Engineer Interview Questions By ScholarHat
Azure Data Engineer Interview Questions By ScholarHat
Scholarhat
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
How to create security group category in Odoo 17
How to create security group category in Odoo 17How to create security group category in Odoo 17
How to create security group category in Odoo 17
Celine George
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.pptAnnex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
joan dalilis
PUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health HistoryPUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health History
Jonathan Hallett
Intellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptxIntellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptx
NidhiSharma495177
Research & Research Methods: Basic Concepts and Types.pptx
Research & Research Methods: Basic Concepts and Types.pptxResearch & Research Methods: Basic Concepts and Types.pptx
Research & Research Methods: Basic Concepts and Types.pptx
Dr. Sarita Anand
Managing expiration dates of products in odoo
Managing expiration dates of products in odooManaging expiration dates of products in odoo
Managing expiration dates of products in odoo
Celine George
Azure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHatAzure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHat
Scholarhat
OOPs Interview Questions PDF By ScholarHat
OOPs Interview Questions PDF By ScholarHatOOPs Interview Questions PDF By ScholarHat
OOPs Interview Questions PDF By ScholarHat
Scholarhat
How to Configure Deliver Content by Email in Odoo 18 Sales
How to Configure Deliver Content by Email in Odoo 18 SalesHow to Configure Deliver Content by Email in Odoo 18 Sales
How to Configure Deliver Content by Email in Odoo 18 Sales
Celine George

Logical reasoning 21.1.13

  • 1. Unit II Logical Reasoning V.Saranya AP/CSE Sri Vidya College of Engineering and Technology, Virudhunagar
  • 2. Logical Agents Knowledge based Agents The Wumpus World Logic
  • 3. February 20, 2006 AI: Chapter 7: Logical Agents 3 Logical Agents Humans can know things and reason Representation: How are the things stored? Reasoning: How is the knowledge used? To solve a problem To generate more knowledge Knowledge and reasoning are important to artificial agents because they enable successful behaviors difficult to achieve otherwise Useful in partially observable environments Can benefit from knowledge in very general forms, combining and recombining information
  • 4. February 20, 2006 AI: Chapter 7: Logical Agents 4 Knowledge-Based Agents Central component of a Knowledge-Based Agent is a Knowledge-Base A set of sentences in a formal language Sentences are expressed using a knowledge representation language Two generic functions: TELL - add new sentences (facts) to the KB Tell it what it needs to know ASK - query what is known from the KB Ask what to do next
  • 5. February 20, 2006 AI: Chapter 7: Logical Agents 5 Knowledge-Based Agents The agent must be able to: Represent states and actions Incorporate new percepts Update internal representations of the world Deduce hidden properties of the world Deduce appropriate actions Inference Engine Knowledge-Base Domain- Independent Algorithms Domain- Specific Content
  • 6. February 20, 2006 AI: Chapter 7: Logical Agents 6 Knowledge-Based Agents
  • 7. February 20, 2006 AI: Chapter 7: Logical Agents 7 Knowledge-Based Agents Declarative You can build a knowledge-based agent simply by TELLing it what it needs to know Procedural Encode desired behaviors directly as program code Minimizing the role of explicit representation and reasoning can result in a much more efficient system
  • 8. February 20, 2006 AI: Chapter 7: Logical Agents 8 Wumpus World Performance Measure Gold +1000, Death 1000 Step -1, Use arrow -10 Environment Square adjacent to the Wumpus are smelly Squares adjacent to the pit are breezy Glitter iff gold is in the same square Shooting kills Wumpus if you are facing it Shooting uses up the only arrow Grabbing picks up the gold if in the same square Releasing drops the gold in the same square Actuators Left turn, right turn, forward, grab, release, shoot Sensors Breeze, glitter, and smell
  • 9. February 20, 2006 AI: Chapter 7: Logical Agents 9 Wumpus World Characterization of Wumpus World Observable partial, only local perception Deterministic Yes, outcomes are specified Episodic No, sequential at the level of actions Static Yes, Wumpus and pits do not move Discrete Yes Single Agent Yes
  • 10. February 20, 2006 AI: Chapter 7: Logical Agents 10 Wumpus World
  • 11. February 20, 2006 AI: Chapter 7: Logical Agents 11 Wumpus World
  • 12. February 20, 2006 AI: Chapter 7: Logical Agents 12 Wumpus World
  • 13. February 20, 2006 AI: Chapter 7: Logical Agents 13 Wumpus World
  • 14. February 20, 2006 AI: Chapter 7: Logical Agents 14 Wumpus World
  • 15. February 20, 2006 AI: Chapter 7: Logical Agents 15 Wumpus World
  • 16. February 20, 2006 AI: Chapter 7: Logical Agents 16 Wumpus World
  • 17. February 20, 2006 AI: Chapter 7: Logical Agents 17 Wumpus World
  • 18. LOGIC Syntax: Knowledge base consists of sentences These sentences are expressed according to the syntax. Ex: x + y=4 is a well formed sentence. Semantic: Meaning of the sentence. Mention the truth of each sentence.
  • 19. February 20, 2006 AI: Chapter 7: Logical Agents 19 Logic Entailment means that one thing follows logically from another a |= b a |= b iff in every model in which a is true, b is also true if a is true, then b must be true the truth of b is contained in the truth of a
  • 20. Example X+Y=4 is true where X is 2 And Y is 2 But false where x is 1 and y is 1. (every sentence must be true or false in each possible world.)
  • 21. Entailment Relation of logical element. A sentence follows logically from another sentence. Notation : 留l= 硫 Means sentence a entails(require, need, improve, demand) 硫 If every word of 留 is true and 硫 is also true. (simply if 留 is true then 硫 must be true)
  • 22. Logic in Wumpus world The agent detecting nothing in [1,1] The agent is interested in whether the adjacent squares [1,2] & [2,2] and [3,1]. Each of these squares may or may not contain a pit. So 23 = 8 possible models.
  • 24. No pit in [2,2]
  • 25. Conclusion 留1 : there is no pit in [1,2] 留2 : there is no pit in [2,2] KB is false in any model in which [1,2] contains pit ,because there is no breeze in [1,1] We know if KB is true 留1 is also true. Hence KB is not equal to 留1 in some models, if KB is true 留2 is false KB V 留2 so the agent cannot conclude that there is no pit in [2,2]
  • 26. Inference (assumption or conclusion) The inference algorithm I can be derive from KB, then KB |-i a a is derived from KB by i (or) i derives a from KB
  • 27. Sound An inference algorithm derives only entailed sentences is called Sound or Truth Preserving. Soundness is highly desirable property. Correspondence between world and representation entailssentences sentence Representation World Aspects of the real world Aspects of the real world semantics semantics
  • 28. Illustration Sentences are physical configuration of the agent. Reasoning is the process of constructing new physical configurations from old ones. If any connection between logical reasoning process and the real environment in which the agent exists is called grounding