How does memoization optimize recursive algorithms?
Memoization optimizes recursive algorithms by storing the results of expensive function calls and reusing those results when the same inputs occur again. This approach reduces redundant computations and significantly improves the efficiency of recursive algorithms.