Graphs -> Link-Cut Tree
Dynamic-forest path structure for online link/cut, connectivity, and path aggregates on one changing tree forest.
- Topic slug:
graphs/link-cut-tree
- Tutorial page: Open tutorial
- Ladder page: Open ladder
- Repo problems currently tagged here:
1
- Repo companion pages:
6
- Curated external problems:
2
Microtopics
- preferred-path
- access
- makeroot
- splay-auxiliary-tree
- dynamic-forest
- path-aggregate
- link-cut
Learning Sources
Practice Sources
Repo Companion Material
Curated External Problems
Core
| Problem |
Source |
Difficulty |
Context |
Style |
Prerequisites |
Tags |
Why it fits |
| Dynamic Tree Vertex Add Path Sum |
Library Checker |
Very Hard |
Dynamic Trees |
Dynamic Trees; Path Aggregate; Verifier |
Rooted Tree Intuition; Preferred Paths; Makeroot / Access |
Dynamic Forest; Path Sum; Vertex Add |
The cleanest exact verifier for the first narrow link-cut route: dynamic forest, point add on vertices, and path sums. |
Stretch
| Problem |
Source |
Difficulty |
Context |
Style |
Prerequisites |
Tags |
Why it fits |
| Dynamic Tree Vertex Set Path Composite |
Library Checker |
Very Hard |
Dynamic Trees |
Dynamic Trees; Non-Commutative Query; Verifier |
Link-Cut Tree; Path Query Ordering; Function Composition |
Dynamic Forest; Path Composite; Non-Commutative |
A natural stretch once the basic route is trusted and the path aggregate becomes non-commutative. |
Repo Problems
| Code |
Title |
Fit |
Difficulty |
Pattern |
Note |
Solution |
DYNAMICTREEVERTEXADDPATHSUM |
Dynamic Tree Vertex Add Path Sum |
primary |
very hard |
- |
Note |
Code |
Regeneration
python3 scripts/generate_problem_catalog.py