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

Правка en1, от 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?

Теги dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dandf2012 2017-11-22 06:47:08 203 Initial revision (published)