Programming Improvements to Fike's Algorithm for Generating Permutations
Author(s) -
J. S. Rohl
Publication year - 1976
Publication title -
the computer journal
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.319
H-Index - 64
eISSN - 1460-2067
pISSN - 0010-4620
DOI - 10.1093/comjnl/19.2.156
Subject(s) - computer science , compiler , algorithm , theoretical computer science , programming language
In a recent number of this Journal, Fike (1975) has given a new algorithm for generating permutations, which his experiments indicate is comparable with the fastest known methods (see Ord-Smith, 1970 and 1971). In this paper we consider some programming modifications to the procedures Fike presents which improve the performance by a factor of about 2. The timings show that with a compiler which handles procedure calls reasonably, a recursive procedure is the most efficient.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom