0% found this document useful (0 votes)
11 views8 pages

Shortest Route Algorithm Explained

This document discusses two network modeling algorithms: the shortest-route algorithm and the minimal spanning tree algorithm. It then focuses on explaining the shortest-route algorithm. The algorithm finds the shortest path between locations on a road map network where nodes are locations and edges are road segments weighted by travel time. It works by labeling nodes as permanent or tentative, with the permanent labels identifying the shortest distances from the starting node to all other nodes.

Uploaded by

Jefferson Felipe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

Shortest Route Algorithm Explained

This document discusses two network modeling algorithms: the shortest-route algorithm and the minimal spanning tree algorithm. It then focuses on explaining the shortest-route algorithm. The algorithm finds the shortest path between locations on a road map network where nodes are locations and edges are road segments weighted by travel time. It works by labeling nodes as permanent or tentative, with the permanent labels identifying the shortest distances from the starting node to all other nodes.

Uploaded by

Jefferson Felipe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

NETWORK MODELS:

-SHORTEST-ROUTE ALGORITHM
-MINIMAL SPANNING TREE
ALGORITHM

Jefferson S. Felipe
September 11, 2010
SHORTEST-ROUTE ALGORITHM

Shortest path/route algorithms: applied to


automatically find directions between physical
locations. It is finding the quickest way to get
from one location to another on a road map; in
this case, the vertices represent locations and the
edges represent segments of road and are
weighted by the time needed to travel that
segment.
Circles or nodes: correspond to the site location in
the network.
Arcs: represents the roads streets and highways in
the network.
Labeled node: any node for which we
have identified a path from node 1 to
that node.
Unlabeled node: any node for which no
path has yet been identified.
Permanent label node: that is whenever
the algorithm has determined the
shortest distance from node 1 to
particular node.
Tentative label node: the shortest
distance from node 1 to a particular
labeled node has not yet determined
Figure 1. Example of a Node
Label
Value indicates that the
Value indicates that the
preceding node on the
distance from node 1 to
route from node 1 to
this node is 20
[20, 4] this node is 4.

NODE

NODE LABEL
STEPS IN FINDING SHORTEST-
ROUTE ALGORITHM
1. Assign node 1 permanently label [0,S]; S indicates that node 1 is
the starting node and the zero indicates that the distance from
node 1 to itself is zero.
2. Compute tentative labels for the nodes that can be reached directly
from node 1. The first number in each label is the direct distance
from node 1 to the node in the question; we refer to as the
preceding node value, indicates the preceding node on the route
from node 1 to node in question; thus, in this step the preceding
node value is 1 since we are only considering nodes that can be
directly reached from node 1.
3. Identify the tentatively labeled node with the smallest distance
value, and declare that the node permanently labeled. If all nodes
are permanently labeled go to step 5
4. Consider all nodes that are not permanently labeled and can be
reached directly from the new permanently labeled node identified
in step 3. Compute tentative labels for these nodes as follows:
Steps cont.
a. If the non permanently labeled node in the question has a
tentative label, compute the sum of the distance value at the new
permanently labeled node to the node in question. If this sum is
less than the distance value for the node in question, set the
distance value for this node equal to this sum: in addition, set the
preceding node value equal to the new permanent labeled node
that provided the smaller distance. Go to step 3.
b. If the the nonpermanently labeled node in question does not have
a tentative label, a tentative label is created with a distance value
equal to the sum of the distance value at the new permanently
labeled node to the node in question. The preceding node value is
set to equal to the new permanently labeled node. Go to step 3.
5. The permanent labels identify the shortest distance from node 1
to each node and the preceding node on the shortest route. The
shortest route to a given node can be found by starting at a given
node and moving to its preceding node. Continuing this backward
movement through the network will provide the shortest route
from node 1. to the node in question.
Sample problem:
GORMAN CONSTRUCTION COMPANY
 Gorman Construction company has several
construction projects located throughout a
three-county area. Construction sites are
sometimes located as far as 50 miles from
Gorman’s main office. With multiple daily trips
carrying personnel, equipment, and supplies to
and from the construction locations, the costs
associated with the transportation activities are
substantial. For any given construction site, the
travel alternatives between the site and the
office can be described by a network of roads,
streets, and highways.
Figure 2. NETWORK FOR THE GORMAN
COMPANY SHORTEST-ROUTE PROBLEM

7
17
2
6 5 6
15 4
3
6
10 3 4 2
5
Gorman’s
office

Common questions

Powered by AI

Tentative labeling is critical in exploring alternatives and guiding the decision-making process in identifying optimal paths in complex network models. By maintaining temporary calculations of paths and continuously updating them as more nodes are permanently labeled, the algorithm systematically narrows down to the optimal pathways. This flexibility allows for dynamic adjustment when a more efficient path emerges, supporting an iterative optimization approach that effectively navigates the complexities and interdependencies typical of expansive and multifaceted networks .

The transition from a tentative label to a permanent label signifies that the shortest path from the starting node to that particular node has been determined. A node's tentative label indicates it is still being considered for path optimization and may change as more nodes are evaluated. Once a node is assigned a permanent label, no further comparison or adjustment to its path length is required, as it guarantees the shortest distance from the starting node based on the algorithm's evaluations up to that point .

The 'preceding node value' is crucial in constructing the actual path of the shortest route once the shortest distances are determined. Besides pointing to the smallest distance, it keeps track of the route path by storing the last node through which the shortest path passed before reaching the current node. By tracing back from any given node using these preceding node values, the shortest path from the starting node to any particular node can be reconstructed .

Both the shortest-route algorithm and the minimal spanning tree algorithm optimize networks by reducing total path costs using iterative processes that focus on local optimality steps. The shortest-route algorithm applies node labeling strategies to ensure minimal path distances from a starting node across the network, while the minimal spanning tree algorithm identifies a subset of edges that connect all nodes with minimal total edge weight, avoiding any cycles. Both algorithms grow solutions incrementally by resolving parts of the network first before addressing the entire structure, employing principles of local optimization and path recalibration to achieve their objectives .

Prioritizing nodes with the smallest distance ensures the algorithm's correctness by systematically confirming the shortest path segment by segment. By labeling the closest unverified node permanently at each step, the algorithm confirms that all already processed nodes have reached their minimum path potential and ensures future path adjustments move from the least costly option. This prioritization is fundamental to the efficiency and accuracy of solving the shortest-path problem, allowing deeper network segments to benefit from prior established minimum paths .

A shortest-route algorithm computes the shortest path by iteratively applying tentative labels to nodes that represent the distance from the starting node and updating these labels based on the smallest calculated distances. Initially, the starting node is assigned a permanent label of zero, indicating no distance from itself. Tentative labels are computed for nodes directly reachable from the starting node, assigning the actual travel time or distance to each. The node with the smallest tentative distance receives a permanent label. The process repeats by recalculating distance values for nodes reachable from the newly permanently labeled nodes, updating them if a shorter path is found through comparison, until all nodes are permanently labeled. This set of permanent labels indicates the shortest distance to each node from the starting point .

Iterative label adjustments underpin the optimization process in shortest-route algorithms, allowing continual refinement of potential paths as new nodes are considered. This process involves recalculating path costs whenever a node is permanently labeled, adjusting tentative labels of adjacent nodes if a shorter path is discovered through the newly confirmed node. Such adjustments enable dynamic response to changes in the path network structure, ensuring all possibilities are explored efficiently and exhaustively. This iterative nature supports convergence on globally optimal paths by progressively shortening known paths and ruling out inefficient routes, thus optimizing the overall travel strategy in a given model .

The shortest-route algorithm ensures the correctness of its final solution through its methodical approach of iterative labeling and updating of distances. By always selecting the node with the minimum tentative distance value for permanent labeling, the algorithm effectively locks in the shortest known path for each node sequentially. This prevents any potential backtracking or reconsideration of those paths, as each decision point verifies represent the optimal route relative to previous nodes. Consistent recalculations and comparisons ensure adjustments are made only when they offer a reduction in the total path length, thus guaranteeing the accuracy of the final solution from start to finish .

Distance value in network models is a critical factor for determining the cost associated with moving from one node to another, which directly impacts the computation of the shortest path. It quantifies the time, distance, or other metric used to traverse the network segments, ensuring that the algorithm can consistently evaluate multiple potential paths towards an optimal route. A correctly calculated distance value allows the algorithm to make accurate comparisons and updates, ensuring the most cost-effective or time-efficient routes are permanently labeled throughout the iterative process .

Implementing a shortest-route algorithm is valuable for Gorman Construction Company because it minimizes transportation costs associated with multiple daily trips carrying personnel, equipment, and supplies across various construction sites. By determining the most efficient routes between the office and construction locations in a three-county area network, the algorithm helps reduce both travel time and the cost of fuel and vehicle wear, leading to substantial cost savings and increased operational efficiency .

You might also like