https://github.com/xi-plus/nkust-data-compression-midterm
資料壓縮期中 Data Compression Midterm
https://github.com/xi-plus/nkust-data-compression-midterm
homework nkust
Last synced: 8 months ago
JSON representation
資料壓縮期中 Data Compression Midterm
- Host: GitHub
- URL: https://github.com/xi-plus/nkust-data-compression-midterm
- Owner: Xi-Plus
- Created: 2018-11-15T10:35:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T09:37:24.000Z (over 7 years ago)
- Last Synced: 2025-08-23T10:33:02.427Z (10 months ago)
- Topics: homework, nkust
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NKUST-Data-Compression-Midterm
## Usage
**encode**
`python compress.py encode `
**decode**
`python compress.py decode `
Accepted algorithm:
* `nocompress` - No compression
* `lz78` - LZ78
* `xp01` - Invented by myself, only works for UTF-8 encoding
* `xp01b` - Invented by myself, similar to xp01, binary mode
* `xp02` - Invented by myself, combination of xp01 and huffman, only works for UTF-8 encoding
* `xp02b` - Invented by myself, combination of xp01 and huffman, similar to xp02, binary mode
* `huffman` - Huffman
* `auto` - Automatically choose the best of the above algorithms