Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pi file compression

Name: Anonymous 2018-08-13 10:37

You can compress any file to almost nothing using digits of pi. Ignore the decimal place.

All you need is the starting and ending digits. That's the entire pi file. Then, the uncompressed file is all of the digits in between (and including) the starting and ending digits, then converted to binary.

Example: if you want to represent the value 000000110000000100000100 (or 196868 in decimal, though it can be any sort of data type too), the pi file would just be [0,2] to include the 0th, 1st, and 2nd digits of pi (3, 1, and 4).

Name: Anonymous 2018-08-13 16:34

>>6
You don't need to be able to store every single number.

What you're saying is like saying a hard drive is useless because it doesn't have enough bits to store every number. Guess what? You don't need every single number.

Pi has enough combinations to work with everyday file sizes. And you could do combinations of sets, if you want to make it easier. In fact, chunking/partitioning/whatever could make it a whole lot more feasible. So you could do a few different sets of pi digits to specify an entire file, rather than just a start and finish one. It could still be highly effective for compression.

I know it's not practical by any stretch of the imagination, but that's not the point. /prog/ is for discussing programming and computer science, and that includes weird, experimental, and possibly impractical stuff.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List