Title: Statespace representation: Introduction and tradeoffs
1State-space representationIntroduction and
trade-offs
- What is state-space representation?
- Which are the technical issues that arise in that
context? - What are the alternatives that the paradigm
offers to solve a problem in the state-space
representation?
2An example Chess
- Problem develop a program that plays chess
(well).
3Chess (2)
- 2. Describe the rules that represent allowed
moves - Ex.
4Chess (3)
- 3. Provide a way to check whether a rule is
applicable to some state - Ex.
5Chess (4)
- 4. How to specify a state in which the goal is
reached ( a winning state) - Ex.
6Chess (5)
- 5. A way to verify whether a winning state is
reached. - Ex.
7Chess (6).
8Very many issues and trade-offs
- 1. How to choose the rules?
2. Should we search through the implicit tree or
through an implicit graph? 3. Do we need an
optimal solution, or just any solution? optimal
path problems 4. Can we decompose states into
components on which simple rules can in an
independent way? Problem reduction or
decomposability 5. Should we search forwards from
the initial state, or backwards from a goal state?
9Choice of the rules
- Example The water jugs problem
- Given 2 jugs
- Problem fill the 4 l jug with 2 l of water.
4 l
3 l
10Rules for the jugs example
- Fill large
- x, y and x lt 4 ? 4, y
- Fill small
- x, y and y lt 3 ? x, 3
- Empty large
- x, y and x gt 0 ? 0, y
- Remove some from large
- x, y and x gt d gt 0 ? x - d, y
- Empty (remove some from) small.
11Rules for the jugs example (2)
- Fill large from small
- x, y and x y ? 4 and y gt 0 ? 4, y-(4-x)
- Fill small from large.
-
- Empty small in large
- x, y and x y ? 4 and y gt 0 ? x y ,
0 - Empty large in small.
12Part of the state space
13Rules for the jugs example
- Fill large
- x, y and x lt 4 ? 4, y
- Fill small
- x, y and y lt 3 ? x, 3
- Empty large
- x, y and x gt 0 ? 0, y
- Remove some from large
- x, y and x gt d gt 0 ? x - d, y
- Empty (remove some from) small.
14Part of the state space
15Problem reduction or problem decomposition
- Ex. Computing symbolic integrals
- State the integral to compute
- Rules integration reduction rules
- Goal all integrals have been eliminated
16Necessary for decompositionindependence of
states
- Ex. Blocks world problem.
- Initially C is on A and B is on the table.
- Rules to move any free block to another or to
the table - Goal A is on B and B is on C.
17But branches cannot be combined