Say n boxes arrive in the order b1, . . . , b. Say each box b has a positive weight w, and the maximum weight each truck can carry is W. To pack the boxes into N trucks preserving the order is to assign each box to one of the trucks 1, . . . , N so that: