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

46 lines
1.7 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-06-05 00:21:03 +00:00
prerequisites:
2020-06-22 20:51:12 +00:00
- Gold - Shortest Paths
- Gold - Disjoint Set Union
2020-06-22 19:59:16 +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: [
new Problem("Old Silver", "SuperBull", "531", "Easy", false, ["MST"], ""),
new Problem("Gold", "Walk", "946", "Easy", false, ["Math","Prim"], ""),
new Problem("Gold", "Fencedin", "623", "Easy", false, ["MST"], ""),
2020-06-27 03:07:31 +00:00
new Problem("HR", "Spanning Tree Fraction", "https://www.hackerrank.com/contests/w31/challenges/spanning-tree-fraction/problem", "Easy", false, ["MST", "Binary Search"], ""),
2020-06-24 23:08:16 +00:00
new Problem("Plat", "Fencedin", "625", "Normal", false, ["Kruskal"], ""),
],
}
};
2020-06-24 20:50:30 +00:00
## Sample
2020-06-03 23:03:14 +00:00
2020-06-24 23:08:16 +00:00
<problems-list problems={metadata.problems.standard} />
2020-06-03 20:56:04 +00:00
## Tutorial
2020-06-27 00:33:06 +00:00
<resources>
2020-06-27 03:07:31 +00:00
<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>
2020-06-27 00:33:06 +00:00
<resource source="cp-algo" title="Kruskal's" url="graph/mst_kruskal.html"></resource>
<resource source="cp-algo" title="Kruskal's" url="graph/mst_kruskal_with_dsu.html"></resource>
</resources>
## USACO Problems
2020-06-03 20:56:04 +00:00
2020-06-27 03:07:31 +00:00
<problems-list problems={metadata.problems.general} />