In DP, why state 'First i numbers' so common?

Revision en1, by dandf2012, 2017-11-22 06:47:08

In many dp, such as knapsack, there is a often a state dp[i][...] such that i is first i numbers. Why is that? Why might it be so convenient for such a state?

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dandf2012 2017-11-22 06:47:08 203 Initial revision (published)