1.9 KiB
1.9 KiB
id | title | author |
---|---|---|
intro-graphs | Introduction to Graphs | Darren Yao, Benjamin Qi |
Graph theory is one of the most important topics at the Silver level and above, although some basic problems occasionally appear in Bronze.
Graphs can be used to represent many things, from images to wireless signals, but one of the simplest analogies is to a map. Consider a map with several cities and highways connecting the cities. Some problems relating to graphsare:
- If we have a map with some cities and roads, what's the shortest distance I have to travel to get from point A to point B?
- Consider a map of cities and roads. Is city A connected to city B? Consider a region to be a group of cities such that each city in the group can reach any other city in said group, but no other cities. How many regions are in this map, and which cities are in which region?
Both of these will be covered in Silver. For now, it suffices to learn how graphs are represented.
Tutorial
- Recommended
- CPH 11
- Intro to USACO 10.1 - 10.3
- CSAcademy Graph Intro
- CSAcademy Graph Representations
- Usually, adjacency lists are used.
- Other
Trees?
USACO Bronze Problems
(add some more)
- Tree
- Permutation
- General Graph