I have often a hard time explaining it though. But very simply (the way I explain) it is, you compute and keep lot of results for lower values e.g. value of f(x,y) where x,y are less than some larger n,m respectively. And for computing f(n,m) you would need to compute f(x,y) a number of times for varying values of x,y. So if you keep it in memory. You save hell lot of a computing time. And your program runs in a fraction of time of what it would take other wise.
[1] https://www.topcoder.com/community/data-science/data-science...
Edit: minor correction
I perhaps used smaller where subproblem may be a more optimal use.
- "Nope, memoization."
- "Uh ok."
caching : memoization :: program performance : algorithm performance