The Wayback Machine - https://web.archive.org/web/20241202011504/https://www.geeksforgeeks.org/dynamic-programming/
Open In App

Dynamic Programming or DP

Last Updated : 01 Dec, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Dynamic Programming is mainly an optimization over plain recursion. Wherever we see a recursive solution that has repeated calls for the same inputs, we can optimize it using Dynamic Programming. The idea is to simply store the results of subproblems so that we do not have to re-compute them when needed later. This simple optimization typically reduces time complexities from exponential to polynomial. Some popular problems solved using Dynamic Programming are Fibonacci Numbers, Diff Utility (Longest Common Subsequence), Bellman–Ford Shortest Path, Floyd Warshall, Edit Distance and Matrix Chain Multiplication.

Basic of DP

DP Problems Sorted by Topic / Dimensions / Standard Problems

DP Problems Difficulty Wise

Basic Problems on DP

Easy Problems on DP

Medium Problems on DP

Hard Problems on DP

Advanced Concepts in Dynamic Programming (DP)

Quick Links:


Previous Article
Next Article

Similar Reads

three90RightbarBannerImg