Unary coding: Difference between revisions

Content deleted Content added
Line 101:
|-
| 10 || 1000000000
|-
| colspan="2" | ...
|}
==Symmetric unary codes==
Following set of unary codes are symmetric and can be read in any direction. It is also instantaneously decodable in either direction.
{| class="wikitable" style="text-align: center;"
! n !! Unary code
|-
| 1 || 1
|-
| 2 || 00
|-
| 3 || 010
|-
| 4 || 0110
|-
| 5 || 01110
|-
| 6 || 011110
|-
| 7 || 0111110
|-
| 8 || 01111110
|-
| 9 || 011111110
|-
| 10 || 0111111110
|-
| colspan="2" | ...