Comment on Am I entitled to compensation?

<- View Parent
marzhall@lemmy.world ⁨1⁩ ⁨week⁩ ago

If you explore compression using pi - i.e., giving an index and a length of pi as your compression method - what you’ll end up finding is that the length of the data you want to compress is about the same as the length of the index in pi your data is at.

So if you wanted to “compress” five digits by just linking to its index in pi, you would most likely need a five-digit index into pi to find the spot where pi has that number. So, you save nothing on average.

There’s a good blog post that goes into this, but I’m having trouble finding it. The rough explanation I can remember is: if you have every permutation of a given length n in a row with an even distribution, then a random string you choose is likely to be in the middle of that length. Using our numbers 0-9 as our base, that puts you at index 10^n/2. Given our example of 5 digits, that’s 100000/2 - 50000, itself a 5 digit number, saving us no space.

In the mean time, you can use pifs to “store” your data using similar ideas.

source
Sort:hotnewtop