Shortest path problem: Difference between revisions

Content deleted Content added
m Duplicate word removed
m Clarified last sentence to include the word distance, as well as length as it increases understanding by creating greater context.
Line 4:
In [[graph theory]], the '''shortest path problem''' is the problem of finding a [[path (graph theory)|path]] between two [[vertex (graph theory)|vertices]] (or nodes) in a [[Graph (discrete mathematics)|graph]] such that the sum of the [[Glossary of graph theory terms#weighted graph|weights]] of its constituent edges is minimized.
 
The problem of finding the shortest path between two intersections on a road map may be modeled as a special case of the shortest path problem in graphs, where the vertices correspond to intersections and the edges correspond to road segments, each weighted by the length or distance of theeach segment.
 
==Definition==