r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

1

u/The_Crypter Apr 05 '22

What they meant was Recursion added with Memorization is dynamic programming.

-2

u/faceplanted Apr 05 '22

Also not true, pretty much the whole idea is to not use recursion.

2

u/randomemes831 Apr 05 '22

I mean it depends on if you’re using a top down or bottom up approach

2

u/faceplanted Apr 05 '22

Oh I was taught that the button up approach is dynamic programming, just using memoization and recursion was just called memoization, but I just checked Wikipedia and it looks like you're right.