Why it matters
Bitmask DP handles many combinatorial problems.
Advertisement
The architecture
State: bitmask (which elements used).
Transition: try each unused element.
Advertisement
How it works end to end
Classic: TSP with n up to 20-25. State: (bitmask, last city).
Set cover variants.
Assignment problems.