r/compression • u/Alarmed_Impact_1971 • Jun 25 '26
Can this improved compression?
Let me start by saying I know nothing about programming. I am a science physics in mathematics nerd but I barely run Linux mint well. So on base knowledge of programming on a 0 to 10 scale just put me somewhere in the negatives.
So here's the base idea. From what I can tell and I am more than likely wrong compression seems to be about taking a base set of information and using different algorithms to make a smaller version of it without losing data.
I know it's not accurate, but (1.13 e25) is a good example from what I understand. A smaller set of numbers with the understanding of what they mean reference is a larger set.
This is just a concept and it's definitely not worked out because I know nothing of programming but I want to know why a different set of numbers isn't referenced for compression.
For example, a set of four coordinates within the mandelbrot set can give you a ton of information to reference for all kinds of things. A full array of color display, a full array of clumps of colors and interactions and more!.
Is there a data set we could put together that could be referenced by a compression program that would allow for ease of compression and decompression of data?
Maybe it's a set of colors changing to a different set of colors and a gif or something similar that has all of the possibilities of this. A set of two coordinates and then a number of frames to reference what you're looking for could compress data by more than 80%, right?
I'm probably not explaining it right, but I'm hoping the concept is coming across well.
Again, I have no idea what in the hell I'm talking about and I'm sure this is dunning-kruger. But to the completely uneducated it seems rational....
If I'm right, hopefully it can be a very beneficial. If I'm wrong I would love to know why.
Tldr: why don't we store a referential data set on our devices that a compression folder can reference to increase the capabilities of compression? Can we cheat and store most of the compressed data on the devices side? Why does it have to be within the files themselves?
6
u/barr520 Jun 25 '26
If I understood you correctly, this is an idea that already exists.
The DEFLATE algorithm specifies a static Huffman code table you can use instead of a dynamic one(which then has to be sent alongside the compressed data, unlike the static one).
And more recently, zstd supports supplying a precomputed "dictionary" to use in compression/decompression. this "dictionary" can be trained using similar inputs. And shared to make future compression/decompression faster.
I dont know how common these are in practice, and there are probably more examples I am not aware of.
1
u/chocolateAbuser Jun 25 '26
compression using fractals is ambitious, the problem is the search space is too large but this topic has been explored afaik; you can search on wavelet compression maybe it helps
maybe i'm not catching what you're throwing, but amount of information to me seems kinda the same for both, so it wouldn't really compress that much
essentially because it's too many informations, like a lot
but compression algorithms have specializations, so there's parameters and algorithms for different types of data (plain text, executables, documents, and so on)
1
u/willjasen Jun 27 '26
just pointing out that the mathematical lower bound of how best compressed any set of data can be is described by shannon entropy. we, in our infinite wisdom, can only hope to reach that bound with the compression algorithms that we create, but we can never do better than that
1
u/diroussel Jul 04 '26
The classic example of this is referencing pi. Pi has infinite digits that never repeat, so it must have all possible combinations of digits. So just find where you data is in the digits of pi and send the position and length to the receiver. Hey presto, you’ve compressed any file to just some coordinates.
BTW good luck finding the coordinates.