Prefix code: Difference between revisions

Content deleted Content added
Monkbot (talk | contribs)
m Task 18 (cosmetic): eval 7 templates: hyphenate params (2×);
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Line 1:
A '''prefix code''' is a type of [[code]] system distinguisheдооьм
A '''prefix code''' is a type of [[code]] system distinguished by its possession of the "prefix property", which requires that there is no whole [[code word]] in the system that is a [[prefix (computer science)|prefix]] (initial segment) of any other code word in the system. It is trivially true for fixed-length code, so only a point of consideration in [[variable-length code]].
 
 
 
 
 
 
 
 
 
Оорорлршр
A '''prefix code''' is a type of [[code]] system distinguishedd by its possession of the "prefix property", which requires that there is no whole [[code word]] in the system that is a [[prefix (computer science)|prefix]] (initial segment) of any other code word in the system. It is trivially true for fixed-length code, so only a point of consideration in [[variable-length code]].
 
For example, a code with code words {9, 55} has the prefix property; a code consisting of {9, 5, 59, 55} does not, because "5" is a prefix of "59" and also of "55". A prefix code is a [[uniquely decodable code]]: given a complete and accurate sequence, a receiver can identify each word without requiring a special marker between words. However, there are uniquely decodable codes that are not prefix codes; for instance, the reverse of a prefix code is still uniquely decodable (it is a suffix code), but it is not necessarily a prefix code.