Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 4 - Huffman Trees (Part 1)
Date: Wed Oct 10 2001 9:16 pm
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu>
Subject: Re: file to store compressed data

my file was like this:

2 Bytes: 'CH' - marks this file as a compressed file
4 Bytes: Original file length
? Bits : Huffman tree
? Bits : Compressed data

is this a bad (as in, lose points for it) thing to do? it has the effect of increasing the file size of a "stored" file by 6 bytes. although this defeats the purpose of "compressing" certain files, even a decent, widely used file format like ZIP files can inflate if the only file in them is stored, not compressed.

-jason
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
file to store compressed data      Jaiya, Aparna      Wed Oct 10 2001 6:21 pm       
Re: file to store compressed data      Cipriani, Jason A.      Wed Oct 10 2001 9:16 pm       
Re: file to store compressed data      Maxim, Michael G.      Thu Oct 11 2001 5:56 pm       
Re: file to store compressed ...      Chen, Richard      Wed Oct 24 2001 4:14 am       

Back to previous screen