https://github.com/ayonious/file-compression
📦 Zip and Unzip files using Huffman's code and LZW Algorithm
https://github.com/ayonious/file-compression
compression huffman-compression-algorithm java lzw-compression zip
Last synced: 6 months ago
JSON representation
📦 Zip and Unzip files using Huffman's code and LZW Algorithm
- Host: GitHub
- URL: https://github.com/ayonious/file-compression
- Owner: ayonious
- Created: 2016-06-07T19:37:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T22:43:14.000Z (about 8 years ago)
- Last Synced: 2023-10-20T18:01:27.174Z (about 2 years ago)
- Topics: compression, huffman-compression-algorithm, java, lzw-compression, zip
- Language: Java
- Homepage:
- Size: 211 KB
- Stars: 23
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Compression
A File Compression software that helps zip/Unzip files using these 2 algorihtms:
1. Huffmans Code
2. Lempel-Ziv-Wells algorithm
# About Huffmans Code
The Huffmans algo creates a 1-1 mapping for each byte of the input file
and replaces each byte with the mapped bit sequence. For this you need
to store a dictionary that describes each 1-1 mapping of input byte and
binary sequence.(which needs extraspace)
# About Lempel-Ziv-Wells
Unlike Huffmans code LZW dont need an extra dictionary to be saved. Also
LZW does not create a mapping to byte to bin sequence. It creates mapping
of multiple byte to binary sequence.
## Running Instruction:
```
java -jar FileCompression.jar
```

## Zip a file
file>open>click zip>the zipped file will be created on the same folder
## Unzip a file
file>open>click unzip>the unzipped file will be created on the same folder
## Testing environment:
I tested this project in:
Linux Mint, OS X El Capitan (version 10.11.6)