SlideShare une entreprise Scribd logo
1  sur  28
Unit II
Logical Reasoning
    V. Saranya
Logical Agents
Knowledge based Agents
The Wumpus World
Logic
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   3
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           4
Knowledge-Based Agents
• The agent must be able to:
                                                                           Domain-
      – Represent states and actions                                     Independent
                                                                          Algorithms
      – Incorporate new percepts                      Inference Engine
      – Update internal                                Knowledge-Base
        representations of the world
      – Deduce hidden properties of
                                                                         Domain-
        the world                                                        Specific
                                                                         Content
      – Deduce appropriate actions




February 20, 2006             AI: Chapter 7: Logical Agents                         5
Knowledge-Based Agents




February 20, 2006      AI: Chapter 7: Logical Agents   6
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           7
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   8
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   9
Wumpus World




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
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.
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
February 20, 2006     AI: Chapter 7: Logical Agents     19
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
                 sentences        entails         sentence
                  semantics




                                                             semantics
Representation

       World




                 Aspects of the                     Aspects of the
                 real world                         real world
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”

Contenu connexe

Tendances

Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inferenceallyn joy calcaben
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicIT Engineering Department
 
Pigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityPigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityKiran Munir
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic pptRitu Bafna
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiersIstiak Ahmed
 
resolution in the propositional calculus
resolution in the propositional calculusresolution in the propositional calculus
resolution in the propositional calculusAnju Kanjirathingal
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 DigiGurukul
 
Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AIShahDhruv21
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Garry D. Lasaga
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Bharat Bhushan
 
Expert system neural fuzzy system
Expert system neural fuzzy systemExpert system neural fuzzy system
Expert system neural fuzzy systemJamil S. Alagha
 
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
 
Language Model (N-Gram).pptx
Language Model (N-Gram).pptxLanguage Model (N-Gram).pptx
Language Model (N-Gram).pptxHeneWijaya
 
KNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.pptKNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.pptSuneethaChittineni
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...Lê Anh Đạt
 

Tendances (20)

Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Pigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityPigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,Countability
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic ppt
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
resolution in the propositional calculus
resolution in the propositional calculusresolution in the propositional calculus
resolution in the propositional calculus
 
Recursion DM
Recursion DMRecursion DM
Recursion DM
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AI
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
 
Heuristics Search Techniques in AI
Heuristics Search Techniques in AI Heuristics Search Techniques in AI
Heuristics Search Techniques in AI
 
Unit 1 chapter 1 Design and Analysis of Algorithms
Unit 1   chapter 1 Design and Analysis of AlgorithmsUnit 1   chapter 1 Design and Analysis of Algorithms
Unit 1 chapter 1 Design and Analysis of Algorithms
 
Expert system neural fuzzy system
Expert system neural fuzzy systemExpert system neural fuzzy system
Expert system neural fuzzy system
 
Nature-inspired algorithms
Nature-inspired algorithmsNature-inspired algorithms
Nature-inspired algorithms
 
Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE Application of Discrete Mathematics in CSE
Application of Discrete Mathematics in CSE
 
Language Model (N-Gram).pptx
Language Model (N-Gram).pptxLanguage Model (N-Gram).pptx
Language Model (N-Gram).pptx
 
KNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.pptKNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.ppt
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 

En vedette

Logic and Good Reasoning
Logic and Good Reasoning Logic and Good Reasoning
Logic and Good Reasoning Neal Bentall
 
Sacred Texts
Sacred TextsSacred Texts
Sacred Textsmissdaff
 
Non formal education
Non formal educationNon formal education
Non formal educationProtik Roy
 
Types of knowledge
Types of knowledgeTypes of knowledge
Types of knowledgerajatiipm
 
Epistemology
EpistemologyEpistemology
EpistemologyPS Deb
 
Myths & Legends - an introduction
Myths & Legends - an introductionMyths & Legends - an introduction
Myths & Legends - an introductionAndy Fisher
 
1 acquiring knowledge
1 acquiring knowledge1 acquiring knowledge
1 acquiring knowledgejoeslidecare
 
Observations Types
Observations TypesObservations Types
Observations Typesthsieh
 
Myth and Legends
Myth and LegendsMyth and Legends
Myth and Legendskrobinson
 
Observation Power Point Presentation 9 10 2010
Observation Power Point Presentation 9 10 2010Observation Power Point Presentation 9 10 2010
Observation Power Point Presentation 9 10 2010lggvslideshare
 
Sources of knowledge
Sources of knowledgeSources of knowledge
Sources of knowledgeaidil014
 
Chapter.1
Chapter.1Chapter.1
Chapter.1jvirwin
 
Types of knowledge.-Facilitating Learning
Types of knowledge.-Facilitating LearningTypes of knowledge.-Facilitating Learning
Types of knowledge.-Facilitating LearningRinggit Aguilar
 
Cause and-effect-powerpoint
Cause and-effect-powerpointCause and-effect-powerpoint
Cause and-effect-powerpointewaszolek
 

En vedette (17)

Logic and Good Reasoning
Logic and Good Reasoning Logic and Good Reasoning
Logic and Good Reasoning
 
Sacred Texts
Sacred TextsSacred Texts
Sacred Texts
 
Epistemology
EpistemologyEpistemology
Epistemology
 
Non formal education
Non formal educationNon formal education
Non formal education
 
Types of knowledge
Types of knowledgeTypes of knowledge
Types of knowledge
 
Value system & ethics
Value system & ethicsValue system & ethics
Value system & ethics
 
Epistemology
EpistemologyEpistemology
Epistemology
 
Myths & Legends - an introduction
Myths & Legends - an introductionMyths & Legends - an introduction
Myths & Legends - an introduction
 
1 acquiring knowledge
1 acquiring knowledge1 acquiring knowledge
1 acquiring knowledge
 
Observations Types
Observations TypesObservations Types
Observations Types
 
Myth and Legends
Myth and LegendsMyth and Legends
Myth and Legends
 
Observation Power Point Presentation 9 10 2010
Observation Power Point Presentation 9 10 2010Observation Power Point Presentation 9 10 2010
Observation Power Point Presentation 9 10 2010
 
Sources of knowledge
Sources of knowledgeSources of knowledge
Sources of knowledge
 
Chapter.1
Chapter.1Chapter.1
Chapter.1
 
Types of knowledge.-Facilitating Learning
Types of knowledge.-Facilitating LearningTypes of knowledge.-Facilitating Learning
Types of knowledge.-Facilitating Learning
 
Cause and-effect-powerpoint
Cause and-effect-powerpointCause and-effect-powerpoint
Cause and-effect-powerpoint
 
Learning ppt
Learning ppt Learning ppt
Learning ppt
 

Similaire à Logical reasoning

Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13Slideshare
 
Logical Agents
Logical AgentsLogical Agents
Logical AgentsYasir Khan
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
CS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxCS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxethiouniverse
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsNuruzzaman Milon
 

Similaire à Logical reasoning (7)

Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
 
Logical Agents
Logical AgentsLogical Agents
Logical Agents
 
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
 
Unit-III.pptx
Unit-III.pptxUnit-III.pptx
Unit-III.pptx
 
CS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptxCS Artificial Intelligence chapter 4.pptx
CS Artificial Intelligence chapter 4.pptx
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 

Plus de Slideshare

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 2010Slideshare
 
Report generation
Report generationReport generation
Report generationSlideshare
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational modelSlideshare
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelSlideshare
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data miningSlideshare
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessingSlideshare
 
What is in you
What is in youWhat is in you
What is in youSlideshare
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inferenceSlideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learningSlideshare
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)Slideshare
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313Slideshare
 
Neural networks
Neural networksNeural networks
Neural networksSlideshare
 
Instance based learning
Instance based learningInstance based learning
Instance based learningSlideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learningSlideshare
 
Neural networks
Neural networksNeural networks
Neural networksSlideshare
 
Instance based learning
Instance based learningInstance based learning
Instance based learningSlideshare
 
Input & output devices
Input & output devicesInput & output devices
Input & output devicesSlideshare
 

Plus de Slideshare (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
 
Report generation
Report generationReport generation
Report generation
 
Trigger
TriggerTrigger
Trigger
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
OLAP
OLAPOLAP
OLAP
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
What is in you
What is in youWhat is in you
What is in you
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Logic agent
Logic agentLogic agent
Logic agent
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
 
Neural networks
Neural networksNeural networks
Neural networks
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Neural networks
Neural networksNeural networks
Neural networks
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Input & output devices
Input & output devicesInput & output devices
Input & output devices
 

Dernier

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
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 

Dernier (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
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 

Logical reasoning

  • 2. Logical Agents Knowledge based Agents The Wumpus World Logic
  • 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 3
  • 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 4
  • 5. Knowledge-Based Agents • The agent must be able to: Domain- – Represent states and actions Independent Algorithms – Incorporate new percepts Inference Engine – Update internal Knowledge-Base representations of the world – Deduce hidden properties of Domain- the world Specific Content – Deduce appropriate actions February 20, 2006 AI: Chapter 7: Logical Agents 5
  • 6. Knowledge-Based Agents February 20, 2006 AI: Chapter 7: Logical Agents 6
  • 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 7
  • 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 8
  • 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 9
  • 10. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 10
  • 11. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 11
  • 12. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 12
  • 13. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 13
  • 14. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 14
  • 15. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 15
  • 16. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 16
  • 17. Wumpus World February 20, 2006 AI: Chapter 7: Logical Agents 17
  • 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. 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 February 20, 2006 AI: Chapter 7: Logical Agents 19
  • 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 sentences entails sentence semantics semantics Representation World Aspects of the Aspects of the real world real world
  • 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”