scispace - formally typeset
Journal ArticleDOI

Algorithm 97: Shortest path

Robert W. Floyd
- 01 Jun 1962 - 
- Vol. 5, Iss: 6, pp 345
Reads0
Chats0
TLDR
The procedure was originally programmed in FORTRAN for the Control Data 160 desk-size computer and was limited to te t ra t ion because subroutine recursiveness in CONTROL Data 160 FORTRan has been held down to four levels in the interests of economy.
Abstract
procedure ari thmetic (a, b, c, op); in t eger a, b, c, op; ¢ o n l m e n t This procedure will perform different order ar i thmetic operations with b and c, put t ing the result in a. The order of the operation is given by op. For op = 1 addit ion is performed. For op = 2 multiplicaLion, repeated addition, is done. Beyond these the operations are non-commutat ive. For op = 3 exponentiat ion, repeated multiplication, is done, raising b to the power c. Beyond these the question of grouping is important . The innermost implied parentheses are at the right. The hyper-exponent is always c. For op = 4 te t ra t ion, repeated exponentiat ion, is done. For op = 5, 6, 7, etc., the procedure performs pentat ion, hexation, heptat ion, etc., respectively. The routine was originally programmed in FORTRAN for the Control Data 160 desk-size computer. The original program was limited to te t ra t ion because subroutine recursiveness in Control Data 160 FORTRAN has been held down to four levels in the interests of economy. The input parameter , b, c, and op, must be positive integers, not zero; b e g i n own i n t e g e r d, e, f, drop; i f o p = 1 t h e n b e g i n a := h-4c; go t o l e n d i f o p = 2 t h e n d := 0; else d := 1; e := c; drop := op 1; for f := I s t e p 1 u n t i l e do b e g i n ari thmetic (a, b, d, drop);

read more

Citations
More filters
Journal ArticleDOI

The constrained shortest path problem with stochastic correlated link travel times

TL;DR: Experimental results in a large-scale network indicate that the proposed algorithm can quickly find the high-quality solutions with small relative gaps, demonstrating the effectiveness of the proposed approaches.
Journal ArticleDOI

Bounds for the general capacitated routing problem

TL;DR: Heuristics that are based on a tour splitting of a general routing tour for solving the general capacitated routing problem (GCRP) are presented and some lower bounds are given.
Journal ArticleDOI

Soft Constraint Logic Programming and Generalized Shortest Path Problems

TL;DR: This paper shows that classical, multicriteria, partially ordered, and modality-based SP problems can be naturally modeled and solved within the Soft Constraint Logic Programming (SCLP) framework, where logic programming is coupled with soft constraints.
Journal ArticleDOI

Mining temporal invariants from partially ordered logs

TL;DR: This paper motivates a family of event ordering invariants over partially ordered event traces, gives three algorithms for mining these invariants from logs, and evaluates their scalability on simulated distributed system logs.
Journal ArticleDOI

Comparing Network-Centric and Power Flow Models for the Optimal Allocation of Link Capacities in a Cascade-Resilient Power Transmission Network

TL;DR: The results show that cascade-resilient networks tend to have a nonlinear capacity–load relation: In particular, heavily loaded components have smaller unoccupied portions of capacity, whereas lightly loaded links present larger unoccupiedParts of capacity (which is in contrast with the linear capacity–loads hypothesized in previous works of literature).