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

Автор The_mysterio, история, 3 года назад, По-английски

Hello community, We all know that the 2 properties for a DP problem are 1) Overlapping Subproblems 2) Optimal Substructure . So, when we start doing DP problems, many like me first try to find out whether the problem can be solved recursively and if so does it have overlapping subproblems. But doing this during a contest takes a lot of time. People who are able to comfortably solve DP problems during a contest, do you guys really check these two patterns , whether they exist in the problem or do you look for any other insights??

Thank you if you choose to reply in the comments

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

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

Formulating DP fast comes with experience, there is nothing more to it.

Also, I have no idea what "overlapping subproblems" and "optimal substructure" mean. Well, I can guess based on the paragraph after but it still sounds very strange.

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

Sometimes for me, problem constraints are the biggest hint for DP :)