• DocumentCode
    2202770
  • Title

    Efficient compilation of linear recursive programs

  • Author

    Chandra, Ashok K.

  • fYear
    1973
  • fDate
    15-17 Oct. 1973
  • Firstpage
    16
  • Lastpage
    25
  • Abstract
    A linear recursive program consists of a set of procedures where each procedure can make at most one recursive call. The conventional stack implementation of recursion requires time and space both proportional to n, the depth of recursion. It is shown that in order to implement linear recursion so as to execute in time n one does not need space proportional to n : ne for arbitrarily small e will do. It is also known that with constant space one can implement linear recursion in time n. We show that one can do much better : ne for arbitrarily small c. We also describe an algorithm that lies between these two: it takes time n.log(n) and space log(n). In this context one can demonstrate a speed-up theorem for linear recursion - given any constant-space program implementing linear recursion, one can effectively find another constant space program that runs faster almost everywhere.
  • Keywords
    Artificial intelligence; Contracts; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Switching and Automata Theory, 1973. SWAT '08. IEEE Conference Record of 14th Annual Symposium on
  • Conference_Location
    USA
  • ISSN
    0272-4847
  • Type

    conf

  • DOI
    10.1109/SWAT.1973.7
  • Filename
    4569724