Abstract
This case study concerns the use of a table of selected function values to avoid repeated function evaluations and, particularly, to speed up recursive ones. It is assumed that the table cannot hold all repeatedly needed function values owing to storage limitations (“small-table technique”). The programmer is then faced with the problem of finding a table management policy that reduces repeat evaluations to a minimum, a problem which must usually be tackled by heuristic means. We test and discuss a spectrum of policies, most of which involve “random” selection of function values for tabulation. Savings of 95% or more are easily achieved, apparently even in the limit as the computational burden increases. Policies involving table search proper are noted to be inferior. Sometimes intuitively reasonable policy refinements fail, so efficient policy selection must be based on experiments of the kind presented here. Several other programming recommendations are made, as well as suggestions for theoretical research.
Similar content being viewed by others
References
D. Auble,Extended Tables for the Mann-Whitney Statistic, Bulletin of the Institute of Educational Research, Indiana University, Vol. 1, No. 2 (1953). Cited from [3].
D. W. Barron,Recursive Techniques in Programming, Macdonald & Co./Elsevier (1968).
Evelyn Fix & J. L. Hodges Jr.,Significance Probabilities of the Wilcoxon Test, Annals of Mathematical Statistics 26 (1955), 301–312.
J. Hilden,A Fast Exact Wilcoxon-Mann-Whitney Probability Algorithm, in preparation.
M. Minsky & S. Papert,Perceptrons, The MIT Press (1969).
R. E. Odeh,Algorithm AS 55, The Generalized Mann-Whitney U-Statistic, Applied Statistics 21 (1972), 348–351.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Hilden, J. Elimination of recursive calls using a small table of “randomly” selected function values. BIT 16, 60–73 (1976). https://doi.org/10.1007/BF01940778
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01940778