Problems are worth 20 points unless otherwise specified; there are 90 points in all.
Please look at the handout regarding assigments on the class web site before submitting your solutions.
Let l1 = 1 if e1 + a1,1 < e2 + a2,1
2 otherwise
Let lj = 1 if lj-1 = 1 and a1,j < t1,j-1 + a2,j
2 if lj-1 = 1 and a1,j >= t1,j-1 + a2,j
2 if lj-1 = 2 and a2,j < t2,j-1 + a1,j
1 if lj-1 = 2 and a2,j >= t2,j-1 + a1,j
Give an instance of this problem where x1 = x2=0, but this greedy algorithm will give an incorrect solution.