Content deleted Content added
m Frap moved page Even-Rodeh coding to Even–Rodeh coding |
IznoRepeat (talk | contribs) m →References: add WP:TEMPLATECAT to remove from template; genfixes |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
'''
== Encoding ==
To code a [[non-negative integer]]
# If
# If
# Prepend the coded value with the [[binary numeral system|binary]] representation of
# Store the number of bits prepended in step 3 as the new value of
# Go back to step 2.
To decode an
# Read 3 bits and store the value into
#* If the first bit read was <code>0</code> then stop. The decoded number is
#* If the first bit read was <code>1</code> then continue to step 2.
# Examine the next bit.
#* If the bit is <code>0</code> then read 1 bit and stop. The decoded number is
#* If the bit is <code>1</code> then read
== Examples ==
Line 67:
== References ==
{{Reflist|refs=
<ref name="EvenRodeh">{{cite journal |author-first1=Shimon |author-last1=Even |author-link=Shimon Even |author-first2=Michael |author-last2=Rodeh |title=Economical encoding of commas between strings |journal=[[Communications of the ACM]] |volume=21 |issue=4 |pages=315–317 |date=April 1978 |doi=10.1145/359460.359480|doi-access=free }}</ref>
}}
{{Compression Methods}}
{{DEFAULTSORT:Even-Rodeh coding}}
[[Category:Lossless compression algorithms]]▼
[[Category:Entropy coding]]
|