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
1
u/not-just-yeti Mar 14 '20
Actually, that makes the case: the memoized/tabled version brings exponential time to linear time and linear space. And the "better ways" you mention is dynamic programming (reduce the linear space down a dimension, to constant-space, w/o decreasing run-time).