Elias-Delta Code
The Elias-Delta code of x ≥ 1 is the Elias-Gamma code of ⌊log₂ x⌋ + 1 followed by the last ⌊log₂ x⌋ bits of x (its binary form without the leading 1).
Know these firstElias-Gamma Code
Formula#
Properties#
- Prefix-free: the Gamma part is self-delimiting and gives , hence the number of trailing bits.
- Asymptotically bits against Gamma’s , so more efficient for large integers; Gamma is shorter for small .
Example#
| Gamma of | Remaining bits | Code | ||
|---|---|---|---|---|
| 1 | 0 | 1 | none | 1 |
| 7 | 2 | 011 | 11 | 01111 |
| 16 | 4 | 00101 | 0000 | 001010000 |
Sources#
- DBIS Exam WS2122 (not published) Task 2.2 (codes for 1, 7, 16, Gamma part underlined)
- Not lectured in WS 25/26.