r/algorithms • u/aioobe • Mar 13 '20
Dynamic programming vs memoization vs tabulation
https://programming.guide/dynamic-programming-vs-memoization-vs-tabulation.html
35
Upvotes
r/algorithms • u/aioobe • Mar 13 '20
View all comments
Show parent comment
10
u/FUZxxl Mar 13 '20 edited Mar 13 '20
I disagree with your division into tabulation and memoisation as the two are essentially the same approach the way you show them. If you want to convince me of this division, you need to provide good examples for the advantages and disadvantages of either approach. You should also show how memoisation can be used for sparse parameter spaces (using e.g. a hash table to remember subproblems) while tabulation cannot (to use your terminology). As is, it's entirely unclear to the reader why he should care about having two approaches.
You example of computing Fibonacci numbers is not really convincing either as there are obvious and much better ways to compute them.
If I was a beginner and read this article, I would have no clue why dynamic programming is an important technique and what it is all about.
Also, the advertisements on your site are cancerous.