Sheet2_AI
Sheet2_AI
Faculty of Engineering
Computer and Communications
Engineering – SSP Deadline: 5/4/2020
a) Greedy Search.
b) A∗ Search.
2. Consider the following maze in which the successors of a cell include any adjacent cell in the
directions North, South, East, and West of the current cell, except at the boundary of the
maze or when a barrier (thick line) exists. For example, successors (M) = {D,N,G}. Assume
each move has cost 1. The problem is to find a path from cell S to cell G.
From (a) to (f) what is the order of nodes expanded (plus the goal node if it is found) by each
of the following search methods? Show the steps.
a) Greedy Search. Use as the heuristic function h (state) = Manhattan distance from state to G
assuming there were no barriers. For example, h (K) = 2 and h(S) = 4.
b) Hill-Climbing Search. Use the same heuristic function as in (a).
c) A∗ Search. Use the same heuristic function as in (a). Remove redundant states.
d) Is h an admissible heuristic? Justify your answer.
e) Is h2 (state) = min (2; h (state)) an admissible heuristic? Justify your answer.
f) Is h3 (state) = max (2; h (state)) an admissible heuristic? Justify your answer.
Dr. Amira Youssef – Dr. Sherin Aly Eng. Heba Abd El Atty Page 1 of 2
Alexandria University CC482: Artificial Intelligence
Faculty of Engineering
Computer and Communications
Engineering – SSP Deadline: 5/4/2020
If “Dallas” is the starting city and the goal destination is “Sault Ste Marie”. Use A∗ search
algorithm to find a route from the start to goal destination.
• The table on the right is the estimated heuristic distance from each city to the goal.
• Show the sequence of the nodes that the algorithm will consider and f, g and h score for
each node.
Good Luck
Dr. Amira Youssef – Dr. Sherin Aly Eng. Heba Abd El Atty Page 2 of 2