Hacker News new | past | comments | ask | show | jobs | submit login

That's exactly how I teach dynamic programming. First solve it recursively, then add memoization (I call that top-down).

Then notice that recursion and memoization has some overhead, and construct the table from bottom-up, remove the recursive call, and voila, dynamic programming.




This sounds like a promising teaching technique. Do you have a slide deck to share? I am sure HN crowd would be interested to read.


It's in TFA...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: