Блог пользователя JacobianDet

Автор JacobianDet, история, 5 лет назад, По-английски

How to reconstruct all possible solutions of a particular DP problem? I'm not able to get a generalized technique for this and only results for LCS are shown regarding an example of this topic.

Теги dp
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Erm. There is no "universal" technique. So which DP problem are you trying to address in particular?

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

When you see a DP problem, you shouldn't try to frame your solution around some general approach. Each problem is unique (unless its a dumb problem) so you should make some observations beforehand which may lead to a recurrence.

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

How to do LCS reconstruction when space-optimized bottom-up DP(Space Complexity = O(n)) is used?

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

How to reconstruct solution for this problem: https://codeforces.com/contest/10/problem/D