Memoization

Memoization (or memoisation) is an optimization technique used increase the efficiency of programs by storing the results of expensive function calls and returning the cached results when the same inputs occur again.

Resources