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.
Read more about Shortest Path Problem: Definition, Algorithms, Roadnetworks, Applications, Related Problems, Linear Programming Formulation
Famous quotes containing the words shortest, path and/or problem:
“The Gettysburg speech is at once the shortest and the most famous oration in American history. Put beside it, all the whoopings of the Websters, Sumners and Everetts seem gaudy and silly. It is eloquence brought to a pellucid and almost gem-like perfectionthe highest emotion reduced to a few poetical phrases.”
—H.L. (Henry Lewis)
“The gray-eyed morn smiles on the frowning night,
Checkring the eastern clouds with streaks of light,
And fleckled darkness like a drunkard reels
From forth days path and Titans fiery wheels.”
—William Shakespeare (15641616)
“Our political problem now is Can we, as a nation, continue together permanentlyforeverhalf slave, and half free? The problem is too mighty for me. May God, in his mercy, superintend the solution.”
—Abraham Lincoln (18091865)