Even–Rodeh coding: Difference between revisions

Content deleted Content added
Examples: Fill out table a bit more.
Encoding: fixed error in encoding algorithm
Line 5:
To code a [[non-negative integer]] ''N'' in Even-Rodeh coding:
# If ''N'' is not less than 4 then set the coded value to a single <code>0</code> bit. Otherwise the coded value is empty.
# If ''N'' is less than 48 then prepend the coded value with 3 bits containing the value of ''N'' and stop.
# Prepend the coded value with the [[binary numeral system|binary]] representation of ''N''.
# Store the number of bits prepended in step 3 as the new value of ''N''.