Complexity And Hardness Ladder¶
Who This Is For¶
Use this ladder when you want better judgment about what kinds of exact algorithms are realistic, not just better coding speed.
Warm-Up¶
- compare polynomial vs exponential state spaces
- identify small parameters and pseudo-polynomial structure
Core¶
- hardness as a modeling signal
- exact vs restricted vs approximate thinking
Repo Case Study¶
- Book Shop: use it as the internal anchor for pseudo-polynomial reasoning before pushing deeper into theory material.
- VMMARBLE: a strong small-
nexact-search compare point. - Counting Numbers: a reminder that enormous value ranges can still be tractable when the real state space is structured.
Stretch¶
- parameterized exact algorithms
- pseudo-polynomial vs truly polynomial reasoning
Compare Points¶
- pseudo-polynomial exact DP -> Book Shop
- small-state exact search -> VMMARBLE
- structured state compression -> Counting Numbers
- theory companions -> Complexity And Hardness and DP Foundations
Use this ladder to build judgment, not only theorem vocabulary:
- compare one pseudo-polynomial success
- compare one small-
nexponential success - compare one structured DP that looks impossible before the right state appears
Exit Criteria¶
You are ready to move on when you can:
- explain why a brute-force model is doomed before coding it
- distinguish pseudo-polynomial from polynomial time
- spot when a small parameter changes feasibility completely
- use hardness intuition to reformulate a problem instead of thrashing