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

An Interactive Web-Based Public Transport Enquiry System With Real-Time Optimal Route Computation

TL;DR: The web-map public transport enquiry system, as described in this paper, gives a good example of providing bilingual (English and Chinese) information on all public transports run in Hong Kong in the form of interactive maps and texts, as well as real-time derivation of optimal travelling routes for users in terms of multiple criteria.
Book ChapterDOI

A Formal Basis for Reasoning on Programmable QoS

TL;DR: This paper introduces a foundational model for specification of QoS attributes at application level that handles QoS Attributes as semantic constraints within a graphical calculus for mobility.
Journal ArticleDOI

Supply Chain Network Robustness Against Disruptions: Topological Analysis, Measurement, and Optimization

TL;DR: A decision support system for analyzing the robustness of supply chain networks against disruptions using topological analysis, performance measurement relevant to a supply chain context, and an optimization for increasing supply network performance is proposed.
Journal ArticleDOI

Technological change in lithium iron phosphate battery: the key-route main path analysis

TL;DR: It is illustrated that LFP battery technology has completed two full technological cycles and is in the middle of the third cycle, and the citation network is constructed from 1,531 academic articles on LFP lithium iron phosphate technology published between 1997 and early 2012.
Proceedings ArticleDOI

Aggregative closure: an extension of transitive closure

TL;DR: The aggregative closure operator is defined and its usefulness is demonstrated in a wide variety of applications and a novel algorithm is presented which is intended for the computation of the aggregate closure.