Exercise Lover

July 11, 2007

Problems 16-4

Filed under: Problem 16 — yuhanlyu @ 8:58 am

a.

b. O(n).

Problems 16-3

Filed under: Problem 16 — yuhanlyu @ 8:54 am

Solution wanted!

Problems 16-2

Filed under: Problem 16 — yuhanlyu @ 8:54 am

a. Run the shortest task first.

b. Run the shortest elapsed time first.

Problems 16-1

Filed under: Problem 16 — yuhanlyu @ 8:48 am

a. See reference.

b.

c.

d. Dynamic programming. Let c(i) be the optimal solution for i. Then the recursive formula is c(i) = min_j c(i-d_j) + 1.

Blog at WordPress.com.