2020-06-24 23:08:16 +00:00
|
|
|
---
|
|
|
|
id: centroid
|
|
|
|
title: "Centroid Decomposition"
|
|
|
|
author: Benjamin Qi
|
|
|
|
prerequisites:
|
|
|
|
- Silver - Depth First Search
|
|
|
|
description: "?"
|
2020-06-26 18:00:32 +00:00
|
|
|
frequency: 1
|
2020-06-24 23:08:16 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
import { Problem } from "../models";
|
|
|
|
|
|
|
|
export const metadata = {
|
|
|
|
problems: {
|
|
|
|
general: [
|
|
|
|
new Problem("CF", "Ciel the Commander", "problemset/problem/321/C", "Easy", false, ["Centroid"]),
|
2020-06-25 17:43:28 +00:00
|
|
|
new Problem("YS", "Frequency Table of Tree Distance", "frequency_table_of_tree_distance", "Hard", false, ["Centroid", "FFT"], ""),
|
2020-06-24 23:08:16 +00:00
|
|
|
new Problem("DMOJ", "Bob Equilibrium", "dmopc19c7p6", "Hard", false, ["Centroid"], "tight time limit"),
|
2020-06-26 21:12:04 +00:00
|
|
|
new Problem("DMOJ", "Time Traveller Imaxblue", "tc19summerh", "Hard", false, ["Centroid"], ""),
|
2020-06-24 23:08:16 +00:00
|
|
|
new Problem("Plat", "At Large", "793", "Very Hard", false, ["Centroid"], "tight time limit"),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-06-25 04:00:28 +00:00
|
|
|
(another DMOJ prob?)
|
|
|
|
|
2020-06-24 23:08:16 +00:00
|
|
|
### Tutorial
|
|
|
|
|
|
|
|
- [GeeksForGeeks](http://www.geeksforgeeks.org/centroid-decomposition-of-tree/)
|
|
|
|
- [Carpanese](https://medium.com/carpanese/an-illustrated-introduction-to-centroid-decomposition-8c1989d53308)
|
|
|
|
|
|
|
|
### Problems
|
|
|
|
|
|
|
|
<problems-list problems={metadata.problems.general} />
|