Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| courses:cs211:winter2012:journals:virginia:chapter3 [2012/02/16 02:53] – [Section 1: Basic Definitions and Applications] lovellv | courses:cs211:winter2012:journals:virginia:chapter3 [2012/02/16 03:06] (current) – lovellv | ||
|---|---|---|---|
| Line 52: | Line 52: | ||
| The **strong component** containing s in a directed graph is the set of all v such that s and v are mutually reachable. | The **strong component** containing s in a directed graph is the set of all v such that s and v are mutually reachable. | ||
| - | Readability: | + | Readability: |
| + | |||
| + | ===== Section 6: Directed Acyclic Graphs and Topological Orderings ===== | ||
| + | |||
| + | A special type of directed graph that contains no cycles is a **directed acyclic graph** (DAG). | ||
| + | |||
| + | In fact, every DAG does have a topological ordering. We can find it by finding a node with no incoming edges, ordering it next in our topological ordering, deleting it from our graph, and repeating until we have added every node. This algorithm has O(m+n) run time. (p 103) | ||
| + | |||
| + | Readability: | ||
| + | |||
