1.5 KiB
1.5 KiB
id | title | author | prerequisites | description | ||
---|---|---|---|---|---|---|
dp-trees | Dynamic Programming on Trees | Michael Cao |
|
What it sounds like. |
Tutorial
Problems
Don't just dive into trying to figure out a DP state and transitions -- make some observations if you don't see any obvious DP solution!
- USACO
- Gold - Barn Painting
- Similar to Independent Set
- Gold - Delegation
- Pretty much a greedy problem.
- Plat - Delegation
- Binary search on answer!
- Gold - Barn Painting
- Other
- CSES - Tree Matching
- Subtree
- Independent Set
- BOI - Cat In A Tree
- Observations first.
- COCI - Dzumbus
- Solve child subtree by subtree. Runtime may be faster than you think.
- Ostap and Tree