Abstract
A fast algorithm is presented for translating lambda expressions to combinator trees with BC-chains. The time complexity of this algorithm is O (n log n) in the worst case, where n is the length of an input expression. Furthermore it requires only O (n log n) working space. This result achieves a substantial improvement to the previously known algorithm having the quadratic complexity. The basic idea of the algorithm may be applied to practical processing systems, whether they use BC-chains or not.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Aho, A., Hoperoft, J. and Ullman, J.,The Design and Analysis of Computer Algorithms, Addison-Wesley, 1974.
Burton, F. W., “A Linear Space Representation of Functional Programs to Turner Combinators”,Information Processing Letters, 14, pp. 201–204, 1982.
Kennaway, I. R., “The Complexity of a Translation of Lambda-Calculus to Combinators”,Report of School of computing Studies and Accountancy, University of East Anglia, Norwich, 1982.
Kennaway, J. R. and Sleep, M. R., “Variable Abstraction in O (n log n) Space”,Information Processing Letters, 24, pp. 343–349, 1987.
Noshita, K., “Translation of Turner Combinators in O (n log n) Space”,Information Processing Letters, 20, pp. 71–74, 1985.
Noshita, K. and Hikita, T., The BC-Chain Method for Representing Combinators in Linear Space”,New Generation Computing, 3, pp. 131–144, 1985.
Rivest, R. L. and Vuillemin, J., “On Recognizing Graph Properties from Adjacency Matrices”,Theoretical Computer Science, 3, pp. 371–384, 1976.
Turner, D. A., “Another Algorithm for Bracket Abstraction”,Journal of Symbolic Logic, 44, pp. 267–270, 1979.
Author information
Authors and Affiliations
About this article
Cite this article
Noshita, K., He, X.X. A fast algorithm for translating combinator expressions with BC-chains. New Gener Comput 5, 249–257 (1987). https://doi.org/10.1007/BF03037465
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF03037465