r/programming • • Apr 16 '19

A graphical introduction to dynamic programming

https://medium.com/@avik.das/a-graphical-introduction-to-dynamic-programming-2e981fa7ca2?source=friends_link&sk=37cd14642cf1a83eb0bb33d231442837
55 Upvotes

14 comments sorted by

View all comments

8

u/bmcmbm Apr 16 '19

Gonna give it a read. I always understand simple problems solved with dynamic programming but fail to apply it to more complicated problems. It’s been 6 years since I was introduced to dynamic programming and it is still one of my weak spots when it comes to interview questions and coding competitions.

7

u/akdas Apr 17 '19

I agree with the other posters that seeing more problems is key. If there's interest, I'd be happy to write a follow up article with more examples.

4

u/RyanPointOh Apr 17 '19

Please do!

2

u/TheBestOpinion Apr 17 '19

You really should, I was going to say that this article was one of the best introductions to dynamic programming I've seen (I've looked for some last year as part of my studies)

3

u/carbonkid619 Apr 17 '19

I've found that dynamic programming is something you can only really get good at with practice, after a while all the problems start looking like ones you've encountered before.

3

u/DidiBear Apr 16 '19

Dynamic programming is just using memoization on recursive function then optimize memory usage