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_Gold/MST.mdx

52 lines
1.8 KiB
Text
Raw Normal View History

2020-06-04 01:42:57 +00:00
---
2020-06-15 23:19:07 +00:00
id: mst
2020-06-05 00:21:03 +00:00
title: "Minimum Spanning Trees"
2020-06-04 02:09:42 +00:00
author: Benjamin Qi
2020-07-14 19:19:01 +00:00
prerequisites:
2020-07-06 19:33:42 +00:00
- Gold - Shortest Paths with Non-Negative Edge Weights
2020-06-22 20:51:12 +00:00
- Gold - Disjoint Set Union
2020-07-15 03:54:45 +00:00
description: "A subset of the edges of a connected, undirected, edge-weighted graph that connects all the vertices to each other of minimum total weight, where no cycles are allowed."
2020-06-26 18:00:32 +00:00
frequency: 2
2020-06-04 01:42:57 +00:00
---
2020-06-24 23:08:16 +00:00
import { Problem } from "../models";
export const metadata = {
problems: {
standard: [
new Problem("Kattis", "MST", "minspantree", "Easy", false, ["MST"], ""),
new Problem("CSES", "Road Reparation", "1675", "Easy", false, ["MST"], ""),
],
general: [
2020-07-14 19:19:01 +00:00
new Problem("Old Silver", "SuperBull", "531", "Easy", false, ["MST", "Prim"], "Prim's is recommended; Kruskal's algorithm might TLE"),
2020-06-24 23:08:16 +00:00
new Problem("Gold", "Fencedin", "623", "Easy", false, ["MST"], ""),
2020-07-03 20:29:32 +00:00
new Problem("Gold", "Walk", "946", "Normal", false, ["Math", "Prim"], ""),
new Problem("HR", "Spanning Tree Fraction", "https://www.hackerrank.com/contests/w31/challenges/spanning-tree-fraction/problem", "Normal", false, ["MST", "Binary Search"], ""),
new Problem("Plat", "Fencedin", "625", "Hard", false, ["Kruskal"], ""),
2020-06-24 23:08:16 +00:00
],
}
};
<Problems problems={metadata.problems.standard} />
2020-06-03 20:56:04 +00:00
2020-07-06 18:14:41 +00:00
## Resources
2020-06-03 20:56:04 +00:00
<Resources>
<Resource source="CPH" title="15 - Spanning Trees" starred>Kruskal's & Prim's</Resource>
<Resource source="PAPS" title="12.4">Kruskal's</Resource>
<Resource source="cp-algo" title="Prim's" url="graph/mst_prim.html"></Resource>
<Resource source="cp-algo" title="Kruskal's" url="graph/mst_kruskal.html"></Resource>
<Resource source="cp-algo" title="Kruskal's with DSU" url="graph/mst_kruskal_with_dsu.html"></Resource>
</Resources>
2020-06-27 00:33:06 +00:00
2020-07-19 00:22:28 +00:00
## Implementation
### Kruskal's
### Prim's
2020-06-27 00:33:06 +00:00
## USACO Problems
2020-06-03 20:56:04 +00:00
<Problems problems={metadata.problems.general} />