Docsity

Problem Solving in Common Lisp: Understanding the Problem Space Model, Slides of Robotics

Partial preview of the text

Download Problem Solving in Common Lisp: Understanding the Problem Space Model and more Slides Robotics in PDF only on Docsity!

Problem Solving in

Common Lisp

The Problem Space Model

 People seem to handle adequately the notion of physical space.

 It seems natural to extend our notions of physical space and use it as a topological metaphor for problems and problem solving.

 The problem space model of problems and problem solving makes use of the ideas of location , shape , and distance that are so useful in reasoning about physical space.

Defining a Problem Space

 Defining a problem in a given problem space requires two things: » an initial state » a goal

 The initial state is a distinguished state that represents the starting point within the space.

 The goal is a specification of the subset of the problem space which could serve as a solution to the problem.

Solving Problems

 Solving a problem in this model is accomplished by finding a sequence of operators which, when applied to the initial state, allows one to reach a state satisfying the goal criterion.

 In the Blocks World example, the solution is a sequence of transformations that represent a legal plan.

Classic Problem Solving Systems

 The design of a classic problem solver

consists of two parts:

» an interface for user-supplied problem spaces, and a » search engine.

Interface

 The interface requires the ability to manipulate states and operators.

 What kinds of manipulations are needed? » Goal detection : Ascertain whether a given state satisfies the goal criterion. » State identity : Detect when two descriptions of states refer to the same state. » State display : Produce a human readable description of a given state.

Expanding a State

 Identify what operators are available.

 Determine whether a given operator is applicable to a particular state.

 Given a state and an operator applicable to it, ascertain all the ways the operator can be instantiated on that state.

 Figure out what new state results from applying an instantiated operator to a state.