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

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

Some time ago someone told me that when your choices are quite dependent to each other then using dp will be a great idea having this in mind it helped me to come up with the dp idea in a lot of problems in the first place.Yesterday I saw a problem that had dp solution see the link .I wasn't able to recognize it is a dp problem until the end of the contest.But a yellow coder seeing the problem in the first place told that it is a standard dp problem.So my question is how to recognize "Standard dp" problems?Can anyone tell me what property of the problem makes it a standard dp problem?Thanks in advance.

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

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -12 Проголосовать: не нравится

I think that: A property of a standard dp problem is such the problem that is a simple, well-known, well-discussed problem that can be solved with dynamic programming and having a lot of research, tutorial videos, papers about it as its wonderful applications. So it can be recognized when we observed many problems solved have the same pattern of a simpler standard dp problem.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -27 Проголосовать: не нравится

$$$n \leq 100$$$ and $$$a_{i} \leq 100$$$ suggests dp. Looks too big for bitmasks and meet in the middle and too small for most other standard cp techniques.

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

Coding problems asked in company interview's are "standard dp".
On a serious note: Dimension is the only way i recognise dp.

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

Even i had the same question in my mind . I am mostly accustomed to solving dp problem that are standard and you can figure the dp states from the question itself. But this is different type of dp problem. Hope to solve more of such problems .

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +70 Проголосовать: не нравится

Standard problems are recognized by having experience. Looking at constraints and forcing DP is dumb.