r/ProgrammerHumor • • 7d ago

Meme dynamicProgramming

Post image
6.3k Upvotes

154 comments sorted by

View all comments

48

u/lucklesspedestrian 7d ago

I mean what else are you supposed to do, just run the brute force recursion?

27

u/marcodave 7d ago

"back in my day we brute-forced each day, uphill, BOTH WAYS. You youngsters keep that memoize thingamajigs"

5

u/marmakoide 7d ago

Explicit analytic formula without recursion, computing time independent from parameters value, like a true Chad

2

u/guyblade 6d ago

It's nice when those exist. Sometimes--perhaps even oftentimes--they don't.

1

u/electrodragon16 1d ago

Young man, Peano defined addition recursively, so in this house we compute addition recursively!

0

u/tasos_lydia4 7d ago

Yes, if the judge is willing to wait until the heat death of the universe.