|
|
|
|
|
by aengvs
2875 days ago
|
|
>In fact, any lossless compression algorithm has the property that the output is (on average) at least as long as the input I don't think this is true. If it was, lossless compression would be useless in a lot of applications. It's pretty easy to come up with a counter example. E.g. (simple huffman code off the top of my head, not optimal) symbol -> code "00" -> "0" "01" -> "10" "10" -> "110" "11" -> "111" If "00" will appear 99.999% of the time, and the other 3 symbols only appear 0.001% of the time, the output will "on average" be slightly more than half the length of the input. |
|