Re:Dynamic Programming vs. Divide-and-Conquer (2018)
by slaymaker1907 on Sunday April 25, 2021 @03:10PM
(#26935619)
I don't think the comparison is accurate. The subproblem explanation of DP immediately lends itself to a strategy for solving problems: come up with a brute force solution then look for where you are duplicating where, i.e., how can a hash table help me? Even if there is a more efficient way to do things in the end than a hash table, I find it easier to go from brute force, to hash table, then finally look at it and see if I can optimize it further.
[ Parent
| on HN ]
There are no comments on this comment yet.