Nothing Special   »   [go: up one dir, main page]

skip to main content
article
Free access

A linear algorithm for copying binary trees using bounded workspace

Published: 01 March 1980 Publication History

Abstract

An algorithm to copy a binary tree in linear time using bounded workspace is presented. The algorithm does not modify the original tree at any time. The copy is constructed in such a way that it can be traversed in a read-only fashion even before the copying process is complete, provided one can distinguish between the original and the copy. The traversal can be carried out in parallel with the copying.

References

[1]
Aho, A.V., Hopcroft, J.E., and Ullman, J.D. The Design and Analysis of Computer Algorithms. Addison-Wesley, Reading, Mass., 1974.
[2]
Clark, D.W. A fast algorithm for copying binary trees, lnform. Processing Letters 4 (1975), 62-63.
[3]
Clark, D.W. A fast algorithm for copying list structures. Comm. ACM 21, 5 (May 1978), 351-357.
[4]
Fisher, D.A. Copying cyclic list structures in linear time using bounded workspace. Comm. ACM 18, 5 (May 1975), 251-252.
[5]
Gries, D. An exercise in proving parallel programs correct. Comm. ACM 20, 6 (June 1977), 921-930.
[6]
Horowitz, E., and Sahni, S. Fundamentals of Data Structures. Comptr. Sci. Press, Woodland Hills, Calif., 1976.
[7]
Lindstrom, G. Scanning list structures without stacks or tag bits. Inform. Processing Letters 2 (1973), 47~51.
[8]
Lindstrom, G. Copying list structures using bounded workspace. Comm. ACM 17, 4 (April 1974), 198-202.
[9]
Robson, J.M. A bounded storage algorithm for copying cyclic structures. Comm. ACM 20, 6 (June 1977), 431-433.
[10]
Wang, C.C. A linear algorithm for copying binary trees using bounded workspace. Tech. Rep. No. 43-78, Dept. of Comptr. Sci., Univ. of Kentucky.

Cited By

View all
  1. A linear algorithm for copying binary trees using bounded workspace

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image Communications of the ACM
    Communications of the ACM  Volume 23, Issue 3
    March 1980
    44 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/358826
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 March 1980
    Published in CACM Volume 23, Issue 3

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. binary trees
    2. copying
    3. tree traversal

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)79
    • Downloads (Last 6 weeks)7
    Reflects downloads up to 19 Sep 2024

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media