Information theory technique for assigning shorter encoding sequences to more frequently-occurring represented elements