any idea of how to make a program that compresses files, something along the lines of winzip but not as complex.
thanks for any help.
any idea of how to make a program that compresses files, something along the lines of winzip but not as complex.
thanks for any help.
Hooked On Phonics Didn't Work For Me!
You could try a search on www.planet-source-code.com for "Encryption" or "Encryption Algorithms", that will probably give you a horde of source-code examples.
If anyone wants a totally useless program I wrote that basically does exactly the opposite of compression, just ask... it can make a tiny text file a few megs... no reason to want it, I hope.
>You could try a search on www.planet-source-code.com for "Encryption" or "Encryption Algorithms",
Encryption has nothing to do with compression. I suggest you search for 'Huffman compression'.
yes, search for huffman, many college campus's websites have tutorials on how it's done.
passed the class b/c of those websites ;0
alright ill go and check it out
Hooked On Phonics Didn't Work For Me!
You cannot compress data. You can just store it differently, thus making it seem "compressed". All data compression schemes use some type of encoding. So compressed data is actually just encoded data.
A nice site on datacompression is this one:
www.data-compression.com/
A collection of links to compression algorithms:
http://www.softpanorama.org/Algorith...pression.shtml
Where are the results to the last contest? When they're up, you can look at them for examples of simple compression implementation
IMO, a beginner who tries to take on Huffman will fail, and become discouraged from learning in the future... go simple; Huffman can come later.
>You cannot compress data. You can just store it differently, thus making it seem "compressed". All data compression schemes use some type of encoding. So compressed data is actually just encoded data.
Urh!?
Let me apply this to another situation.
You cannot compress a sponge. You can just squeeze it, thus making it seem "compressed". All sponge compression schemes use some type of sqeezing. So a compressed sponged is actually just a sqeezed sponge.
I suppose it depends on what your definition of data is, and how pinicky you want to be.
For most real world situations, the following applies:
Big File >> COMPRESSION >> Smaller File
THIS IS MY 258th POST!
>go simple; Huffman can come later
You want try Range Encoding! This is were you keep pushing integers into a floating point number until it explodes, and hope to hell you can extract them at the other end.
However, BMJ is right. As alternative to huffman, run length encoding is a much simpler form of compression. This is suitable for gifs & line art graphics, but not much else.