EECS 281 Fall 2007
Homework Assignment 4
Due Tuesday 12/04/07 at 1:00 PM
Instructions: Complete all problems and turn in a hard copy to the EECS 281
lock box in 2420 EECS by the specified due date. Type or write legibly and
include both your name and uniqname on each page of the assignment. There are
6 questions worth a total of 35 points.
1) (5 points) Run the Graham scan algorithm to compute the convex hull of
points below, starting from A. Give the points that appear on the trial hull
(after each iteration) in the order that they appear.
2) (6 points) Consider the following graph. Your task is to color each node with a
blue (B), maize (M) or white (W) color. A coloring is valid only if nodes in
every pair of adjacent nodes are assigned a different color. Use
Backtracking to find all possible solutions to the problem. You must use a
tree representation to illustrate your use of backtracking (w/ partial
solutions). The vertices must be considered in a numeric order and the colors
have to be tried in B, M, W order. Show all steps.