0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 19:36:28 +00:00

fix(AcWing/1279): Heavy Path Decomposition

This commit is contained in:
Baoshuo Ren 2022-05-09 10:47:47 +08:00
parent 0b2e3efdac
commit 75e3ad0224
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -8,7 +8,7 @@ int n, m, u, v, c, color[N];
char op;
vector<int> g[N];
// Link-cut Tree
// Heavy Path Decomposition
int cnt, dep[N], id[N], siz[N], fa[N], son[N], top[N], w[N];
void dfs1(int, int);
void dfs2(int u, int t);
@ -48,7 +48,7 @@ int main() {
return 0;
}
// === Link-cut Tree ===
// === Heavy Path Decomposition ===
void dfs1(int u, int f) {
dep[u] = dep[f] + 1;