|
Levenshtein coding is a universal code encoding the non-negative integers developed by Vladimir Levenshtein. The code of zero is "0"; to code a positive number:
The code begins: 0 0 1 10 2 110 0 3 110 1 4 1110 0 00 5 1110 0 01 6 1110 0 10 7 1110 0 11 8 1110 1 000 9 1110 1 001 10 1110 1 010 11 1110 1 011 12 1110 1 100 13 1110 1 101 14 1110 1 110 15 1110 1 111 16 11110 0 00 0000 17 11110 0 00 0001 To decode a Levenstein-coded integer:
The Levenstein code of a positive integer is always one bit longer than the Elias omega code of that integer. See alsoSources
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net