Dynamic Programming Solution for Activity-selection
问题 In 16.1 An activity-selection problem of Introduction to Algorithm , the dynamic programming solution for this problem was given as c[i, j] = 0 if S(i, j) is empty c[i, j] = max { c[i, k] + c[k, j] + 1 } if S(i, j) is not empty where S(i, j) denotes the set of activities that start after activity a(i) finishes and that finish before activity a(j) starts, and c[i, j] denotes the size of an optimal solution for the set S(i, j) However, I am thinking of another simpler solution c[i] = max { c[i