Docsity

A* Search Algorithm: Heuristic Function Challenges, Exams of Computer Science

Toggle sidebar
bg1
Informed Search; page 1 of 1
Just for fun. Nothing to turn in. On the other hand, we won’t provide sample solutions
either.
Question 1:
Which problem(s) can arise if A* is used with a non-admissible heuristic function? Illus-
trate the problem(s) with a simple example.
Question 2:
Assume that A* uses a consistent heuristic function. Assume further that it expands node
n at some point in time, the f-value of node n is f(n), and the node corresponds to state s in
the state space. The path from the root of the search tree to n corresponds to a path from
the start state of the state space to s. Show that subsequent node expansions of A* cannot
find a shorter path from the start state of the state space to s. (Hint: Assume that A* later
expands a different node n’, the f-value of node n’ is f(n’), and the node also corresponds
to state s in the state space. Show first that f(n) <= f(n’) and then that $g(n) <= g(n’)$.)
WHY IS THIS RESULT IMPORTANT? Which problems can arise if A* is used with an
inconsistent but admissible heuristic function? Illustrate the problem(s) with a simple
example. How can A* be changed to deal with the problem(s).
Question 3:
Assume that you are given two consistent heuristic functions h1 and h2. Show that h3 is
consistent if h3(s) = max(h1(s), h2(s)) for all states s. WHY IS THIS RESULT IMPOR-
TANT?
A* Self-Test

Partial preview of the text

Download A* Search Algorithm: Heuristic Function Challenges and more Exams Computer Science in PDF only on Docsity!

Informed Search; page 1 of 1 Just for fun. Nothing to turn in. On the other hand, we won’t provide sample solutionseither. Question 1:Which problem(s) can arise if A* is used with a non-admissible heuristic function? Illus-trate the problem(s) with a simple example.Question 2:Assume that A* uses a consistent heuristic function. Assume further that it expands noden at some point in time, the f-value of node n is f(n), and the node corresponds to state s inthe state space. The path from the root of the search tree to n corresponds to a path fromthe start state of the state space to s. Show that subsequent node expansions of A* cannotfind a shorter path from the start state of the state space to s. (Hint: Assume that A* laterexpands a different node n’, the f-value of node n’ is f(n’), and the node also correspondsto state s in the state space. Show first that f(n) <= f(n’) and then that $g(n) <= g(n’)$.)WHY IS THIS RESULT IMPORTANT? Which problems can arise if A* is used with aninconsistent but admissible heuristic function? Illustrate the problem(s) with a simpleexample. How can A* be changed to deal with the problem(s).Question 3:Assume that you are given two consistent heuristic functions h1 and h2. Show that h3 isconsistent if h3(s) = max(h1(s), h2(s)) for all states s. WHY IS THIS RESULT IMPOR-TANT?

A* Self-Test