A python compression and decompression program based on Arithmetic Coding.
Arithmetic coding is a way to encode a list of symbols into a single fraction f, where 0 ≤ f < 1.
#Type of data compress gray scale image.
put path of your image in sample.json file
main will run automatically encode.py decode.py
Block_size=4 && float64 are recommended.