https://github.com/kclejeune/huffmancompressor
Create files with Huffman Encodings based on input and compression files
https://github.com/kclejeune/huffmancompressor
huffman huffman-compression-algorithm huffman-encoder huffman-tree
Last synced: 16 days ago
JSON representation
Create files with Huffman Encodings based on input and compression files
- Host: GitHub
- URL: https://github.com/kclejeune/huffmancompressor
- Owner: kclejeune
- Created: 2018-02-23T06:58:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T08:00:44.000Z (about 7 years ago)
- Last Synced: 2024-12-27T13:43:55.193Z (11 months ago)
- Topics: huffman, huffman-compression-algorithm, huffman-encoder, huffman-tree
- Language: Java
- Homepage:
- Size: 10.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HuffmanEncoder
EECS 233 (Data Structures) Project -
Compress .txt files using Huffman Compression
## Background
Huffman coding uses a specific method for choosing the representation for each symbol, resulting in a prefix code (sometimes called "prefix-free codes", that is, the bit string representing some particular symbol is never a prefix of the bit string representing any other symbol). Huffman coding is such a widespread method for creating prefix codes that the term "Huffman code" is widely used as a synonym for "prefix code" even when such a code is not produced by Huffman's algorithm.
## Getting Started
Clone the repository using `git clone https://github.com/kclejeune/HuffmanCompressor.git`, and then naviage to the repository with `cd HuffmanCompressor`.
In its present form, the project will create an encoded file based on an input file and encoding file. You can build all necessary files with:
`javac /src/*.java`
To run it, use:
`java src/HuffmanCompressor inputFile encodingFile outputFile`
Note: In general, the input file and encoding file will be the same.