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/6_Plat/Graphs.md

91 lines
2.4 KiB
Markdown
Raw Normal View History

2020-06-04 14:20:28 +00:00
---
2020-06-15 23:19:07 +00:00
id: graphs
2020-06-04 14:20:28 +00:00
title: "Graphs"
author: Benjamin Qi
2020-06-05 00:21:03 +00:00
prerequisites:
-
- Gold - Topological Sort
2020-06-04 14:20:28 +00:00
---
2020-06-17 22:18:07 +00:00
<module-excerpt>
- Eulerian Tours
2020-06-04 21:42:30 +00:00
- SCCs
- BCCs
2020-06-17 22:18:07 +00:00
</module-excerpt>
2020-06-04 14:20:28 +00:00
Note: all except the third have not appeared on a recent USACO contest.
*Some problems sourced from [here](http://codeforces.com/blog/entry/54526?#comment-385354).*
## Eulerian Tours
Has not appeared on a recent USACO contest.
2020-06-04 21:42:30 +00:00
### Standard
- [Mail Delivery](https://cses.fi/problemset/task/1691)
- Undirected Euler Tour
- [Teleporters](https://cses.fi/problemset/task/1693)
- Directed Euler Tour
2020-06-04 14:20:28 +00:00
### Tutorial
2020-06-04 21:42:30 +00:00
- CPH (19, Path & Circuits)
2020-06-04 14:20:28 +00:00
### Problems
2020-06-04 21:42:30 +00:00
- [Matching Substrings](https://csacademy.com/contest/archive/task/matching-substrings/) [](87)
2020-06-04 14:20:28 +00:00
## Strongly Connected Components
2020-06-04 21:42:30 +00:00
### Standard
- [CSES Planets & Kingdoms](https://cses.fi/problemset/task/1683)
- find SCCs
- [Giant Pizza](https://cses.fi/problemset/task/1684)
- 2SAT
2020-06-04 14:20:28 +00:00
### Tutorial
2020-06-04 21:42:30 +00:00
- Wikipedia
- [Tarjan](https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm)
- [Kosaraju](https://en.wikipedia.org/wiki/Kosaraju%27s_algorithm)
2020-06-04 14:20:28 +00:00
- CPH (17, Strong Connectivity)
2020-06-04 21:42:30 +00:00
- [CPC.7](https://github.com/SuprDewd/T-414-AFLV/tree/master/07_graphs_1)
- [CF 2-SAT](http://codeforces.com/blog/entry/16205)
2020-06-04 14:20:28 +00:00
### Problems
2020-06-04 21:42:30 +00:00
- [Coin Collector](https://cses.fi/problemset/task/1686)
- DP on SCCs
2020-06-04 14:20:28 +00:00
- [USACO Old Gold: Grass](http://www.usaco.org/index.php?page=viewproblem2&cpid=516)
- [Proving Equivalences](https://open.kattis.com/problems/equivalences) [](78)
- [Festival](https://szkopul.edu.pl/problemset/problem/p9uJo01RR9ouMLLAYroFuQ-7/site/?key=statement) [](173)
## Biconnected Components
Related topics include
- Articulation Points
- Bridges
- Block-Cut Tree
### Tutorial
- [GeeksforGeeks](http://www.geeksforgeeks.org/articulation-points-or-cut-vertices-in-a-graph/)
- [Wikipedia](https://en.wikipedia.org/wiki/Biconnected_component)
- [CF DFS Tree + Bridges](https://codeforces.com/blog/entry/68138)
### Problems
2020-06-04 21:42:30 +00:00
- [CSES Forbidden Cities](https://cses.fi/problemset/task/1705)
- compute block-cut tree
2020-06-04 14:20:28 +00:00
- [USACO Plat: Push a Box](http://www.usaco.org/index.php?page=viewproblem2&cpid=769)
- [Blockade](https://szkopul.edu.pl/problemset/problem/eDt8w290owtatmCjad0O0ywk/site/?key=statement)
- [POLICIJA](http://wcipeg.com/problem/coi06p2)
- [One-Way Streets](https://csacademy.com/contest/archive/task/one-way-streets/)
- [Investment](https://dmoj.ca/problem/tle17c1p6)