Current Forum: Homework 4 - Huffman Trees (Part 1) |
Date: Thu Oct 11 2001 2:01 pm |
Author: Ghosh, Debmallo S. <dsghosh@cmu.edu> |
Subject: Re: HuffmanTree.java |
|
|
It's technically a generic Java Object so that the Comparable interface is happy (it wants all Comparables to be comparable to each other). What you can do is cast it as a HuffmanTree or HuffmanCharFreq object so you can compare the frequencies and return an appropriate value. |
|