If this is the exact code that was provided to you, then you should probably implement the orderNodes
and readFileIn
functions.
They currently do nothing besides returning the empty ArrayHeap
that is created in the line before they are called.
Also, I'm surprised that HTree.generateTable(...)
even works, as it is not instantiated as an instance of HuffManNode
(as far as I can see)