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

A new algorithm for finding faces in wireframes

TL;DR: This paper proposes a new polynomial-order algorithm for finding faces in wireframes which could be adapted to any graph-theoretical least-cost circuit problem where the cost of traversing an edge is not fixed but context-dependent.
Journal ArticleDOI

The Link between Dependency and Cochange: Empirical Evidence

TL;DR: It is found that approximately half of all dependencies are never involved in cochanges and that the vast majority of cochanges pertain to only a small percentage of dependencies, resulting in a severely distorted approximation of cochange characteristics.
Journal ArticleDOI

Three-dimensional Route Planning for Unmanned Aerial Vehicles in a Risk Environment

TL;DR: A new approach for three-dimensional flight path optimization for unmanned aerial vehicles that considers the performance of the air vehicle as well as mission specific requirements including the avoidance of no-fly areas, risk reduction in threat environments by terrain following flight, and other regulations such as fixed release and approach vectors at the start and destination locations.
Journal ArticleDOI

Monophonic distance in graphs

TL;DR: It is shown that radm G ≤ diamm G for every connected graph G and that every pair a, b of positive integers with a ≤ b is realizable as the monophonic radius andmonophonic diameter of some connected graph.
Proceedings Article

Optimal route search with the coverage of users' preferences

TL;DR: This paper takes into account the weighted user preferences in route search, and presents a keyword coverage problem, which finds an optimal route from a source location to a target location such that the keyword coverage is optimized and that the budget score satisfies a specified constraint.