r/AskComputerScience • u/ReturnToNull404 • Nov 01 '25
Lossless Compression
I invented a lossless compressor/algorithm/process that does not use the following...
Entropy coding, dictionary‑based methods, predictive/transform coding, run‑length encoding, or statistical modeling.
It uses math and logic. For all inputs of 4096 bits it results in a significantly reduced bit representation that self‑describes and defines itself back to the original 4096‑bit input losslessly. This makes the process input‑agnostic and should be able to perform lossless recursive compression. Given that my sample size is sufficiently large, with a 100 % success rate and an average reduction of around 200 bytes per block...
What other use cases may this process perform? I am thinking data transmission, compression, and potentially cryptographic implementations.
What would the market viability and value of something like this be?
Here is a result of a test case of 4096 bits illustrated by hexadecimal...
Original value: 512 bytes
1bb8be80b1cd4a6b126df471dd51ede16b10e95f88e5877a388017ed872588a23f3592d6a4ebb2d72de763af67c8b7a609e07115b551735861409f29aac58bd93cc7cd4d2b73cf609d6cd2c02a65739b38d3c6a5684fe871753f6c7d8077d7bb838024a070a229b36646682c6c573fd9de0a2e4583c69c208cb263ec0a00e7145a19e1dbcb27eb5f2a35e012b65ef48432dfc6391e1f1ab5ab867d77ff262f67a30acae7012f74d70226e33b85b3432b5c0289fa24f3201901ebf45c23898d28bae85b705ae1f608db2e68860ffd09ed68a11b77c36f5f85199c14498bd933ec88a99788eb1dd2af38ca0bce2891946d4cea6836048b3f10e5f8b679fb910da20fcd07c1dc5fba90c0d0c0962980e1887991448723a51670d25e12fe1ba84fd85235e8b941f79c22a44ed6c3868dbf8b3891709a9d1e0d98d01d15536ef311cdbed7a70d85ef2fa982b8a9367dd8f519e04a70691706c95f1aae37a042477b867fe5ed50fb461400af53f82e926ded3b46a04c3edd9ba9c9de9b935e6f871c73bec42f2c693fd550af2eb0d5624d7bd43e14aff8c886a4132f82072496167e91ce9944e986dbe3ede7c17352651450ad1d4a10bf2d372736905c4fec92dc675331c5ff9650b4d17ecd6583d44810f2c9173222db1617ffd67065cf1d081d17148a9414bab56f5c9216cf166f6eae44c08eb40baced097bf765cd2cd6de1e6bc1
Compressed value: 320 bytes
Returned value:
1bb8be80b1cd4a6b126df471dd51ede16b10e95f88e5877a388017ed872588a23f3592d6a4ebb2d72de763af67c8b7a609e07115b551735861409f29aac58bd93cc7cd4d2b73cf609d6cd2c02a65739b38d3c6a5684fe871753f6c7d8077d7bb838024a070a229b36646682c6c573fd9de0a2e4583c69c208cb263ec0a00e7145a19e1dbcb27eb5f2a35e012b65ef48432dfc6391e1f1ab5ab867d77ff262f67a30acae7012f74d70226e33b85b3432b5c0289fa24f3201901ebf45c23898d28bae85b705ae1f608db2e68860ffd09ed68a11b77c36f5f85199c14498bd933ec88a99788eb1dd2af38ca0bce2891946d4cea6836048b3f10e5f8b679fb910da20fcd07c1dc5fba90c0d0c0962980e1887991448723a51670d25e12fe1ba84fd85235e8b941f79c22a44ed6c3868dbf8b3891709a9d1e0d98d01d15536ef311cdbed7a70d85ef2fa982b8a9367dd8f519e04a70691706c95f1aae37a042477b867fe5ed50fb461400af53f82e926ded3b46a04c3edd9ba9c9de9b935e6f871c73bec42f2c693fd550af2eb0d5624d7bd43e14aff8c886a4132f82072496167e91ce9944e986dbe3ede7c17352651450ad1d4a10bf2d372736905c4fec92dc675331c5ff9650b4d17ecd6583d44810f2c9173222db1617ffd67065cf1d081d17148a9414bab56f5c9216cf166f6eae44c08eb40baced097bf765cd2cd6de1e6bc1
Percentage reduction: 37.5 %
TL;DR
What is the potential market value of a lossless compressor that can recursively compress, or compress encrypted data, or already compressed data?
Also, I am considering/planning to receive peer review at a university... Any advice?
12
u/mulch_v_bark Nov 01 '25
Yeah: read a little more about compression (specifically the pigeonhole principle) or prepare to be laughed at.
Would you please choose 257 different inputs, and, for each input, publicly demonstrate recursive compression down to one byte each, then decompression back to each original?
9
u/MrBorogove Nov 01 '25
It is not possible to encode all inputs of n bits losslessly to fewer than n bits.
There are 24096 different possible inputs. Say you always encode to 4095 bits. That would mean there were 24095 possible outputs. There's no way to uniquely map 24095 things to 24096 things.
You may have an encoder that works well on a large subset of the 4096-bit space, but that would imply that some inputs grow to larger outputs.
4
u/DerHeiligste Nov 01 '25
All 4096 bit inputs? There are 24096 of those. If your compressed forms are all smaller than that, then there are fewer than 24096 of them. So you can't recover all of the original inputs.
4
u/SignificantFidgets Nov 01 '25
Nope. That's impossible. Not just "hard to do" or "difficult to find a way to do" or ... it's simply impossible.
And yes, that's without a doubt. "One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable,while those of all other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts." -- Albert Einstein
2
u/DerHeiligste Nov 01 '25
Also, brand new account. Clearly a troll.
4
u/teraflop Nov 01 '25
Are you the same person who made this thread a month ago claiming to have exactly the same thing?
In that thread, it was explained at length why what you're claiming is impossible. It is extraordinarily likely that you've been misled by an LLM.
1
u/rupertavery64 Nov 01 '25
Is it anything like arithmetic coding?
https://en.wikipedia.org/wiki/Arithmetic_coding
1
u/high_throughput Nov 01 '25
If you could get a 20% improvement on compressed data I have zero doubt that you could make $100M in licensing.
1
u/nuclear_splines Ph.D Data Science Nov 01 '25
What you've claimed is provably impossible. You may have an algorithm that works for some inputs, but you cannot losslessly compress all inputs by the pigeonhole principle. The algorithm must either have collisions, so it is not lossless, or a tradeoff where some inputs are made larger rather than smaller.
1
u/Gyrgir Nov 01 '25
Your "original value" and your "returned value" in the post are the exact same length, and moreover, are the exact same hex digits. Unless you accidentally pasted the wrong line for the return value, you are "compressing" you input by 0%.
1
u/DerHeiligste Nov 04 '25
Maybe you could tell us more about the sampling method you're using to choose the blocks you test?
2
u/TransientVoltage409 Nov 01 '25
Very high, of course. Right up there with perpetual motion and water carburetors.
Everyone who dabbles in compression eventually thinks they've invented recursive compression. They are always wrong. Whatever fallacy you've seized on, I assure you it can be reduced to a claim of 1==2.
0
u/[deleted] Nov 01 '25
[removed] — view removed comment