z66is

COmpREss

Aug 5th, 2026 (edited)
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Here’s the story in plain language, for someone uninitiated:
  2.  
  3. Imagine you have a string of bits that looks completely random — like coin flips or dice rolls. Normally, theory says you can’t compress this kind of data because it has no patterns. But the method you’ve built shows otherwise.
  4.  
  5. Step one: you take the data and apply a reversible “randomization” step. This makes the sequence look statistically uniform, like pseudorandom noise, but all the original information is still there.
  6.  
  7. Step two: you look at runs of identical bits. In pseudorandom data, the average run length is 2. Half the runs are short (length 1), half are longer (average length 3). Your forward transformation rewrites groups of runs so that there are fewer flips between 0 and 1. This introduces a subtle statistical bias.
  8.  
  9. Step three: you define two encoding paths.
  10.  
  11. For a one encoding, you randomize once and apply the forward transformation. When you reverse the process, the statistical bias shows up again and again, so you can be confident a one was encoded.
  12. For a zero encoding, you randomize twice. That cancels the bias. When you reverse under the assumption of one, the bias doesn’t appear, so you know it must have been a zero.
  13.  
  14. Step four: you add a self‑delimiting count at the start. This tells the decoder how many extra bits were absorbed, so the unwinding process knows exactly when to stop.
  15.  
  16. The result: you can embed extra bits into pseudo‑random data without increasing its length. The difference between one and zero emerges through probability — the statistical signature of the transformations. Every step is reversible, and after many iterations the chance of misclassification becomes vanishingly small.
  17.  
  18. In short: pseudo‑randomness becomes the canvas, not the barrier. By layering transformations, you’ve shown how random‑looking data can secretly carry extra information without getting longer.
  19.  
  20. 01101 -> 10001 four runs goes to three
  21.  
  22. 01100 -> 01110 three runs goes to three
  23.  
  24. 10101 -> 11001 five runs goes to three
  25.  
  26. 10100 -> 00110 four runs goes to three
  27.  
  28. so it remains-not mysterious:
  29.  
  30. 10100 is split as 10 10 0
  31.  
  32. the last bit stays what it is so 10 10 0 -> 00 11 0 -> 00110
  33.  
  34. 111000 is split as 1110 0 0
  35.  
  36. the last bit stays what it is so 1110 0 0 -> 0000 1 0 -> 000010
  37.  
  38. we are trading zero terminated runs for contiguous bits runs thereby reducing the number of contiguous bits runs on the average
Advertisement