Clever Geek Handbook
📜 ⬆️ ⬇️

Exponential Golomb code

The Golomb exponential code of order k is a universal code parameterized by the integer k . Designed by Solomon Golomb . To encode a non-negative number into an exponential Golomb code of order k, you can use the following method:

  1. Take the number N in binary, without the last k digits. Add 1 to it (arithmetic): N = N + 1 . Record received N.
  2. Count the number of C bits in N.
  3. Subtract from C unit: C = C-1 . Write C zero bits before the selected number N.

For order k = 0, the code looks like this:

  0 => 1 => 1
 1 => 10 => 010
 2 => 11 => 011
 3 => 100 => 00100
 4 => 101 => 00101
 5 => 110 => 00110
 6 => 111 => 00111
 7 => 1000 => 0001000
 8 => 1001 => 0001001
 ...

The exponential Golomb code at k = 0 is used in the H.264 and MPEG-4 AVC video compression standards , in which it is also possible to encode signed numbers by assigning the value 0 to the '0' keyword in binary form and the subsequent assignment of code words to increasing input values amplitudes and variable signs.

The Golomb Exponential Code is also used in the Dirac uncompressed video encoding algorithm.

For k = 0, the Golomb exponential coding coincides with the Elias gamma code of the same number plus one. Thus, it can encode zero, while Elias's gamma code can encode only numbers greater than zero.

Despite its close name, Golomb exponential coding is only slightly similar to Golomb coding , which is a type of entropy coding but not a universal code.

See also

  • Levenshtein code
  • Elias Omega Code

Links

  • 7.5.3 Exponential-Golomb codes / Communicating Pictures: A Course in Image and Video Coding, Academic Press, 2014, ISBN 9780080993744 , p. 240
  • 2.5 Elias-Teuhola (“Exp-Golomb”) Codes / Amir Said, On the Determination of Optimal Parameterized Prefix Codes for Adaptive Entropy Coding. HPL-2006-74
Source - https://ru.wikipedia.org/w/index.php?title=Exponential_Golomb_code&oldid=96307429


More articles:

  • Undorovskoe rural settlement
  • Fog from London
  • Agrobiocenosis
  • Capital Territory
  • High Pressure Fuel Pump
  • Admiralty First Lords List
  • Melikova, Nonna Eduardovna
  • Gladshteyn, Leonid Isaakovich
  • Priganyuk, Yuri Andreevich
  • M270 MLRS

All articles

Clever Geek | 2019