Shortest path problem

From Free net encyclopedia

In graph theory, the single-source shortest path problem is the problem of finding a path between two vertices such that the sum of the weights of its constituent edges is minimized. More formally, given a weighted graph (that is, a set V of vertices, a set E of edges, and a real-valued weight function f : E → R), and given further one element n of N, find a path P from n to each n' of N so that

<math>\sum_{p\in P} f(p)</math>

is minimal among all paths connecting n to n' . The all-pairs shortest path problem is a similar problem, in which we have to find such paths for every two vertices n to n' .

A solution to the shortest path problem is sometimes called a pathing algorithm. The most important algorithms for solving this problem are:

A related problem is the traveling salesman problem, which is the problem of finding the shortest path that goes through every node exactly once, and returns to the start. That problem is NP-Complete, so an efficient solution is not likely to exist.

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. e.g.: Shortest (min-delay) widest path or Widest shortest (min-delay) path.

A good site in spanish: http://optimos2.diinf.usach.cl/swc (has references in english)

References

ja:最短経路問題 pl:Problem najkrótszej ścieżki pt:Problema do caminho mínimo SP:Problema dEL camino mínimo zh:最短路径