To compress x bits, the -log (x) + log (2) bit is required. However, this is a very theoretical value, and it depends on the data you want to compress. For your data, you need to write down each character and frequency and insert it into the formula. For example, first try only 3 characters. You want to find the shannon code.
source share