|
|
|
|
|
by roenxi
2657 days ago
|
|
It is a good write up, but it underscores the mystery of how DP ever got named as a technique. Memoization is a great general-purpose technique that covers pretty much all the obvious cases for DP to a reasonable standard. Its black-box nature allows for effective and well compartmentalised application. DP is an extremely complicated and invasive technique that requires rewriting algorithms to optimise for space & time use. It doesn't seem like the advantages of DP are enough to outweigh the neat design of memoisation. I'd rather see an interview question on implementing memoize in Python than writing a DP algorithm. |
|