QUOTE(narf03 @ Dec 16 2019, 06:47 PM)
technically u can omit info that you do not need or figure a way to reduce the data, for example, instead of saving date (16/12/2019). u can use number of days since 1/1/1980 to reduce the number.
Clever boy!
QUOTE(narf03 @ Dec 16 2019, 06:47 PM)
in your example, if the string that you want to encode is limited to "a" to "z", which is only 26 characters(no upper or lower case), then there are 26^192 = 4.74x10^271 possibilities, so you will need a variable that can store that huge number, each byte can store a possibility of 256 possibilities(0-255, 2 byte=256x256, 4 byte=256^4), so you will need at least 113 byte (256^113=1.35*10^272) to store that.
so technically your data need to be base 26(a-z) and compressed data will be using max of base 256(ascii 0 - 255). but if you say your data is already base 256, then there is nothing much u can do about it.
I think you mean 2^5? 2^5 is already enough to store 32 different characters?
Practically, encoding "a"..."z" needs 5-bit only, the rest 3-bit can be joined with the next byte.....
(2^8 can store 256 different characters, if this is what you meant?)