encode
python compress.py encode <algorithm> <input file name> <output file name>
decode
python compress.py decode <algorithm> <input file name> <output file name>
Accepted algorithm:
nocompress
- No compressionlz78
- LZ78xp01
- Invented by myself, only works for UTF-8 encodingxp01b
- Invented by myself, similar to xp01, binary modexp02
- Invented by myself, combination of xp01 and huffman, only works for UTF-8 encodingxp02b
- Invented by myself, combination of xp01 and huffman, similar to xp02, binary modehuffman
- Huffmanauto
- Automatically choose the best of the above algorithms