Space Optimization and Rolling Arrays
Space Optimization and Rolling Arrays 1. Overview This document covers techniques to reduce space …
Space Optimization and Rolling Arrays 1. Overview This document covers techniques to reduce space …
Constrained Path DP 1. Overview This document covers DP approaches for path problems with additional …
Scheduling and Resource Allocation DP 1. Overview This document covers DP approaches for: Job/Task …
Advanced DP Optimizations 1. Overview This document covers advanced optimization techniques beyond …
DP Solution Reconstruction & Path Recovery 1. Overview Core Concept DP finds optimal values, but …
DP with Last Element / Lookback States 1. Overview Core Concept Many DP problems require tracking …
Probability & Expected Value DP 1. Overview Core Concept Probability DP deals with problems …
Counting DP & Combinatorics DP 1. Overview Core Concept Counting DP deals with problems asking …
Partition DP 1. Overview Core Concept Partition DP deals with problems where we need to split an …
DP on DAGs / Topological DP 1. Overview Core Concept Any DP problem can be viewed as finding paths …
String DP 📚 Summary String DP problems involve comparing, transforming, or matching strings. Common …
Interval DP 📚 Summary Interval DP solves problems by considering all possible intervals [i, j] and …
DP Optimization Techniques 1. Summary of Optimization Techniques Technique Reduces From Reduces To …
Digit DP Summary / TL;DR Digit DP solves problems of the form: “Count numbers in range [L, R] …
Bitmask DP Summary / TL;DR Bitmask DP uses binary numbers to represent subsets, enabling efficient …
Tree DP and Subtree Problems Summary / TL;DR Tree DP leverages the hierarchical structure of trees …
Longest Increasing Subsequence (LIS) and Variants Summary / TL;DR LIS is a fundamental DP problem …
Knapsack Variants Summary / TL;DR The Knapsack family of problems involves selecting items with …
Dynamic Programming (DP) Overview 1. Summary / TL;DR DP solves problems by breaking them into …