You have a function best(int n,set of intervals). If the given set of intervals covers the 0th through n-1th numbers, then best(n,set of intervals) is the minimum, over all intervals (call each one I in turn) containing the nth number, of best(n+1,set of intervals \[Union] I).
best(int n,set of ...
Search found 3 matches
- Thu Aug 26, 2004 6:00 pm
- Forum: Algorithms
- Topic: Problems understanding dynamic programming
- Replies: 6
- Views: 2927
- Wed Aug 25, 2004 10:26 pm
- Forum: Algorithms
- Topic: Problems understanding dynamic programming
- Replies: 6
- Views: 2927
- Wed Aug 25, 2004 8:27 pm
- Forum: Algorithms
- Topic: Problems understanding dynamic programming
- Replies: 6
- Views: 2927
I am also facing the same problem. It is difficult to formulate the solutions with DP sometimes. I read some examples in introduction to algorithms , it seems I had mastered the idea of DP, actually find out not when trying to solve other problems myself. Normally it is said as that book "beneath ...