Concepts4
📚TheoryIntermediate
NP-Completeness
NP-completeness classifies decision problems that are both in NP and as hard as any problem in NP via polynomial-time reductions.
#np-complete#np-hard#polynomial-time reduction+12
📚TheoryIntermediate
Complexity Theory
Complexity theory classifies problems by the resources required to solve or verify them, such as time and memory.
#complexity theory#p vs np#np-complete+12
⚙️AlgorithmIntermediate
Meet in the Middle
Meet-in-the-middle splits a hard exponential search into two halves, enumerates each half, and then combines results efficiently.
#meet in the middle#subset sum#pair sums+12
⚙️AlgorithmIntermediate
Knapsack Problems
Knapsack problems ask how to pick items under a weight (or cost) limit to maximize value or to check if a target sum is reachable.
#0/1 knapsack#unbounded knapsack#bounded knapsack+12