Professional Documents
Culture Documents
Intelligent search
1
SEARCHING FOR SOLUTIONS
• The following figure shows the few steps in constructing the search
tree for finding a route from Arad to Bucharest in the Romania
map.
Partial search trees for finding a route from Arad to Bucharest. Nodes that have
been expanded are shaded; nodes that have been generated but not yet
expanded are outlined in bold; nodes that have not yet been generated are
shown in faint dashed lines.
Terminology:
• n.PARENT: The node in the search tree that generated this node.
• n.Action: The action that was applied to the parent to generate the
node.
End of Session
Intelligent Systems
1. Define the problem precisely
2. Analyze the problem
3. Isolate and represent the task knowledge that
is necessary to solve the problem
4. Choose the best problem-solving techniques
and apply it to the particular problem.
5. The state space representation forms the basis
of most of the AI methods.
Formal Description of the
problem
1. Define a state space that contains all the
possible configurations of the relevant objects.
2. Specify one or more states within that space
that describe possible situations from which the
problem solving process may start ( initial
state)
3. Specify one or more states that would be
acceptable as solutions to the problem( goal
states)
4. Specify a set of rules that describe the actions
(operations) available.
9
Production Systems
A production system consists of:
• A set of rules, each consisting of a left side
that determines the applicability of the rule and a
right side that describes the operation to be
performed if that rule is applied.
• One or more knowledge/databases that
contain whatever information is appropriate for
the particular task. Some parts of the database
may be permanent, while other parts of it may
pertain only to the solution of the current
problem.
• A control strategy that specifies the order in
which the rules will be compared to the database
and a way of resolving the conflicts that arise
when several rules match at once. 10
• A rule applier
Well-defined problems and
solutions PROBLEM
A problem can be defined formally by five
components:
• INITIAL STATE : The initial state that the
agent starts in
13
State Space Search
14
•
State
Goal-driven search
Space Search
– Goal can be clearly and easily formulated, e.g. theorem prover; finding an exit
path from a maze; medical diagnosis where the condition to be diagnosed is
known; problem data are not given but must be acquired by the problem solver
• Data-driven search
– Not clear what the goal is; interpretation problems where all or most of the data
are given in the initial problem statement; large number of potential goals
15
Search Strategies
16
Categories of Search
• Blind (or unguided or uninformed) search
• Heuristic (or guided or informed ) search
17
Blind Search
• The uninformed or blind search is the
search methodology having no additional
information about search states beyond
that provided in the problem definitions. In
this search total search space is looked for
solution
• Having no information about the number of
steps from the current state to the goal.
18
Blind Search
– Breadth-First search (BFS)
– Depth-First Search (DFS)
19
PATH COST AND STEP COST
1. TOY PROBLEM
2. 8-PUZZLE PROBLEM
3. N-QUEENS PROBLEM
4. ROUTE FINDING PROBLEM
SEARCHING FOR SOLUTIONS
A solution is an action sequence, so search
algorithms work by considering various action
sequences. It can be implemented using search
tree.
• SEARCH TREE: The possible action sequences
starting at the initial state form a search tree with
the initial state at the root; the branches are
actions and the nodes correspond to states in
the state space of the problem
Infrastructure for search algorithms