Professional Documents
Culture Documents
Informed Seearch
Informed Seearch
Searching and AI
Searching falls under Artificial Intelligence (AI).
5
HEURISTIC SEARCH
6
IMPLEMENTING HEURISTIC EVALUATION FUNCTIONS
Performance of various heuristics is evaluated for solving the 8-puzzle.
Figure shows a start and goal state for the 8-puzzle, along with the first
three states generated in the search.
7
IMPLEMENTING HEURISTIC EVALUATION FUNCTIONS
The simplest heuristic, counts the tiles out of place in
8
IMPLEMENTING HEURISTIC EVALUATION FUNCTIONS
9
IMPLEMENTING HEURISTIC EVALUATION FUNCTIONS
Let evaluation function f(n), be the sum of two
components:
f(n) = g(n) + h(n)
Where:
g(n) measures the actual length of the path from start state to
any state n.
h(n) is a heuristic estimate of the distance from the state n to
a goal.
10
IMPLEMENTING HEURISTIC EVALUATION FUNCTIONS
11
• Each state is labeled with a letter and its
heuristic weight, f(n) = g(n) + h(n).
12
Successive stages of OPEN and CLOSED that generates the graph are:
13
14
Best-First Search
Is the new method which combine the advantages of
both depth-first and breadth-first search into single
method.
search.
CLOSED LIST to record states already visited.
17
ALGORITHM FOR HEURISTICS SEARCH
Best-First-Search
18
BEST-FIRST-SEARCH
19
Explanation-BEST-FIRST-SEARCH
20
BEST-FIRST-SEARCH
21
BEST-FIRST-SEARCH
22
BEST-FIRST-SEARCH