Current Forum: Homework 4 - Huffman Trees (Part 1) |
Date: Sun Oct 7 2001 8:48 pm |
Author: Douglas, Keith <kdouglas@andrew.cmu.edu> |
Subject: remaining bits |
|
|
What *is* a good way to pad the compressed huffman file out with extra bits?
I can see an approach that would require a *third* pass through the input file, but that's not desirable, obviously?
I have noticed that the file does get some arbitrary bits to fill the last byte; the problem is that the decompressor interprets these as a final character to decompress and thus adds an extra character on when decompressing.
|
|