Skip to main content
Log in

Elimination of recursive calls using a small table of “randomly” selected function values

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. 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].

  2. D. W. Barron,Recursive Techniques in Programming, Macdonald & Co./Elsevier (1968).

  3. Evelyn Fix & J. L. Hodges Jr.,Significance Probabilities of the Wilcoxon Test, Annals of Mathematical Statistics 26 (1955), 301–312.

    Google Scholar 

  4. J. Hilden,A Fast Exact Wilcoxon-Mann-Whitney Probability Algorithm, in preparation.

  5. M. Minsky & S. Papert,Perceptrons, The MIT Press (1969).

  6. R. E. Odeh,Algorithm AS 55, The Generalized Mann-Whitney U-Statistic, Applied Statistics 21 (1972), 348–351.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01940778

Key words

Navigation