and Search
Chapter 2 1
Defining the Problem as a
State Space Search
Chapter 2 2
Operators
1 if x<4 -> (4,y)
Chapter 2 3
Formal Description of a Problem
Chapter 2 4
Production System
• A set of Rules
• A control stsretegy
• A Rule applier
Chapter 2 5
Control Strategies
• it causes motion
• it is systematic
Chapter 2 6
Algorithm : Breadth-First Search
(0,0)
----------------------
| |
(4,0) (0,3)
--------------- -----------------
| | | | | |
(4,3) (0,0) (1,3) (4,3) (0,0)
(3,0)
(0,0)
-------------------
|
(4,0)
----------
|
(4,3)
Chapter 2 7
Advantage of Depth-First Search
• Less Memory
Advantage of Breadth-First
Search
Chapter 2 8
Heurestic Search
Example
(N-1) !
N2
Chapter 2 9
Problem Characteristics
Is the Problem Decomposable?
Integration, Blocks World
Chapter 2 10
Production System Characteristics
• A Monotonic Production System is a
production system in which the
application of a rule never prevents the
later application of another rule that
could also have been applied at the time
the first rule was selected
• A Nonmonotonic Production System
is one in which the above condition is
not true
• A Partially commutative Production
System is a production system with the
property that if the application of a
particular sequence of rules transforms
state x into state y , then any
permutation of those rules that is
allowable also transforms state x into
state y
• A commutative Production System is
a production system that is both
monotonic and partially commutative.
Chapter 2 11
Issues in the Design of
Search Programs
• Forward versus backward reasoning
Additional Problems
Cryptarithmetic
Chapter 2 12