Docsity

Artificial Intelligence - Homework 1 Problems | CAP 4621, Assignments of Computer Science

Toggle sidebar
bg1
Homework 1- CAP 4621 Fall 2003
3.7 (d) Give the initial state, goal test, successor function, and cost function for the following.
Choose a formulation that is precise enough to be implemented:
You have three jugs, measuring 12 gallons, 8 gallons, and 3 gallons, and a water faucet. You can fill
the jugs up or empty them out from one to another or onto the ground. You need to measure out
exactly one gallon.
3.8 Consider a state space where the start state number is 1 and the successor function for state n
returns two states, numbers 2n and 2n+1.
(a) Draw the portion of the state space for states 1 to 15.
(b) Suppose the goal state is 11. List the order in which nodes will be visited for breadth-first
search, depth-limited search with limit 3, and iterative deepening search.
4.3 Prove each of the following statements:
(a) Breadth-first search is a special case of uniform-cost search.
(b) Breadth-first search, depth-first search, and uniform-cost search are special cases of best-first
search.
(c) Uniform-cost search is a special case of A* search.
Prove the Lemma: “A* expands nodes in order of increasing f value if h is consistent.”(Hint:
Suppose that this is not the case, i.e. there is a situation in which this does not happen, and show
using consistency of h that this leads to a contradiction).
Bonus problem:
Find an admissible (but not consistent) heuristic for which the Lemma above does not hold. To get
credit you should show a clear example on which A* will expand later a node with smaller f function
than one of the previous nodes.

Partial preview of the text

Download Artificial Intelligence - Homework 1 Problems | CAP 4621 and more Assignments Computer Science in PDF only on Docsity!

Homework 1- CAP 4621 Fall 2003

3.7 (d) Give the initial state, goal test, successor function, and cost function for the following. Choose a formulation that is precise enough to be implemented: You have three jugs, measuring 12 gallons, 8 gallons, and 3 gallons, and a water faucet. You can fill the jugs up or empty them out from one to another or onto the ground. You need to measure out exactly one gallon.

3.8 Consider a state space where the start state number is 1 and the successor function for state n returns two states, numbers 2n and 2n+1. (a) Draw the portion of the state space for states 1 to 15. (b) Suppose the goal state is 11. List the order in which nodes will be visited for breadth-first search, depth-limited search with limit 3, and iterative deepening search.

4.3 Prove each of the following statements: (a) Breadth-first search is a special case of uniform-cost search. (b) Breadth-first search, depth-first search, and uniform-cost search are special cases of best-first search. (c) Uniform-cost search is a special case of A* search.

Prove the Lemma: “A* expands nodes in order of increasing f value if h is consistent.”(Hint: Suppose that this is not the case, i.e. there is a situation in which this does not happen, and show using consistency of h that this leads to a contradiction).

Bonus problem: Find an admissible (but not consistent) heuristic for which the Lemma above does not hold. To get credit you should show a clear example on which A* will expand later a node with smaller f function than one of the previous nodes.