Professional Documents
Culture Documents
_
`
_
`
_
`
_
`
_
`
Algorithm 1.2
Input-
Specialized 1.3
Strategy-
Specialized 1.4
Sequence
Algorithm 2.1
Graph
Algorithm
Edge Comparison
Based 3.2
_
`
_
`
_
`
Input-
Specialized 1.3
Graph
Algorithm 3.1
Edge Comparison
Based
Structure Based 3.3
All Pairs
Shortest
Path 3.4
Maximum
Flow 3.5
Minimum
Spanning
Tree 3.6
Single Source
Shortest
_
`
_
`
_
`
_
`
_
`
_
`
Input-
Specialized 1.3
Graph
Algorithm 3.1
Edge Comparison
Based 3.2
Structure Based
Topological
Sort 3.19
Breadth First
Search 3.19
Depth First
Search 3.5.1
A structure based graph algorithm is a graph algorithm (3.1) which
operates strictly on the structural components of the graph. No edge
or vertex property maps are required, just the sets of vertices and edges
themselves.
There is one important point to be made. The restriction that no property
maps are needed only applies to the input. Algorithms for computing a
topological sorting (3.19) do not need any semantic information about
a graph, but do need to create a vertex property map to specify their
output.
Renement of: Graph Algorithm (3.1)
3.4. All Pairs Shortest Path Algorithm
Johnson 3.4.1
_
`
_
`
Graph
Algorithm 3.1
Edge Comparison
Based 3.2
All Pairs
Shortest
Path
Maximum
Flow 3.5
Minimum
Spanning
Tree 3.6
Single Source
Shortest
Path 3.7
Floyd-Warshall 3.4.2
_
`
An all pairs shortest path algorithm is any algorithm which calculates the
shortest path between all pairs of vertices in a given graph. A shortest
path is dened in terms of some edge property map, whose range has a
well dened ordering and summation operation. For example, if the edges
are given weights with an edge property map whose range is the integers,
then a shortest path is simply the path between two vertices where the
sum of weights for the edges used is smallest.
Calculating all such paths and their weights requires both an input graph,
and an edge property map. Therefore, such algorithms are a renement
of edge comparison based algorithms (3.2).
The problem of nding the shortest path from one vertex to all other
vertices is similar, but usually solved dierently, and is referred to here as
single source shortest path (3.7).
Renement of: Edge Comparison Based (3.2)
3.5. Maximum Flow Algorithm
Algorithm 1.8
_
`
_
`
_
`
_
`
_
`
_
`
Graph
Algorithm 3.1
Edge Comparison
Based 3.2
All Pairs
Shortest
Path 3.4
Maximum
Flow
Minimum
Spanning
Tree 3.6
Single Source
Shortest
Path 3.7
Edmonds Karp 3.5.1
Iterative
_
`
_
`
_
`
_
`
Graph
Algorithm 3.1
Edge Comparison
Based 3.2
All Pairs
Shortest
Path 3.4
Maximum
Flow 3.5
Minimum
Spanning
Tree
Single Source
Shortest
Path 3.7
Prims
Algorithm 3.6.1
Kruskals
_
`
_
`
_
`
_
`
Graph
Algorithm 3.1
Edge Comparison
Based 3.2
All Pairs
Shortest
Path 3.4
Maximum
Flow 3.5
Minimum
Spanning
Tree 3.6
Single Source
Shortest
Path
Dijkstras
Algorithm 2.6.1
Bellman-Ford
_
`