AI Sheet Search
AI Sheet Search
AI Sheet Search
1. The following diagram shows a partially expanded search tree. Each arc is labeled
with a corresponding step cost, and the leaves are labeled with the h (heuristic)
value.
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15
3. Suggest a heuristic of your own to solve the 8-puzzle problem using A* algorithm
and starting from the initial state
1 3 5 to the goal state 1 2 3
4 2 - 4 5 6
1
7 8 6 7 8 -
4. The figure shows a world consisting of a table and 3 blocks. A legal operation is
to move block X onto block Y provided both X and Y have nothing ob their top,
or to move block X onto the table. Draw the search tree generated by a Breadth
first search strategy to reach a goal state.
1
1 2
2 3 3
S
3 8 5
81 C
2 3
A B
9 6 1
4 11
7
10
2 G
D
4 3
2 E 0
1
5 1
G 0
1
0
F
G 5
2
0
6. Consider the following problem.
A
1 1
0
5 B 5
S G
1 5 2
5
C
Show how Uniform cost search and Depth first would find the optimal route from
S to G
7. Consider a search space implicitly specified by a set of rules given
below. A rule p q1, q2, . . . , qn means problem p is solved if each
sub-problem qi is solved. Assume that A is the start node; the cost of a
k-connector is k; for a state representing a primitive problem, the h
value is 0; and any problem or sub problem that has a non-zero h
value and cannot be decomposed into sub problems is unsolvable.
Rules specifying the search space:
•AB •AC •BD • B E • C F,G
• D H, I • E J,K,L • F M • G N • G O
• G P • H Q • H R • I R • L J, S,M
•NU • O T,U •PU
The value v returned by heuristic function for a node x is specified by entries of the form
x(v) in the following list: A(1), B(3), C(2), D(3), E(4), F(1), G(10), H(2), I(3), J(0), K(0),
L(2), M(0), N(16), O(5), P(27), Q(50), R(30), S(0), T(90), U(200). Draw the search
space generated by A* by showing successive snapshots of the search tree after each of
the first four node expansions. (Expanding a node means applying all applicable rules
at the node and generating the node’s successors. For example, expanding A yields
two successors B and C and A can be solved by solving either B or C.) In each
snapshot, include the current estimated cost of the minimum cost solution rooted at
each node.
3
9. The start node is M, goal node is R, Search for goal by
a) Depth first method c) Breadth first method
b) A* d) Greedy method