Chapter 9 (Graph algorithms) Flashcards
If a graph is not biconnected, the vertices whose removal would disconnect the graph are called ____
Articulation points
What is the running time of a topological sort?
O(|V|^2)
What is a DAG?
Directed acyclic graph
T/F Any connected graph, all of whose vertices have even degree, must have an Euler circuit
T
What is the main difference between Prim’s and Dijkstra’s algorithms?
The update rule
Max flow = ____
Min cut
T/F Prim’s algorithm is a greedy algorithm
T
When is a connected undirected graph considered to be biconnected?
When there is no vertex whose removal would disconnect the graph
Explain Prim’s algorithm
Choose any vertex, then choose the edge with the lowest cost from this vertex and add it to the tree. We then choose the least edge between vertices in the tree and those not in the tree and add it.
When is a directed graph considered weakly connected?
Its undirected representation is connected
What is a Euler Path?
Visits each edge exactly once
What is a graph with no cycles called?
Acyclic
How can you keep track of each vertex as it is visited in an unweighted shortest path problem?
Table
If a graph is acyclic, how can Dijkstra’s algorithm be improved?
Choosing vertices in topological order
T/F Dijkstra’s algorithm works with negative edges
F
In a maximum flow problem, what does Gr tell you?
How much more flow an edge can handle
T/F Prim’s and Dijkstra’s algorithm have the same running time
T
When is a directed graph considered strongly connected?
Path between all vertices