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

skip to main content
article

An object-oriented refactoring of Huffman encoding using the Java collections framework

Published: 11 January 2003 Publication History

Abstract

Computer science has a relatively stable collection of time-tested pedagogical programming examples. With the infusion of object-oriented concepts into the core computer science curriculum, many of these examples are being replaced with newer examples that are more focused on demonstrating the particular object-oriented features of interest. But classic computer science examples can be refactored to include the important object-oriented topics as well, all the while maintaining the time-tested pedagogical benefits of the original example. This paper presents a case study of this refactoring by demonstrating how the classic Huffman encoding example can be modeled to integrate important object-oriented concepts.

References

[1]
D. A. Huffman, A Method for the Construction of Minimum Redundancy Codes, Proc. IRE, 40(9), (1952).
[2]
D. Nguyen, and S. Wong. Patterns for Decoupling Data Structures and Algorithms, SIGCSE Bulletin 30(1): 87--91, (1999).
[3]
R. Sedgewick, Algorithms in C++, 3rd Edition, Prentice-Hall Publishing, (1999).
[4]
W. Collins, Data Structures and the Java Collections Framework, McGraw-Hill Publishing, (2002).
[5]
W. Ford and W. Topp, Data Structures with C++ Using STL, 2nd Edition, Prentice-Hall Publishing, (2001).
[6]
E. Gamma, R. Helm, R. Johnson, J. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley Publishing, (1994).
[7]
A. Peapcke (ed.), Object-Oriented Programming: The CLOS Perspective, The MIT Press, (1993).
[8]
R. Wirfs-Brock, B. Wilkerson, and L. Wiener, Designing Object-Oriented Software, Prentice-Hall Publishing, (1990).

Cited By

View all

Index Terms

  1. An object-oriented refactoring of Huffman encoding using the Java collections framework

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM SIGCSE Bulletin
    ACM SIGCSE Bulletin  Volume 35, Issue 1
    January 2003
    406 pages
    ISSN:0097-8418
    DOI:10.1145/792548
    Issue’s Table of Contents
    • cover image ACM Conferences
      SIGCSE '03: Proceedings of the 34th SIGCSE technical symposium on Computer science education
      February 2003
      444 pages
      ISBN:158113648X
      DOI:10.1145/611892
    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: 11 January 2003
    Published in SIGCSE Volume 35, Issue 1

    Check for updates

    Author Tags

    1. Huffman encoding
    2. Java collections framework
    3. double dispatching
    4. object oriented design

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)4
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 14 Dec 2024

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media