Content deleted Content added
MindlessXD (talk | contribs) →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
# 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''.
|