Data-Compression
Data-Compression copied to clipboard
The implementation of various data compression techniques.
There exists some error in the code. For example, for probability list [0.15850000083446503, 0.15620000660419464, 0.15389999747276306, 0.12359999865293503, 0.11129999905824661, 0.10100000351667404, 0.0982000008225441, 0.09719999879598618], the program generates: Alphabet Codeword 0.09719999879598618 0101110 0.0982000008225441 0101111 0.10100000351667404...
[golomb_encode_decode.py](https://github.com/Ritwik00025/Data-Compression/blob/main/Golomb_Coding/golomb_encode_decode.py)  k bits is 0 bits, but you encode it for 1 bits. and if the m is 1 or 2, your decode will fail. [golomb_encode_decode.py#69](https://github.com/Ritwik00025/Data-Compression/blob/5e7b710603f4b1eb334150233ceb33a47ec4e555/Golomb_Coding/golomb_encode_decode.py#L69)