CIS587: The Wumpus World

Last Modified:

  • Rules of the Wumpus World
  • The Situation Calculus
  • The Frame Problem
  • Representing Knowledge about the Wumpus World
  • Model-Based and Diagnostic Reasoning
  • Some Questions
  • A variety of "worlds" are being used as examples for Knowledge Representation, Reasoning, and Planning. Among them the Vacuum World, the Block World, and the Wumpus World. We will examine the Wumpus World and in this context introduce the Situation Calculus, the Frame Problem, and a variety of axioms.

    The Wumpus World was introduced by Genesereth, and is discussed in Russell-Norvig. The Wumpus World is a simple world (as is the Block World) for which to represent knowledge and to reason.

    It is a cave with a number of rooms, represented as a 4x4 square.

    	+---------+---------+---------+---------+
         4	| stench  |         | breeze  |  pit    |
    	|         |         |	      |         |
    	|         |         |	      |         |
    	+---------+---------+---------+---------+
         3	| wumpus  | stench  | pit     | breeze  |
    	|         | breeze  |	      |         |
    	|         | gold    |	      |         |
    	+---------+---------+---------+---------+
         2	| stench  |         | breeze  |         |
    	|         |         |	      |         |
    	|         |         |	      |         |
    	+---------+---------+---------+---------+
         1	| start   | breeze  | pit     | breeze  |
    	|         |         |	      |         |
    	|   ==>   |         |	      |         |
    	+---------+---------+---------+---------+
    	    1         2         3         4
    

    Rules of the Wumpus World

    The neighborhood of a node consists of the four squares north, south, east, west of the given square.

    In a square the agent gets a vector of percepts, with components

    Stench,Breeze,Glitter,Bump,Scream
    For example [Stench,None,Glitter,None,None]

    An agent can do the following actions (one at a time):

    Turn(Right), Turn(Left), Forward, Shoot, Grab, Release, Climb
    The Start square is (1,1) and initially the agent is facing east. The agent dies if it is in the same square as the wumpus.
    The objective of the game is to kill the wumpus, to pick up the gold, and to climb out with it.

    The Situation Calculus

    The Situation Calculus is used in cases as the one that we are now considering. With the name Situation we mean a state of the world. The Situation Calculus is used to reason about actions and their effect on the possible states of the world.
    We will limit our discussion of the Situation Calculus to the case of the Wumpus World.

    The Frame Problem

    We are reasoning about possible states of the world, where the states are identified by the actions by which we got to that state from the initial state. The Frame Problem is concerned with the question of what happens to the truth-value of the statements that describe the world as we go from one world to the world resulting by application of an action.

    We deal with the frame problem by introducing a certain number of axioms, that go by names such as Effect Axioms, Frame Axioms, and Successor-State Axioms.

    Representing our Knowledge about the Wumpus World

    Percept(x,y)
    where x must be a percept vector and y must be a situation. It means that at situation y the agent perceives x.
    For convenience we introduce the following definitions:
    Holding(x,y)
    where x is an object and y is a situation. It means that the agent is holding the object x in situation y.
    Action(x,y)
    where x must be an action (i.e. Turn(Right), Turn(Left), Forward, ..) and y must be a situation. It means that at situation y the agent takes action x.
    At(x,y,z)
    where x is an object, y is a Location, i.e. a pair [u,v] with u and v in {1,2,3,4}, and z is a situation. It means that the agent x in situation z is at location y.
    Present(x,s)
    means that object x is in the current room in the situation s.
    Result(x,y)
    It means that the result of applying action x to the situation y is the situation Result(x,y). Note that Result(x,y) is a term, not a statement.
    For example we can say

    These definitions could be made more general. Since in the Wumpus World there is a single agent, there is no reason for us to make predicates and functions relative to a specific agent. In other "worlds" we should change things appropriately.
    Another generalization is possible, to write all assertions about the world as terms, and then add the predicates

    T(situation assertion-term)
    to mean that in the specified situation the specified assertion is true.
    Belief(agent situation assertion-term)
    to mean that the specified agent in the specified situation believes the specified assertion to be true.
    Here are a series of statements about the Wumpus World.

    Effect Axioms

    Effect axioms characterize what is changed because of an action. For example:

    Frame Axioms

    Frame axioms characterize what has remained the same because of an action. For example:

    Successor-State Axioms

    For each predicate that can change over time they characterize the actions under which it changes and the actions under which it remains the same. For example:

    More Definitions and Axioms

    Model-Based and Diagnostic Reasoning

    Causal Rules specify how aspects of the state of the world determine our percepts. Model-Based Reasoning is what we do when we use causal rules. Here are some causal rules: Diagnostic Rules specify how to go from percepts to assertions about the state of the world. Diagnostic Reasoning is what we do when we use diagnostic rules. Here are some diagnostic rules:

    Some Questions

    Many questions arise because of what has been done above. Here are some such questions:
    1. Have we specified enough axioms about the Wumpus World for us to solve our stated problem?
    2. How does one acquire the needed domain knowledge about the Wumpus World?
    3. How much of the work done for this world can be used when studying other worlds?
    4. Clearly we could write an algorithm that would solve the Wumpus problem in an ad-hoc fashion. Is the approach that we have chosen ultimately more general, more effective than the use ad-hoc prescriptive procedures?

    ingargiola@cis.temple.edu