Cse3521 hw1
Cse3521 hw1
Cse3521 hw1
Task: Work through each set of exercises. If you get stuck on any of the exercises
you can ask Yi or myself for help by email or during office hours.
What to submit: Submit your answers for all of the exercises in this document to
the appropriate dropbox on the Carmen site. Answers for the concept check
and proof sections can be hand-written (e.g., submitted as a scanned image),
but please make sure that your writing is readable. Answers to the coding
section must be written in python and must be runnable by the grader.
Due date: Submit your answers to the Carmen dropbox by 11:59pm, Jun. 1st.
1 Concept check
1. (1 points) For each of the following search algorithms, state which kind of
data structure models their collection of fringe/frontier nodes: breadth-first
search, depth-first search, A∗ -search.
2. (1 points) Provide an admissible and consistent heuristic for the state space
graph shown in Figure 1.
1
Figure 1: A simple state space graph (from Berkeley AI slides).
4. (2 points) In your own words, explain the relationship between how the ex-
pectimax algorithm works and how Q-states work in Markov Decision Pro-
cesses (MDPs). Try to be as explicit as possible about the parallel between
the two concepts.
5. (2 points) In your own words, explain the role of the “Markov assumption”
in our formulation of MDPs, i.e., why are we making this assumption about
our decision processes?
6. (2 points) In your own words, explain the key differences between value
iteration and policy iteration for solving MDPs.
2 Coding
1. (4 points) [From RN, page 116] The “missionaries and cannibals” problem
is usually stated as follows. Three missionaries and three cannibals are on
one side of a river [let’s assume the left side], along with a boat that can
hold one or two people [and must hold at least one]. Find a way to get
everyone to the [right] side without ever leaving a group of missionaries
in one place outnumbered by the cannibals in that place. This problem is
famous in AI because it was the subject of the first paper that approached
problem formulation from an analytical viewpoint (Amarel, 1968).
Write a python script that implements and solves the problem optimally
using an appropriate search algorithm. Make sure your script produces an
optimal path from the initial state to the goal state.
2
Figure 2: MDP for keeping cars happy (from Berkeley AI slides).