Docsity

Logical Agents - Artificial Inteligence - Lecture Slides, Slides of Artificial Intelligence

Partial preview of the text

Download Logical Agents - Artificial Inteligence - Lecture Slides and more Slides Artificial Intelligence in PDF only on Docsity!

Logical Agents

Chapter 7

Outline

• Knowledge-based agents

• Wumpus world

• Logic in general - models and entailment

• Propositional (Boolean) logic

• Equivalence, validity, satisfiability

• Inference rules and theorem proving

  • forward chaining
  • backward chaining
  • resolution

A simple knowledge-based agent

  • The agent must be able to:
  • Represent states, actions, etc.
  • Incorporate new percepts
  • Update internal representations of the world
  • Docsity.com

Wumpus World PEAS

description

  • Performance measure
    • gold +1000, death -
    • -1 per step, -10 for using the arrow
  • Environment
    • Squares adjacent to wumpus are smelly
    • Squares adjacent to 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
    • Docsity.com

Exploring a wumpus world

Exploring a wumpus world

Exploring a wumpus world

Exploring a wumpus world

Exploring a wumpus world

Exploring a wumpus world

Entailment

• Entailment means that one thing follows from

another:

KB ╞ α

• Knowledge base KB entails sentence α if and

only if α is true in all worlds where KB is true

  • E.g., the KB containing “the Giants won” and “the

Reds won” entails “Either the Giants won or the Reds

won”

  • E.g., x+y = 4 entails 4 = x+y
  • Docsity.com

Models

  • Logicians typically think in terms of models, which are formally structured worlds with respect to which truth can be evaluated
  • We say m is a model of a sentence α if α is true in m
  • M(α) is the set of all models of α
  • Then KB ╞ α iff M(KB) ⊆ M( α)
    • E.g. KB = Giants won and Reds won α = Giants won

Wumpus models

Wumpus models

• KB = wumpus-world rules + observations