Jump to content

Widest path problem: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Adding local short description: "Math problem in graph algorithms", overriding Wikidata description "problem of maximizing the weight of the minimum-weight edge in the path between two vertices" (Shortdesc helper)
 
(25 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{Short description|Math problem in graph algorithms}}
{{Short description|Path-finding using high-weight graph edges}}
{{good article}}
{{good article}}
[[File:CPT-Graphs-undirected-weighted.svg|thumb|upright=1.2|In this graph, the widest path from Maldon to Feering has bandwidth 29, and passes through Clacton, Tiptree, Harwich, and Blaxhall.]]
[[File:CPT-Graphs-undirected-weighted.svg|thumb|upright=1.2|In this graph, the widest path from Maldon to Feering has bandwidth 29, and passes through Clacton, Tiptree, Harwich, and Blaxhall.]]
In [[graph algorithm]]s, the '''widest path problem''' is the problem of finding a [[path (graph theory)|path]] between two designated [[vertex (graph theory)|vertices]] in a [[weighted graph]], maximizing the weight of the minimum-weight edge in the path. The widest path problem is also known as the '''maximum capacity path problem'''. It is possible to adapt most [[shortest path]] algorithms to compute widest paths, by modifying them to use the bottleneck distance instead of path length.<ref>{{citation|title=The maximum capacity through a network|first=Maurice|last=Pollack|journal=[[Operations Research (journal)|Operations Research]]|volume=8|issue=5|year=1960|pages=733–736|jstor= 167387|doi=10.1287/opre.8.5.733|doi-access=free}}</ref> However, in many cases even faster algorithms are possible.
In [[graph algorithm]]s, the '''widest path problem''' is the problem of finding a [[path (graph theory)|path]] between two designated [[vertex (graph theory)|vertices]] in a [[weighted graph]], maximizing the weight of the minimum-weight edge in the path. The widest path problem is also known as the '''maximum capacity path problem'''. It is possible to adapt most [[shortest path]] algorithms to compute widest paths, by modifying them to use the bottleneck distance instead of path length.<ref>{{citation|title=The maximum capacity through a network|first=Maurice|last=Pollack|journal=[[Operations Research (journal)|Operations Research]]|volume=8|issue=5|year=1960|pages=733–736|jstor= 167387|doi=10.1287/opre.8.5.733|doi-access=free}}</ref> However, in many cases even faster algorithms are possible.


For instance, in a graph that represents connections between [[Router (computing)|router]]s in the [[Internet]], where the weight of an edge represents the [[bandwidth (computing)|bandwidth]] of a connection between two routers, the widest path problem is the problem of finding an end-to-end path between two Internet nodes that has the maximum possible bandwidth.<ref>{{citation|contribution=Multicast routing of hierarchical data|last=Shacham|first=N.|title=IEEE International Conference on Communications (ICC '92)|year=1992|pages=1217–1221|volume=3|doi=10.1109/ICC.1992.268047|isbn=978-0-7803-0599-1|hdl=2060/19990017646|hdl-access=free}}; {{citation|contribution=Bandwidth-delay based routing algorithms|first1=Zheng|last1=Wang|last2=Crowcroft|first2=J.|title=IEEE Global Telecommunications Conference (GLOBECOM '95)|year=1995|pages=2129–2133|volume=3|doi=10.1109/GLOCOM.1995.502780|isbn=978-0-7803-2509-8}}</ref> The smallest edge weight on this path is known as the capacity or bandwidth of the path. As well as its applications in network routing, the widest path problem is also an important component of the [[Schulze method]] for deciding the winner of a multiway election,<ref name="Schulze">{{citation
For instance, in a graph that represents connections between [[Router (computing)|router]]s in the [[Internet]], where the weight of an edge represents the [[bandwidth (computing)|bandwidth]] of a connection between two routers, the widest path problem is the problem of finding an end-to-end path between two Internet nodes that has the maximum possible bandwidth.<ref>{{citation|contribution=Multicast routing of hierarchical data|last=Shacham|first=N.|title=IEEE International Conference on Communications (ICC '92)|year=1992|pages=1217–1221|volume=3|doi=10.1109/ICC.1992.268047|isbn=978-0-7803-0599-1|hdl=2060/19990017646|s2cid=60475077 |hdl-access=free}}; {{citation|contribution=Bandwidth-delay based routing algorithms|first1=Zheng|last1=Wang|last2=Crowcroft|first2=J.|title=IEEE Global Telecommunications Conference (GLOBECOM '95)|year=1995|pages=2129–2133|volume=3|doi=10.1109/GLOCOM.1995.502780|isbn=978-0-7803-2509-8|s2cid=9117583 }}</ref> The smallest edge weight on this path is known as the capacity or bandwidth of the path. As well as its applications in network routing, the widest path problem is also an important component of the [[Schulze method]] for deciding the winner of a multiway election,<ref name="Schulze">{{citation
| last = Schulze | first = Markus
| last = Schulze | first = Markus
| doi = 10.1007/s00355-010-0475-4
| doi = 10.1007/s00355-010-0475-4
Line 12: Line 12:
| title = A new monotonic, clone-independent, reversal symmetric, and Condorcet-consistent single-winner election method
| title = A new monotonic, clone-independent, reversal symmetric, and Condorcet-consistent single-winner election method
| volume = 36
| volume = 36
| year = 2011| s2cid = 1927244
| year = 2011}}</ref> and has been applied to [[digital compositing]],<ref name="fga"/> [[Metabolic network modelling#Metabolic network simulation|metabolic pathway analysis]],<ref name="ulh09">{{citation
}}</ref> and has been applied to [[digital compositing]],<ref name="fga"/> [[Metabolic network modelling#Metabolic network simulation|metabolic pathway analysis]],<ref name="ulh09">{{citation
| last1 = Ullah | first1 = E.
| last1 = Ullah | first1 = E.
| last2 = Lee | first2 = Kyongbum
| last2 = Lee | first2 = Kyongbum
Line 34: Line 35:


==Undirected graphs==
==Undirected graphs==
In an [[undirected graph]], a widest path may be found as the path between the two vertices in the [[minimum spanning tree|maximum spanning tree]] of the graph, and a minimax path may be found as the path between the two vertices in the minimum spanning tree.<ref>{{citation|title=The maximum capacity route problem|first=T. C.|last=Hu|journal=[[Operations Research (journal)|Operations Research]]|volume=9|issue=6|year=1961|pages=898–900|jstor=167055|doi=10.1287/opre.9.6.898|doi-access=free}}</ref><ref name="punnen"/><ref>{{citation
In an [[undirected graph]], a widest path may be found as the path between the two vertices in the [[minimum spanning tree|maximum spanning tree]] of the graph, and a minimax path may be found as the path between the two vertices in the minimum spanning tree.<ref>{{citation|title=The maximum capacity route problem|first=T. C.|last=Hu|author-link=T. C. Hu|journal=[[Operations Research (journal)|Operations Research]]|volume=9|issue=6|year=1961|pages=898–900|jstor=167055|doi=10.1287/opre.9.6.898|doi-access=free}}</ref><ref name="punnen"/><ref>{{citation
| last1 = Malpani | first1 = Navneet
| last1 = Malpani | first1 = Navneet
| last2 = Chen | first2 = Jianer
| last2 = Chen | first2 = Jianer
Line 44: Line 45:
| title = A note on practical construction of maximum bandwidth paths
| title = A note on practical construction of maximum bandwidth paths
| volume = 83
| volume = 83
| year = 2002}}</ref> It follows immediately from this equivalence that all pairs widest paths in an <math>n</math>-vertex undirected graph can be computed in time <math>O(n^2)</math>.<ref>{{citation
| year = 2002}}</ref>
| last1 = Shapira | first1 = Asaf
| last2 = Yuster | first2 = Raphael
| last3 = Zwick | first3 = Uri | author3-link = Uri Zwick
| doi = 10.1007/s00453-009-9328-x
| issue = 4
| journal = [[Algorithmica]]
| mr = 2771114
| pages = 621–633
| title = All-pairs bottleneck paths in vertex weighted graphs
| volume = 59
| year = 2011}}; see claim 4.1, p. 630</ref>


In any graph, directed or undirected, there is a straightforward algorithm for finding a widest path once the weight of its minimum-weight edge is known: simply delete all smaller edges and search for any path among the remaining edges using [[breadth first search]] or [[depth first search]]. Based on this test, there also exists a [[linear time]] [[algorithm]] for finding a widest {{math|''s''-''t''}} path in an undirected graph, that does not use the maximum spanning tree. The main idea of the algorithm is to apply the linear-time path-finding algorithm to the [[median]] edge weight in the graph, and then either to delete all smaller edges or contract all larger edges according to whether a path does or does not exist, and recurse in the resulting smaller graph.<ref name="punnen">{{citation|title=A linear time algorithm for the maximum capacity path problem|first=Abraham P.|last=Punnen|journal=[[European Journal of Operational Research]]|volume=53|issue=3|year=1991|pages=402–404|doi=10.1016/0377-2217(91)90073-5}}</ref><ref>{{citation|first=P. M.|last=Camerini|year=1978|title=The min-max spanning tree problem and some extensions|journal=[[Information Processing Letters]]|volume=7|issue=1|pages=10–14|doi=10.1016/0020-0190(78)90030-3}}</ref><ref name="kp">{{citation|title=On the bottleneck shortest path problem|first1=Volker|last1=Kaibel|first2=Matthias A. F.|last2=Peinhardt|series=ZIB-Report 06-22|year=2006|publisher=Konrad-Zuse-Zentrum für Informationstechnik Berlin|url= https://opus4.kobv.de/opus4-zib/files/916/ZR-06-22.pdf}}</ref>
In any graph, directed or undirected, there is a straightforward algorithm for finding a widest path once the weight of its minimum-weight edge is known: simply delete all smaller edges and search for any path among the remaining edges using [[breadth-first search]] or [[depth-first search]]. Based on this test, there also exists a [[linear time]] [[algorithm]] for finding a widest {{math|''s''-''t''}} path in an undirected graph, that does not use the maximum spanning tree. The main idea of the algorithm is to apply the linear-time path-finding algorithm to the [[median]] edge weight in the graph, and then either to delete all smaller edges or contract all larger edges according to whether a path does or does not exist, and recurse in the resulting smaller graph.<ref name="punnen">{{citation|title=A linear time algorithm for the maximum capacity path problem|first=Abraham P.|last=Punnen|journal=[[European Journal of Operational Research]]|volume=53|issue=3|year=1991|pages=402–404|doi=10.1016/0377-2217(91)90073-5}}</ref><ref>{{citation|first=P. M.|last=Camerini|year=1978|title=The min-max spanning tree problem and some extensions|journal=[[Information Processing Letters]]|volume=7|issue=1|pages=10–14|doi=10.1016/0020-0190(78)90030-3}}</ref><ref name="kp">{{citation|title=On the bottleneck shortest path problem|first1=Volker|last1=Kaibel|first2=Matthias A. F.|last2=Peinhardt|series=ZIB-Report 06-22|year=2006|publisher=Konrad-Zuse-Zentrum für Informationstechnik Berlin|url= https://opus4.kobv.de/opus4-zib/files/916/ZR-06-22.pdf}}</ref>


{{harvtxt|Fernández|Garfinkel|Arbiol|1998}} use undirected bottleneck shortest paths in order to form [[Digital compositing|composite]] [[Aerial photography|aerial photographs]] that combine multiple images of overlapping areas. In the subproblem to which the widest path problem applies, two images have already been [[Image registration|transformed into a common coordinate system]]; the remaining task is to select a ''seam'', a curve that passes through the region of overlap and divides one of the two images from the other. Pixels on one side of the seam will be copied from one of the images, and pixels on the other side of the seam will be copied from the other image. Unlike other compositing methods that average pixels from both images, this produces a valid photographic image of every part of the region being photographed. They weight the edges of a [[grid graph]] by a numeric estimate of how visually apparent a seam across that edge would be, and find a bottleneck shortest path for these weights. Using this path as the seam, rather than a more conventional shortest path, causes their system to find a seam that is difficult to discern at all of its points, rather than allowing it to trade off greater visibility in one part of the image for lesser visibility elsewhere.<ref name="fga">{{citation
{{harvtxt|Fernández|Garfinkel|Arbiol|1998}} use undirected bottleneck shortest paths in order to form [[Digital compositing|composite]] [[Aerial photography|aerial photographs]] that combine multiple images of overlapping areas. In the subproblem to which the widest path problem applies, two images have already been [[Image registration|transformed into a common coordinate system]]; the remaining task is to select a ''seam'', a curve that passes through the region of overlap and divides one of the two images from the other. Pixels on one side of the seam will be copied from one of the images, and pixels on the other side of the seam will be copied from the other image. Unlike other compositing methods that average pixels from both images, this produces a valid photographic image of every part of the region being photographed. They weigh the edges of a [[grid graph]] by a numeric estimate of how visually apparent a seam across that edge would be, and find a bottleneck shortest path for these weights. Using this path as the seam, rather than a more conventional shortest path, causes their system to find a seam that is difficult to discern at all of its points, rather than allowing it to trade off greater visibility in one part of the image for lesser visibility elsewhere.<ref name="fga">{{citation
| last1 = Fernández | first1 = Elena | author1-link = Elena Fernández
| last1 = Fernández | first1 = Elena | author1-link = Elena Fernández
| last2 = Garfinkel | first2 = Robert
| last2 = Garfinkel | first2 = Robert
Line 62: Line 74:


A solution to the minimax path problem between the two opposite corners of a [[grid graph]] can be used to find the [[Fréchet distance|weak Fréchet distance]] between two [[polygonal chain]]s. Here, each grid graph vertex represents a pair of line segments, one from each chain, and the weight of an edge represents the Fréchet distance needed to pass from one pair of segments to another.<ref>{{citation
A solution to the minimax path problem between the two opposite corners of a [[grid graph]] can be used to find the [[Fréchet distance|weak Fréchet distance]] between two [[polygonal chain]]s. Here, each grid graph vertex represents a pair of line segments, one from each chain, and the weight of an edge represents the Fréchet distance needed to pass from one pair of segments to another.<ref>{{citation
| last1 = Alt | first1 = Helmut
| last1 = Alt | first1 = Helmut | author1-link = Helmut Alt
| last2 = Godau | first2 = Michael
| last2 = Godau | first2 = Michael
| doi = 10.1142/S0218195995000064
| doi = 10.1142/S0218195995000064
Line 87: Line 99:


===All pairs===
===All pairs===
The all-pairs widest path problem has applications in the [[Schulze method]] for choosing a winner in multiway [[election]]s in which voters rank the candidates in [[Ranked voting systems|preference order]]. The Schulze method constructs a [[tournament (graph theory)|complete directed graph]] in which the vertices represent the candidates and every two vertices are connected by an edge. Each edge is directed from the winner to the loser of a pairwise contest between the two candidates it connects, and is labeled with the margin of victory of that contest. Then the method computes widest paths between all pairs of vertices, and the winner is the candidate whose vertex has wider paths to each opponent than vice versa.<ref name="Schulze"/> The results of an election using this method are consistent with the [[Condorcet method]] – a candidate who wins all pairwise contests automatically wins the whole election – but it generally allows a winner to be selected, even in situations where the Concorcet method itself fails.<ref>More specifically, the only kind of tie that the Schulze method fails to break is between two candidates who have equally wide paths to each other.</ref> The Schulze method has been used by several organizations including the [[Wikimedia Foundation]].<ref name=Wikimedia>See Jesse Plamondon-Willard, [[mailarchive:foundation-l/2008-May/043134.html|Board election to use preference voting]], May 2008; Mark Ryan, [[mailarchive:foundation-l/2008-June/044361.html|2008 Wikimedia Board Election results]], June 2008; [[m:Board elections/2008/Results/en|2008 Board Elections]], June 2008; and [[m:Board elections/2009/Results/en|2009 Board Elections]], August 2009.</ref>
The all-pairs widest path problem has applications in the [[Schulze method]] for choosing a winner in multiway [[election]]s in which voters rank the candidates in [[Ranked voting systems|preference order]]. The Schulze method constructs a [[tournament (graph theory)|complete directed graph]] in which the vertices represent the candidates and every two vertices are connected by an edge. Each edge is directed from the winner to the loser of a pairwise contest between the two candidates it connects, and is labeled with the margin of victory of that contest. Then the method computes widest paths between all pairs of vertices, and the winner is the candidate whose vertex has wider paths to each opponent than vice versa.<ref name="Schulze"/> The results of an election using this method are consistent with the [[Condorcet method]] – a candidate who wins all pairwise contests automatically wins the whole election – but it generally allows a winner to be selected, even in situations where the Condorcet method itself fails.<ref>More specifically, the only kind of tie that the Schulze method fails to break is between two candidates who have equally wide paths to each other.</ref> The Schulze method has been used by several organizations including the [[Wikimedia Foundation]].<ref name=Wikimedia>See Jesse Plamondon-Willard, [[mailarchive:foundation-l/2008-May/043134.html|Board election to use preference voting]], May 2008; Mark Ryan, [[mailarchive:foundation-l/2008-June/044361.html|2008 Wikimedia Board Election results]], June 2008; [[m:Board elections/2008/Results/en|2008 Board Elections]], June 2008; and [[m:Board elections/2009/Results/en|2009 Board Elections]], August 2009.</ref>


To compute the widest path widths for all pairs of nodes in a [[Dense graph|dense]] directed graph, such as the ones that arise in the voting application, the [[Asymptotic computational complexity|asymptotically]] fastest known approach takes time {{math|''O''(''n''<sup>(3+ω)/2</sup>)}} where ω is the exponent for [[fast matrix multiplication]]. Using the best known algorithms for matrix multiplication, this time bound becomes {{math|''O''(''n''<sup>2.688</sup>)}}.<ref>{{citation
To compute the widest path widths for all pairs of nodes in a [[Dense graph|dense]] directed graph, such as the ones that arise in the voting application, the [[Asymptotic computational complexity|asymptotically]] fastest known approach takes time {{math|''O''(''n''<sup>(3+ω)/2</sup>)}} where ω is the exponent for [[fast matrix multiplication]]. Using the best known algorithms for matrix multiplication, this time bound becomes {{math|''O''(''n''<sup>2.688</sup>)}}.<ref>{{citation
Line 107: Line 119:
| publisher = ACM
| publisher = ACM
| title = Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC '07)
| title = Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC '07)
| year = 2007| title-link = Symposium on Theory of Computing | isbn = 9781595936318 | citeseerx = 10.1.1.164.9808|series = <!--Do no add, it is wrong --> }} and Chapter 5 of {{citation|title=Efficient Algorithms for Path Problems in Weighted Graphs|first=Virginia|last=Vassilevska|series=Ph.D. thesis, Report CMU-CS-08-147|year=2008|url=https://www.cs.cmu.edu/afs/cs/Web/People/virgi/thesis.pdf|publisher=Carnegie Mellon University School of Computer Science}}</ref> Instead, the reference implementation for the Schulze method uses a modified version of the simpler [[Floyd–Warshall algorithm]], which takes {{math|''O''(''n''<sup>3</sup>)}} time.<ref name="Schulze"/> For [[sparse graph]]s, it may be more efficient to repeatedly apply a single-source widest path algorithm.
| year = 2007| title-link = Symposium on Theory of Computing | isbn = 9781595936318 | citeseerx = 10.1.1.164.9808|series = <!--Do no add, it is wrong --> | s2cid = 9353065 }} and Chapter 5 of {{citation|title=Efficient Algorithms for Path Problems in Weighted Graphs|first=Virginia|last=Vassilevska|series=Ph.D. thesis, Report CMU-CS-08-147|year=2008|url=https://www.cs.cmu.edu/afs/cs/Web/People/virgi/thesis.pdf|publisher=Carnegie Mellon University School of Computer Science}}</ref> Instead, the reference implementation for the Schulze method uses a modified version of the simpler [[Floyd–Warshall algorithm]], which takes {{math|''O''(''n''<sup>3</sup>)}} time.<ref name="Schulze"/> For [[sparse graph]]s, it may be more efficient to repeatedly apply a single-source widest path algorithm.


===Single source===
===Single source===
Line 137: Line 149:
| year = 2002| title-link = Symposium on Foundations of Computer Science
| year = 2002| title-link = Symposium on Foundations of Computer Science
| isbn = 978-0-7695-1822-0
| isbn = 978-0-7695-1822-0
| s2cid = 5245628
}}.</ref>
}}.</ref>


Line 173: Line 186:


==References==
==References==
{{reflist|30em}}
{{reflist}}


[[Category:Network theory]]
[[Category:Network theory]]

Latest revision as of 19:58, 12 October 2024

In this graph, the widest path from Maldon to Feering has bandwidth 29, and passes through Clacton, Tiptree, Harwich, and Blaxhall.

In graph algorithms, the widest path problem is the problem of finding a path between two designated vertices in a weighted graph, maximizing the weight of the minimum-weight edge in the path. The widest path problem is also known as the maximum capacity path problem. It is possible to adapt most shortest path algorithms to compute widest paths, by modifying them to use the bottleneck distance instead of path length.[1] However, in many cases even faster algorithms are possible.

For instance, in a graph that represents connections between routers in the Internet, where the weight of an edge represents the bandwidth of a connection between two routers, the widest path problem is the problem of finding an end-to-end path between two Internet nodes that has the maximum possible bandwidth.[2] The smallest edge weight on this path is known as the capacity or bandwidth of the path. As well as its applications in network routing, the widest path problem is also an important component of the Schulze method for deciding the winner of a multiway election,[3] and has been applied to digital compositing,[4] metabolic pathway analysis,[5] and the computation of maximum flows.[6]

A closely related problem, the minimax path problem or bottleneck shortest path problem asks for the path that minimizes the maximum weight of any of its edges. It has applications that include transportation planning.[7] Any algorithm for the widest path problem can be transformed into an algorithm for the minimax path problem, or vice versa, by reversing the sense of all the weight comparisons performed by the algorithm, or equivalently by replacing every edge weight by its negation.

Undirected graphs

[edit]

In an undirected graph, a widest path may be found as the path between the two vertices in the maximum spanning tree of the graph, and a minimax path may be found as the path between the two vertices in the minimum spanning tree.[8][9][10] It follows immediately from this equivalence that all pairs widest paths in an -vertex undirected graph can be computed in time .[11]

In any graph, directed or undirected, there is a straightforward algorithm for finding a widest path once the weight of its minimum-weight edge is known: simply delete all smaller edges and search for any path among the remaining edges using breadth-first search or depth-first search. Based on this test, there also exists a linear time algorithm for finding a widest s-t path in an undirected graph, that does not use the maximum spanning tree. The main idea of the algorithm is to apply the linear-time path-finding algorithm to the median edge weight in the graph, and then either to delete all smaller edges or contract all larger edges according to whether a path does or does not exist, and recurse in the resulting smaller graph.[9][12][13]

Fernández, Garfinkel & Arbiol (1998) use undirected bottleneck shortest paths in order to form composite aerial photographs that combine multiple images of overlapping areas. In the subproblem to which the widest path problem applies, two images have already been transformed into a common coordinate system; the remaining task is to select a seam, a curve that passes through the region of overlap and divides one of the two images from the other. Pixels on one side of the seam will be copied from one of the images, and pixels on the other side of the seam will be copied from the other image. Unlike other compositing methods that average pixels from both images, this produces a valid photographic image of every part of the region being photographed. They weigh the edges of a grid graph by a numeric estimate of how visually apparent a seam across that edge would be, and find a bottleneck shortest path for these weights. Using this path as the seam, rather than a more conventional shortest path, causes their system to find a seam that is difficult to discern at all of its points, rather than allowing it to trade off greater visibility in one part of the image for lesser visibility elsewhere.[4]

A solution to the minimax path problem between the two opposite corners of a grid graph can be used to find the weak Fréchet distance between two polygonal chains. Here, each grid graph vertex represents a pair of line segments, one from each chain, and the weight of an edge represents the Fréchet distance needed to pass from one pair of segments to another.[14]

If all edge weights of an undirected graph are positive, then the minimax distances between pairs of points (the maximum edge weights of minimax paths) form an ultrametric; conversely every finite ultrametric space comes from minimax distances in this way.[15] A data structure constructed from the minimum spanning tree allows the minimax distance between any pair of vertices to be queried in constant time per query, using lowest common ancestor queries in a Cartesian tree. The root of the Cartesian tree represents the heaviest minimum spanning tree edge, and the children of the root are Cartesian trees recursively constructed from the subtrees of the minimum spanning tree formed by removing the heaviest edge. The leaves of the Cartesian tree represent the vertices of the input graph, and the minimax distance between two vertices equals the weight of the Cartesian tree node that is their lowest common ancestor. Once the minimum spanning tree edges have been sorted, this Cartesian tree can be constructed in linear time.[16]

Directed graphs

[edit]

In directed graphs, the maximum spanning tree solution cannot be used. Instead, several different algorithms are known; the choice of which algorithm to use depends on whether a start or destination vertex for the path is fixed, or whether paths for many start or destination vertices must be found simultaneously.

All pairs

[edit]

The all-pairs widest path problem has applications in the Schulze method for choosing a winner in multiway elections in which voters rank the candidates in preference order. The Schulze method constructs a complete directed graph in which the vertices represent the candidates and every two vertices are connected by an edge. Each edge is directed from the winner to the loser of a pairwise contest between the two candidates it connects, and is labeled with the margin of victory of that contest. Then the method computes widest paths between all pairs of vertices, and the winner is the candidate whose vertex has wider paths to each opponent than vice versa.[3] The results of an election using this method are consistent with the Condorcet method – a candidate who wins all pairwise contests automatically wins the whole election – but it generally allows a winner to be selected, even in situations where the Condorcet method itself fails.[17] The Schulze method has been used by several organizations including the Wikimedia Foundation.[18]

To compute the widest path widths for all pairs of nodes in a dense directed graph, such as the ones that arise in the voting application, the asymptotically fastest known approach takes time O(n(3+ω)/2) where ω is the exponent for fast matrix multiplication. Using the best known algorithms for matrix multiplication, this time bound becomes O(n2.688).[19] Instead, the reference implementation for the Schulze method uses a modified version of the simpler Floyd–Warshall algorithm, which takes O(n3) time.[3] For sparse graphs, it may be more efficient to repeatedly apply a single-source widest path algorithm.

Single source

[edit]

If the edges are sorted by their weights, then a modified version of Dijkstra's algorithm can compute the bottlenecks between a designated start vertex and every other vertex in the graph, in linear time. The key idea behind the speedup over a conventional version of Dijkstra's algorithm is that the sequence of bottleneck distances to each vertex, in the order that the vertices are considered by this algorithm, is a monotonic subsequence of the sorted sequence of edge weights; therefore, the priority queue of Dijkstra's algorithm can be implemented as a bucket queue: an array indexed by the numbers from 1 to m (the number of edges in the graph), where array cell i contains the vertices whose bottleneck distance is the weight of the edge with position i in the sorted order. This method allows the widest path problem to be solved as quickly as sorting; for instance, if the edge weights are represented as integers, then the time bounds for integer sorting a list of m integers would apply also to this problem.[13]

Single source and single destination

[edit]

Berman & Handler (1987) suggest that service vehicles and emergency vehicles should use minimax paths when returning from a service call to their base. In this application, the time to return is less important than the response time if another service call occurs while the vehicle is in the process of returning. By using a minimax path, where the weight of an edge is the maximum travel time from a point on the edge to the farthest possible service call, one can plan a route that minimizes the maximum possible delay between receipt of a service call and arrival of a responding vehicle.[7] Ullah, Lee & Hassoun (2009) use maximin paths to model the dominant reaction chains in metabolic networks; in their model, the weight of an edge is the free energy of the metabolic reaction represented by the edge.[5]

Another application of widest paths arises in the Ford–Fulkerson algorithm for the maximum flow problem. Repeatedly augmenting a flow along a maximum capacity path in the residual network of the flow leads to a small bound, O(m log U), on the number of augmentations needed to find a maximum flow; here, the edge capacities are assumed to be integers that are at most U. However, this analysis does not depend on finding a path that has the exact maximum of capacity; any path whose capacity is within a constant factor of the maximum suffices. Combining this approximation idea with the shortest path augmentation method of the Edmonds–Karp algorithm leads to a maximum flow algorithm with running time O(mn log U).[6]

It is possible to find maximum-capacity paths and minimax paths with a single source and single destination very efficiently even in models of computation that allow only comparisons of the input graph's edge weights and not arithmetic on them.[13][20] The algorithm maintains a set S of edges that are known to contain the bottleneck edge of the optimal path; initially, S is just the set of all m edges of the graph. At each iteration of the algorithm, it splits S into an ordered sequence of subsets S1, S2, ... of approximately equal size; the number of subsets in this partition is chosen in such a way that all of the split points between subsets can be found by repeated median-finding in time O(m). The algorithm then reweights each edge of the graph by the index of the subset containing the edge, and uses the modified Dijkstra algorithm on the reweighted graph; based on the results of this computation, it can determine in linear time which of the subsets contains the bottleneck edge weight. It then replaces S by the subset Si that it has determined to contain the bottleneck weight, and starts the next iteration with this new set S. The number of subsets into which S can be split increases exponentially with each step, so the number of iterations is proportional to the iterated logarithm function, O(log*n), and the total time is O(m log*n).[20] In a model of computation where each edge weight is a machine integer, the use of repeated bisection in this algorithm can be replaced by a list-splitting technique of Han & Thorup (2002), allowing S to be split into O(m) smaller sets Si in a single step and leading to a linear overall time bound.[21]

Euclidean point sets

[edit]
The dark blue band separates pairs of Gaussian prime numbers whose minimax path length is 2 or more.

A variant of the minimax path problem has also been considered for sets of points in the Euclidean plane. As in the undirected graph problem, this Euclidean minimax path problem can be solved efficiently by finding a Euclidean minimum spanning tree: every path in the tree is a minimax path. However, the problem becomes more complicated when a path is desired that not only minimizes the hop length but also, among paths with the same hop length, minimizes or approximately minimizes the total length of the path. The solution can be approximated using geometric spanners.[22]

In number theory, the unsolved Gaussian moat problem asks whether or not minimax paths in the Gaussian prime numbers have bounded or unbounded minimax length. That is, does there exist a constant B such that, for every pair of points p and q in the infinite Euclidean point set defined by the Gaussian primes, the minimax path in the Gaussian primes between p and q has minimax edge length at most B?[23]

References

[edit]
  1. ^ Pollack, Maurice (1960), "The maximum capacity through a network", Operations Research, 8 (5): 733–736, doi:10.1287/opre.8.5.733, JSTOR 167387
  2. ^ Shacham, N. (1992), "Multicast routing of hierarchical data", IEEE International Conference on Communications (ICC '92), vol. 3, pp. 1217–1221, doi:10.1109/ICC.1992.268047, hdl:2060/19990017646, ISBN 978-0-7803-0599-1, S2CID 60475077; Wang, Zheng; Crowcroft, J. (1995), "Bandwidth-delay based routing algorithms", IEEE Global Telecommunications Conference (GLOBECOM '95), vol. 3, pp. 2129–2133, doi:10.1109/GLOCOM.1995.502780, ISBN 978-0-7803-2509-8, S2CID 9117583
  3. ^ a b c Schulze, Markus (2011), "A new monotonic, clone-independent, reversal symmetric, and Condorcet-consistent single-winner election method", Social Choice and Welfare, 36 (2): 267–303, doi:10.1007/s00355-010-0475-4, S2CID 1927244
  4. ^ a b Fernández, Elena; Garfinkel, Robert; Arbiol, Roman (1998), "Mosaicking of aerial photographic maps via seams defined by bottleneck shortest paths", Operations Research, 46 (3): 293–304, doi:10.1287/opre.46.3.293, JSTOR 222823
  5. ^ a b Ullah, E.; Lee, Kyongbum; Hassoun, S. (2009), "An algorithm for identifying dominant-edge metabolic pathways", IEEE/ACM International Conference on Computer-Aided Design (ICCAD 2009), pp. 144–150
  6. ^ a b Ahuja, Ravindra K.; Magnanti, Thomas L.; Orlin, James B. (1993), "7.3 Capacity Scaling Algorithm", Network Flows: Theory, Algorithms and Applications, Prentice Hall, pp. 210–212, ISBN 978-0-13-617549-0
  7. ^ a b Berman, Oded; Handler, Gabriel Y. (1987), "Optimal Minimax Path of a Single Service Unit on a Network to Nonservice Destinations", Transportation Science, 21 (2): 115–122, doi:10.1287/trsc.21.2.115
  8. ^ Hu, T. C. (1961), "The maximum capacity route problem", Operations Research, 9 (6): 898–900, doi:10.1287/opre.9.6.898, JSTOR 167055
  9. ^ a b Punnen, Abraham P. (1991), "A linear time algorithm for the maximum capacity path problem", European Journal of Operational Research, 53 (3): 402–404, doi:10.1016/0377-2217(91)90073-5
  10. ^ Malpani, Navneet; Chen, Jianer (2002), "A note on practical construction of maximum bandwidth paths", Information Processing Letters, 83 (3): 175–180, doi:10.1016/S0020-0190(01)00323-4, MR 1904226
  11. ^ Shapira, Asaf; Yuster, Raphael; Zwick, Uri (2011), "All-pairs bottleneck paths in vertex weighted graphs", Algorithmica, 59 (4): 621–633, doi:10.1007/s00453-009-9328-x, MR 2771114; see claim 4.1, p. 630
  12. ^ Camerini, P. M. (1978), "The min-max spanning tree problem and some extensions", Information Processing Letters, 7 (1): 10–14, doi:10.1016/0020-0190(78)90030-3
  13. ^ a b c Kaibel, Volker; Peinhardt, Matthias A. F. (2006), On the bottleneck shortest path problem (PDF), ZIB-Report 06-22, Konrad-Zuse-Zentrum für Informationstechnik Berlin
  14. ^ Alt, Helmut; Godau, Michael (1995), "Computing the Fréchet distance between two polygonal curves" (PDF), International Journal of Computational Geometry and Applications, 5 (1–2): 75–91, doi:10.1142/S0218195995000064.
  15. ^ Leclerc, Bruno (1981), "Description combinatoire des ultramétriques", Centre de Mathématique Sociale. École Pratique des Hautes Études. Mathématiques et Sciences Humaines (in French) (73): 5–37, 127, MR 0623034
  16. ^ Demaine, Erik D.; Landau, Gad M.; Weimann, Oren (2009), "On Cartesian trees and range minimum queries", Automata, Languages and Programming, 36th International Colloquium, ICALP 2009, Rhodes, Greece, July 5-12, 2009, Lecture Notes in Computer Science, vol. 5555, pp. 341–353, doi:10.1007/978-3-642-02927-1_29, hdl:1721.1/61963, ISBN 978-3-642-02926-4
  17. ^ More specifically, the only kind of tie that the Schulze method fails to break is between two candidates who have equally wide paths to each other.
  18. ^ See Jesse Plamondon-Willard, Board election to use preference voting, May 2008; Mark Ryan, 2008 Wikimedia Board Election results, June 2008; 2008 Board Elections, June 2008; and 2009 Board Elections, August 2009.
  19. ^ Duan, Ran; Pettie, Seth (2009), "Fast algorithms for (max, min)-matrix multiplication and bottleneck shortest paths", Proceedings of the 20th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA '09), pp. 384–391. For an earlier algorithm that also used fast matrix multiplication to speed up all pairs widest paths, see Vassilevska, Virginia; Williams, Ryan; Yuster, Raphael (2007), "All-pairs bottleneck paths for general graphs in truly sub-cubic time", Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC '07), New York: ACM, pp. 585–589, CiteSeerX 10.1.1.164.9808, doi:10.1145/1250790.1250876, ISBN 9781595936318, MR 2402484, S2CID 9353065 and Chapter 5 of Vassilevska, Virginia (2008), Efficient Algorithms for Path Problems in Weighted Graphs (PDF), Ph.D. thesis, Report CMU-CS-08-147, Carnegie Mellon University School of Computer Science
  20. ^ a b Gabow, Harold N.; Tarjan, Robert E. (1988), "Algorithms for two bottleneck optimization problems", Journal of Algorithms, 9 (3): 411–417, doi:10.1016/0196-6774(88)90031-4, MR 0955149
  21. ^ Han, Yijie; Thorup, M. (2002), "Integer sorting in O(nlog log n) expected time and linear space", Proc. 43rd Annual Symposium on Foundations of Computer Science (FOCS 2002), pp. 135–144, doi:10.1109/SFCS.2002.1181890, ISBN 978-0-7695-1822-0, S2CID 5245628.
  22. ^ Bose, Prosenjit; Maheshwari, Anil; Narasimhan, Giri; Smid, Michiel; Zeh, Norbert (2004), "Approximating geometric bottleneck shortest paths", Computational Geometry. Theory and Applications, 29 (3): 233–249, doi:10.1016/j.comgeo.2004.04.003, MR 2095376
  23. ^ Gethner, Ellen; Wagon, Stan; Wick, Brian (1998), "A stroll through the Gaussian primes", American Mathematical Monthly, 105 (4): 327–337, doi:10.2307/2589708, JSTOR 2589708, MR 1614871.