3 ms·
It'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
by pentamassiv 4y ago
It'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.