2 ms·
I wdoenr waht hpaepns if you jsut mix up the oderr of the lteetrs indsie ecah wrod. Even better, it turns out.
by jrockway 4y ago
I wdoenr waht hpaepns if you jsut mix up the oderr of the lteetrs indsie ecah wrod.
Even better, it turns out.
- pentamassiv 4y agoIt's easier to read, but not as good to compress since you'd have to store those letters. If the letters in the middle are the same, you only have to store the count of replaced letters. One byte should be enough for that.
- 8organicbits 4y agoIf you sort the inner letters instead of randomize then you only need to keep track of the distance from one letter to the next. byte -> btye -> bt5e letters -> leertts -> le0,13,2,0s You'd need to encode the offsets differently of course. There's probably other compression you can do when order doesn't matter.