To a computer,
“word”
Is
120 111 114 100
(http://www.asciitable.com/mobile/)
So, ask yourself if You could write that shorter? Maybe you think, start with 120, subtract 9 for the next one, add 3, and then subtract 14.
120 -9 3 -14
That’s less info than the first way to store “word”.
It gets better if you have to store:
“wordwordwordword”
Because you could just say that you want to reiterate the last 4 letters, 4 times. So you’d get
120 -9 3 -14 4 4
That’s compression. Come up with an idea that uses less bytes, but says the same thing.
Latest Answers