4 ms·
Ah, but let me go through the possibilities. Neither side compressed: okay the file is the original length, let's move on Both sides compressed: okay you spli
by Dylan16807 14y ago
Ah, but let me go through the possibilities.
Neither side compressed: okay the file is the original length, let's move on
Both sides compressed: okay you split it in half and decompress each side, you found the lucky one in four two-bit savings
One side compressed: uh oh, you don't know which half compressed. if you want to decompress you're going to need extra info to know where the first half ends.
You could add an extra bit to store which side compressed but then you lose the compression. You could decide to only accept situations where side A compressed, but then you're back to only half the files compressing. etc. There is no way to take advantage of splitting random data into variable-sized chunks because storing the boundaries needs just as many bits.