Shortest path problem ▪ Sale
Shortest path problem
(6, 4, 5, 1) and (6, 4, 3, 2, 1) are both paths between vertices 6 and 1.

In graph theory, the shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized.

This is analogous to the problem of finding the shortest path between two intersections on a road map: the graph's vertices correspond to intersections and the edges correspond to road segments, each weighted by the length of its road segment.

Definition [edit]

The shortest path problem can be defined for graphs whether undirected, directed, or mixed. It is defined here for undirected graphs; for directed graphs the definition of path requires that consecutive vertices be connected by an appropriate directed edge.

Two vertices are adjacent when they are both incident to a common edge. A path in an undirected graph is a sequence of vertices P = ( v_1, v_2, \ldots, v_n ) \in V \times V \times \ldots \times V such that v_i is adjacent to v_{i+1} for 1 \leq i < n. Such a path P is called a path of length n from v_1 to v_n. (The v_i are variables; their numbering here relates to their position in the sequence and needs not to relate to any canonical labeling of the vertices.)

Let e_{i, j} be the edge incident to both v_i and v_j. Given a real-valued weight function f: E \rightarrow \mathbb{R}, and an undirected (simple) graph G, the shortest path from v to v' is the path P = ( v_1, v_2, \ldots, v_n ) (where v_1 = v and v_n = v') that over all possible n minimizes the sum \sum_{i =1}^{n-1} f(e_{i, i+1}). When each edge in the graph has unit weight or f: E \rightarrow \{1\}, this is equivalent to finding the path with fewest edges.

The problem is also sometimes called the single-pair shortest path problem, to distinguish it from the following variations:

These generalizations have significantly more efficient algorithms than the simplistic approach of running a single-pair shortest path algorithm on all relevant pairs of vertices.

Algorithms [edit]

The most important algorithms for solving this problem are:

Additional algorithms and associated evaluations may be found in Cherkassky et al.

Road networks [edit]

A road network can be considered as a graph with positive weights. The nodes represent road junctions and each edge of the graph is associated with a road segment between two junctions. The weight of an edge may correspond to the length of the associated road segment, the time needed to traverse the segment or the cost of traversing the segment. Using directed edges it is also possible to model one-way streets. Such graphs are special in the sense that some edges are more important than others for long distance travel (e.g. highways). This property has been formalized using the notion of highway dimension. (research.microsoft.com/pubs/115272/soda10.pdf) There are a great number of algorithms that exploit this property and are therefore able to compute the shortest path a lot quicker than would be possible on general graphs.

All of these algorithms work in two phases. In the first phase, the graph is preprocessed without knowing the source or target node. This phase may take several days for realistic data and some techniques. The second phase is the query phase. In this phase, source and target node are known. The running time of the second phase is generally less than a second. The idea is that the road network is static, so the preprocessing phase can be done once and used for a large number of queries on the same road network.

The algorithm with the fastest known query time is called hub labeling and is able to compute shortest path on the road networks of Europe or the USA in a fraction of a microsecond. (research.microsoft.com/pubs/142356/HL-TR.pdf). Other techniques that have been used are:

Single-source shortest paths [edit]

Directed unweighted graphs [edit]

Algorithm Time complexity Author
Breadth-first search O(E)

Directed acyclic graphs [edit]

Directed graphs with nonnegative weights [edit]

Algorithm Time complexity Author
O(V) Shimbel 1955
O(VEL) Ford 1956
Bellman–Ford algorithm O(VE) Bellman 1958, Moore 1959
O(V log V) Dantzig 1958, Dantzig 1960, Minty (cf. Pollack & Wiebenson 1960), Whiting & Hillier 1960
Dijkstra's algorithm with list O(V) Leyzorek et al. 1957, Dijkstra 1959
Dijkstra's algorithm with modified binary heap O((E + V) log V)
. . . . . . . . .
Dijkstra's algorithm with Fibonacci heap O(E + V log V) Fredman & Tarjan 1984, Fredman & Tarjan 1987
O(E log log L) Johnson 1982, Karlsson & Poblete 1983
Gabow's algorithm O(E logE/V L) Gabow 1983b, Gabow 1985b
O(E + V√log L) Ahuja et al. 1990

Planar directed graphs with nonnegative weights [edit]

Directed graphs with arbitrary weights [edit]

Algorithm Time complexity Author
Bellman–Ford algorithm O(VE) Bellman 1958, Moore 1959

Planar directed graphs with arbitrary weights [edit]

All-pairs shortest paths [edit]

Floyd–Warshall algorithm

Directed graphs with unit weights [edit]

Undirected graphs with unit weights [edit]

Directed graphs with nonnegative weights [edit]

Planar directed graphs with nonnegative weights [edit]

Directed graphs with arbitrary weights [edit]

Planar directed graphs with arbitrary weights [edit]

Applications [edit]

Shortest path algorithms are applied to automatically find directions between physical locations, such as driving directions on web mapping websites like Mapquest or Google Maps. For this application fast specialized algorithms are available.

If one represents a nondeterministic abstract machine as a graph where vertices describe states and edges describe possible transitions, shortest path algorithms can be used to find an optimal sequence of choices to reach a certain goal state, or to establish lower bounds on the time needed to reach a given state. For example, if vertices represents the states of a puzzle like a Rubik's Cube and each directed edge corresponds to a single move or turn, shortest path algorithms can be used to find a solution that uses the minimum possible number of moves.

In a networking or telecommunications mindset, this shortest path problem is sometimes called the min-delay path problem and usually tied with a widest path problem. For example, the algorithm may seek the shortest (min-delay) widest path, or widest shortest (min-delay) path.

A more lighthearted application is the games of "six degrees of separation" that try to find the shortest path in graphs like movie stars appearing in the same film.

Other applications, often studied in operations research, include plant and facility layout, robotics, transportation, and VLSI design".

Related problems [edit]

For shortest path problems in computational geometry, see Euclidean shortest path.

The travelling salesman problem is the problem of finding the shortest path that goes through every vertex exactly once, and returns to the start. Unlike the shortest path problem, which can be solved in polynomial time in graphs without negative cycles, the travelling salesman problem is NP-complete and, as such, is believed not to be efficiently solvable (see P = NP problem). The problem of finding the longest path in a graph is also NP-complete.

The Canadian traveller problem and the stochastic shortest path problem are generalizations where either the graph isn't completely known to the mover, changes over time, or where actions (traversals) are probabilistic.

The shortest multiple disconnected path is a representation of the primitive path network within the framework of Reptation theory.

The problems of recalculation of shortest paths arises if some graph transformations (e.g., shrinkage of nodes) are made with a graph.

The widest path problem seeks a path so that the minimum label of any edge is as large as possible.

Linear programming formulation [edit]

There is a natural linear programming formulation for the shortest path problem, given below. It is very simple compared to most other uses of linear programs in discrete optimization, however it illustrates connections to other concepts.

Given a directed graph (V, A) with source node s, target node t, and cost wij for each arc (i, j) in A, consider the program with variables xij

minimize \sum_{ij \in A} w_{ij} x_{ij} subject to x \ge 0 and for all i, \sum_j x_{ij} - \sum_j x_{ji} = \begin{cases}1, &\text{if }i=s;\\ -1, &\text{if }i=t;\\ 0, &\text{ otherwise.}\end{cases}

This LP, which is common fodder for operations research courses, has the special property that it is integral; more specifically, every basic optimal solution (when one exists) has all variables equal to 0 or 1, and the set of edges whose variables equal 1 form an s-t dipath. See Ahuja et al. for one proof, although the origin of this approach dates back to mid-20th century.

The dual for this linear program is

maximize yt − ys subject to for all ij, yj − yi ≤ wij

and feasible duals correspond to the concept of a consistent heuristic for the A* algorithm for shortest paths. For any feasible dual y the reduced costs w'_{ij} = w_{ij} - y_j + y_i are nonnegative and A* essentially runs Dijkstra's algorithm on these reduced costs.

See also [edit]

References [edit]

  1. Cherkassky, Boris V.; Goldberg, Andrew V.; Radzik, Tomasz (1996). "Shortest paths algorithms: theory and experimental evaluation". Mathematical Programming. Ser. A 73 (2): 129–174. doi:10.1016/0025-5610(95)00021-6. MR 1392160 .
  2. Sanders, Peter (March 23, 2009). Fast route planning. Google Tech Talk .
  3. Chen, Danny Z. (December 1996). "Developing algorithms and software for geometric path planning problems". ACM Computing Surveys 28 (4es): 18. doi:10.1145/242224.242246. 
  4. Kroger, Martin (2005). "Shortest multiple disconnected path for the analysis of entanglements in two- and three-dimensional polymeric systems". Computer Physics Communications 168 (168): 209–232. doi:10.1016/j.cpc.2005.01.020. 
  5. Ladyzhensky Y., Popoff Y. Algorithm to define the shortest paths between all nodes in a graph after compressing of two nodes. Proceedings of Donetsk national technical university, Computing and automation. Vol.107. Donetsk, 2006, pp. 68–75.[verification needed]
  6. Ravindra K. Ahuja, Thomas L. Magnanti, and James B. Orlin (1993). Network Flows: Theory, Algorithms and Applications. Prentice Hall. ISBN  - get this book. 

Further reading [edit]

Popular search requests

Shortest path problem is an object of interest for many people. For example, the people often search for Shortest path problem website, Shortest path problem blog, Shortest path problem online, Shortest path problem information, Shortest path problem photo, Shortest path problem picture, Shortest path problem video, Shortest path problem movie, Shortest path problem history, Shortest path problem news, Shortest path problem facts, Shortest path problem description, Shortest path problem detailed info, Shortest path problem features, Shortest path problem manual, Shortest path problem instructions, Shortest path problem comparison, Shortest path problem book, Shortest path problem story, Shortest path problem article, Shortest path problem review, Shortest path problem feedbacks, Shortest path problem selection, Shortest path problem data, Shortest path problem address, Shortest path problem phone number, download Shortest path problem, Shortest path problem reference, Shortest path problem wikipedia, Shortest path problem facebook, Shortest path problem twitter, Shortest path problem 2013, Shortest path problem 2014, Shortest path problem in the United States, Shortest path problem USA, Shortest path problem US, Shortest path problem in United Kingdom, Shortest path problem UK, Shortest path problem in Canada, Shortest path problem in Australia, etc.

Shortest path problem is also an object of commercial interest. For example, many people are interested in Shortest path problem offers, Shortest path problem buy, Shortest path problem sell, Shortest path problem sale, Shortest path problem discounts, discounted Shortest path problem, Shortest path problem coupon, Shortest path problem promo code, Shortest path problem order, to order Shortest path problem online, to buy Shortest path problem, how much for Shortest path problem, Shortest path problem price, Shortest path problem cost, Shortest path problem price list, Shortest path problem tariffs, Shortest path problem rates, Shortest path problem prices, Shortest path problem delivery, Shortest path problem store, Shortest path problem online store, Shortest path problem online shop, inexpensive Shortest path problem, cheap Shortest path problem, Shortest path problem for free, free Shortest path problem, used Shortest path problem, and so on.

Information source: wikipedia.org

Do you want to know more? Look at the full version of the Shortest path problem article.

HOT DESIGNS
Premium designs
Designs by country
Designs by U.S. state
Most popular designs
Newest, last added designs
Unique designs
Cheap, budget designs
Design super sale

DESIGNS BY THEME
Accounting, audit designs
Adult, sex designs
African designs
American, U.S. designs
Animals, birds, pets designs
Agricultural, farming designs
Architecture, building designs
Army, navy, military designs
Audio & video designs
Automobiles, car designs
Books, e-book designs
Beauty salon, SPA designs
Black, dark designs
Business, corporate designs
Charity, donation designs
Cinema, movie, film designs
Computer, hardware designs
Celebrity, star fan designs
Children, family designs
Christmas, New Year's designs
Green, St. Patrick designs
Dating, matchmaking designs
Design studio, creative designs
Educational, student designs
Electronics designs
Entertainment, fun designs
Fashion, wear designs
Finance, financial designs
Fishing & hunting designs
Flowers, floral shop designs
Food, nutrition designs
Football, soccer designs
Gambling, casino designs
Games, gaming designs
Gifts, gift designs
Halloween, carnival designs
Hotel, resort designs
Industry, industrial designs
Insurance, insurer designs
Interior, furniture designs
International designs
Internet technology designs
Jewelry, jewellery designs
Job & employment designs
Landscaping, garden designs
Law, juridical, legal designs
Love, romantic designs
Marketing designs
Media, radio, TV designs
Medicine, health care designs
Mortgage, loan designs
Music, musical designs
Night club, dancing designs
Photography, photo designs
Personal, individual designs
Politics, political designs
Real estate, realty designs
Religious, church designs
Restaurant, cafe designs
Retirement, pension designs
Science, scientific designs
Sea, ocean, river designs
Security, protection designs
Social, cultural designs
Spirit, meditational designs
Software designs
Sports, sporting designs
Telecommunication designs
Travel, vacation designs
Transport, logistic designs
Web hosting designs
Wedding, marriage designs
White, light designs

E-COMMERCE DESIGNS
Magento store designs
OpenCart store designs
PrestaShop store designs
CRE Loaded store designs
Jigoshop store designs
VirtueMart store designs
osCommerce store designs
Zen Cart store designs

CMS DESIGNS
Flash CMS designs
Joomla CMS designs
Mambo CMS designs
Drupal CMS designs
WordPress blog designs
Forum designs
phpBB forum designs
PHP-Nuke portal designs

ANIMATED WEBSITE DESIGNS
Flash CMS designs
Silverlight animated designs
Silverlight intro designs
Flash animated designs
Flash intro designs
XML Flash designs
Flash 8 animated designs
Dynamic Flash designs
Flash animated photo albums
Dynamic Swish designs
Swish animated designs
jQuery animated designs

WEBSITE DESIGNS
WebMatrix Razor designs
HTML 5 designs
Web 2.0 designs
3-color variation designs
3D, three-dimensional designs
Artwork, illustrated designs
Clean, simple designs
CSS based website designs
Full design packages
Full ready websites
Portal designs
Stretched, full screen designs
Universal, neutral designs

CORPORATE ID DESIGNS
Corporate identity sets
Logo layouts, logo designs
Logotype sets, logo packs
PowerPoint, PTT designs
Facebook themes

VIDEO, SOUND & MUSIC
Video e-cards
After Effects video intros
Special video effects
Music tracks, music loops
Stock music bank

GRAPHICS & CLIPART
Pro clipart & illustrations, $19/year
5,000+ icons by subscription
Icons, pictograms

 
Shortest path problem Sale - Buy now!
Super Offers
Super Offers
Custom Logo Design $149  ▪  Web Programming  ▪  ID Card Printing  ▪  Best Web Hosting  ▪  eCommerce Software  ▪  Add Your Link
© 1996-2013 MAGIA Internet StudioAboutPortfolioPhoto on DemandHostingAdvertiseSitemapPrivacyMaria Online