Let A(i,j) be the optimal solution for first i jobs in the j time. A(1, j) = , if j <
.
A(i,j) = .
Let A(i,j) be the optimal solution for first i jobs in the j time. A(1, j) = , if j <
.
A(i,j) = .
Let d(i,j) be the optimal solution to [i,j]. There are three possibility of d[i,j], we can choose maximum of them.
Let T(x,c) be the optimal solution rooted in node x and c indicates whether x is choose or not. The recursive formula is T(x, choose) = w(x) + y is x’s child. And T(x, notchoose) =
y is x’s child.
Let c(j) be the optimal solution for first j words. The recursive formula is + penalty(i~j).
Sort the point from left ot right. Let be the optimal solution for point 1~j, which start i and left to 1 then right to j. The recursive formula is
, i < j-1. And
. The base case is trivial.