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/3_Bronze/Intro_Graphs.md
2020-06-17 15:18:07 -07:00

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

Trees?

USACO Bronze Problems

(add some more)