skip to main content
article
Free Access

Use of tree structures for processing files

Published:01 January 1983Publication History
Skip Abstract Section

Abstract

In data processing problems, files are frequently used which must both be searched and altered. Binary search techniques are efficient for searching large files, but the associated file organization is not readily adapted to the file alterations. Conversely, a chained file allocation permits elcient alteration but cannot be searched efficiently. A file organized into a tree-like structure is discussed, and it is shown that such a file may both be searched and altered with times proportional to s log, N, where N is the number of file items and s is a parameter of the tree. It is also shown that optimizing the value of s leads to a search time which is only 25 per cent slower than the binary search. The tree organization employs two data chains and may be considered to be a compromise between the organizations for the binary search and the chained file. The relation of the tree organization to multidimensional indexing and to the trie structure is also discussed.

References

  1. 1 IVERSON, K. E. A Programming Language. Wiley, New York (1962). Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 NEWELL, A. (Ed.). Information Processing Language--V Manual. Prentice Hall, Englewood Cliffs (1961).Google ScholarGoogle Scholar
  3. 3 JOHNSON L. R. On operand structure, representation, storage, and search. Research Report RC-603, IBM Corp. (1962).Google ScholarGoogle Scholar
  4. 4 HELLERMAN, H. Addressing multidimensional arrays. Comm. ACM 5 (Apr. 1962), 205-207. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5 FREDKIN, E. Trie memory. Comm. ACM 3 (Sept. I960), 490- 499. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 LAMB, S. M., AND JACOBSEN, W. H. A high-speed large-capacity dictionary system. Mech. Trans. 6 (Nov. 1961), 76-107.Google ScholarGoogle Scholar

Index Terms

  1. Use of tree structures for processing files
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image Communications of the ACM
      Communications of the ACM  Volume 26, Issue 1
      Special 25th Anniversary Issue
      Jan. 1983
      101 pages
      ISSN:0001-0782
      EISSN:1557-7317
      DOI:10.1145/357980
      Issue’s Table of Contents

      Copyright © 1983 ACM

      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: 1 January 1983

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader