03 - AI Searching Techniques - Informed Search Strategies
03 - AI Searching Techniques - Informed Search Strategies
1
Topics To be Covered …
3
Informed Search Strategies
4
Informed Search Strategies
Rules for choosing those branches in a state space that are most
likely to lead to an acceptable problem solution.
6
Heuristic Function example – The 8-puzzle game
The 8-puzzle game:
Hamming distance: Number of tiles out of place (i.e., not
in their goal positions)
7
Heuristic Function example – Tic Tack Toe
8
Pure heuristic search Algorithms
9
Greedy Best first search algorithm
10
Best first search example
Start state
Goal state
11
Best First Search
12
Best First Search Example
13
Best First Search Example
14
Best First Search Example
15
Best First Search Example
16
A* search Algorithm
17
A* search
18
A* Algorithm example 1
n h(n)
S 1 start
a 3
b 3
c 0 goal
d 0 goal
19
A* Algorithm example 1
20
A* Algorithm Example 2
21
A* Algorithm Example 2
22
A* Algorithm
• Points to remember:
• A* algorithm returns the path which occurred first, and it does not
search for all remaining paths.
• The efficiency of A* algorithm depends on the quality of heuristic.
• A* algorithm expands all nodes which satisfy the condition f(n)<=""
li="">
• Complete: A* algorithm is complete
• Optimal: A* search algorithm is optimal if it follows below two
conditions
•
23
Example (BFS, DFS, BestFS, A*)
24
Next Time …
• Predicate Calculus
25