https://github.com/cflems/huffman
A class project to explore the use of huffman trees in compression algorithms.
https://github.com/cflems/huffman
Last synced: about 1 year ago
JSON representation
A class project to explore the use of huffman trees in compression algorithms.
- Host: GitHub
- URL: https://github.com/cflems/huffman
- Owner: cflems
- Created: 2016-04-14T03:51:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T03:55:49.000Z (almost 10 years ago)
- Last Synced: 2025-01-08T01:33:43.656Z (over 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
[ COMPILING ]
If you have gcc installed, just use make and the program will compile
normally. Otherwise just compile all the c files included into one
executable.
make => compiles code into an executable
make clean => removes executable and all .huff and .dhuff files
make debug => compiles the code in debug mode, usable with gdb
[ ENCODING A FILE ]
./hufftree -e -i [input file] -o [output file]
./hufftree -e <[input file] >[output file]
or any combination of the above methods to specify the file names.
[ DECODING A FILE ]
./hufftree -d -i [input file] -o [output file]
./hufftree -d <[input file] >[output file]
or any combination of the above methods.
[ NOTES ]
This program is completely functional. One file can be compressed, moved, and decompressed into the same exact file. Binary files are fully supported, although images that are already compressed will most likely expand in size when compressed.