This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/content/4_Plat/Plat_Trees.md

50 lines
1.4 KiB
Markdown
Raw Normal View History

2020-06-04 02:09:42 +00:00
---
slug: /plat/trees
title: "Platinum - Trees"
2020-06-04 03:26:53 +00:00
author: Benjamin Qi
2020-06-04 02:09:42 +00:00
---
2020-06-03 14:17:07 +00:00
# Platinum - Trees
2020-06-04 03:26:53 +00:00
## Tree Diameter
### Tutorial
- CPH 14.2
### Problems
- [USACO Plat Newbarns](http://www.usaco.org/index.php?page=viewproblem2&cpid=817)
- Copy of [Brain Network "Hard"](https://codeforces.com/contest/690/problem/C3)
## Lowest Common Ancestor
### Tutorial
- CPH 18
- [cp-algorithms: Lowest Common Ancestor](https://cp-algorithms.com/)
### Problems
- [USACO Plat Max Flow](http://www.usaco.org/index.php?page=viewproblem2&cpid=576)
- [USACO Gold Milk Visits](http://www.usaco.org/index.php?page=viewproblem2&cpid=970)
- [USACO Gold Cow Land](http://www.usaco.org/index.php?page=viewproblem2&cpid=921)
- LCA + BIT
- [USACO Plat Promote](http://www.usaco.org/index.php?page=viewproblem2&cpid=696)
- Subtree + BIT
- [USACO Plat Disrupt](http://www.usaco.org/index.php?page=viewproblem2&cpid=842)
- HLD is possible, but just do binary jumps
- [USACO Plat Tree Boxes](http://www.usaco.org/index.php?page=viewproblem2&cpid=948)
- interactive!!
- [USACO Plat Gathering](http://www.usaco.org/index.php?page=viewproblem2&cpid=866)
- [USACO Plat Exercise](http://www.usaco.org/index.php?page=viewproblem2&cpid=901)
- tricky
## Centroid Decomposition
- [USACO Plat - At Large](http://www.usaco.org/index.php?page=viewproblem2&cpid=793)
- very tricky
- [DMOJ Bob Equilibrium](https://dmoj.ca/problem/dmopc19c7p6)
## Heavy-Light Decomposition