Is it because it works on patterns and your random garbled string would have too much noise to be compressed well, while a structured file coming from an actual piece of software would probably have enough repeating patterns to the point where it actually can be shrunk?
Is it because it works on patterns and your random garbled string would have too much noise to be compressed well, while a structured file coming from an actual piece of software would probably have enough repeating patterns to the point where it actually can be shrunk?
yes. dictionary based compression is truly awful when fed random data.