You are on page 1of 37

Module 1 : Problem Solving & Scope of AI

1
Topics to be covered

• Informed Search.

• Heuristic Function.

• Heuristic Example : 8-Puzzle Problem.

• Heuristic Search Algorithm.


- Best Search First
- A*
–AO*
- Hill Climbing
- Constraint Satisfaction

2
Amity School of Engineering and Technology

Informed Search

• Informed search tries to reduce the amount of search that must be done by making intelligent choices
for the nodes that are selected for expansion.

• In general this is done using a heuristic function.

3
Amity School of Engineering and Technology

Heuristic Function
• A heuristic function is a function that ranks alternatives in various search algorithms at each
branching step based on the available information (heuristically) in order to make a decision
about which branch to follow during a search.

• Well designed heuristic functions can play an important part inefficiently guiding a search
process toward a solution.

• Sometimes very simple heuristic functions can provide a fairly good estimate of whether a path
is any good or not.

• In other situations, more complex heuristic functions should be employed.

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Practice Question on A*
Find the path to reach from S to G using A* search.

19
20
21
22
23
Practice Question on AO*
Figure represents an AO graph with the values labeled as follows. The value in a single line circle is
an estimate of cost. The value in a double lined circle, a SOLVED node, is the actual value. Each edge
is labeled with a different cost. What is the value of the root node for the optimal solution for the AO
graph?

24
25
26
27
28
29
30
31
32
33
34
35
36
Amity School of Engineering and Technology

Thank You

37

You might also like