skip to main content
10.1145/1047344.1047408acmconferencesArticle/Chapter ViewAbstractPublication PagessigcseConference Proceedingsconference-collections
Article

Experiments with balanced-sample binary trees

Published:23 February 2005Publication History

ABSTRACT

In this paper we propose using experiments with Balanced-Sample Binary Trees (BSBTrees) as assignments and lecture material in intermediate data structures courses (CS2/3). BSBTrees are composite data structures that have a temporarily constructed form that precedes their normal construction. We present them in the context of binary search trees. To do this we first investigate the retrieval properties of randomly generated binary search trees and show how temporary construction can improve both worst case and average case behavior. We provide a brief analysis of BSBTree performance and description of the classes that can be used for BSBTree implementation. Last we discuss the use of BSBTrees in CS2 and CS3 courses and a survey of student opinions about BSBTrees.

References

  1. Barnes, G. M. BSBTree source listing and JAVA™ documentation. http://www.csun.edu/ renzo/pub/BSBTree.html, September 2003.Google ScholarGoogle Scholar
  2. Devroye, L. A note on the height of binary search trees. Journal of the ACM 33, 3 (1986), 489--498. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Gonnet, G. H., and Baeza-Yates, R. Handbook of Data Structures and Algorithms in Pascal and C, second ed. Addison-Wesley, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Marsaglia, G. The marsaglia random number cd-rom with the diehard battery of tests of randomness. http://www.stat.fsu.edu/pub/diehard, 1995.Google ScholarGoogle Scholar
  5. Martin, W.A., and Ness, D.N. Optimizing binary trees grown with a sorting algorithm. Communications of the ACM 15, 2 (1972), 88--93. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Martinez, C., and Roura, S. Randomized binary search trees. Journal of the ACM 45, 2 (1988), 288--323. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Michie, D. 'Memo' functions and machine learning. Nature 218 (1968), 19--22.Google ScholarGoogle ScholarCross RefCross Ref
  8. Noga, J. Sbtree analysis. http://www.csun.edu/jnoga/pub/BSBTrees.html, September 2003.Google ScholarGoogle Scholar
  9. Noga, J. Additional BSBTree content. http://www.csun.edu/jnoga/pub/BSBTrees.html, May 2004.Google ScholarGoogle Scholar
  10. Wiegley, J. CS3 BSBTree project. http://www.csun.edu/jnoga/pub/BSBTrees.html, May 2004.Google ScholarGoogle Scholar
  11. Wirth, N. Algorithms + Data Structures = Programs. Prentice-Hall, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Experiments with balanced-sample binary trees

        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
        • Published in

          cover image ACM Conferences
          SIGCSE '05: Proceedings of the 36th SIGCSE technical symposium on Computer science education
          February 2005
          610 pages
          ISBN:1581139977
          DOI:10.1145/1047344

          Copyright © 2005 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: 23 February 2005

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • Article

          Acceptance Rates

          Overall Acceptance Rate1,595of4,542submissions,35%

          Upcoming Conference

          SIGCSE Virtual 2024
          SIGCSE Virtual 2024: ACM Virtual Global Computing Education Conference
          November 30 - December 1, 2024
          Virtual Event , USA

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader