PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
code (Definition)

Let $ A$ be an alphabet. A code over $ A$ is any subset $ C$ of the set of words $ A^*$ on the alphabet $ A$ such that $ C$ has “uniquue factorization into letters,” i.e., such that for whenever $ a_1\ldots a_n=b_1\ldots b_m$, with all $ a_i,b_j\in C$, then we have $ n=m$ and $ a_i=b_i$ for all $ i$. In other words, every “word over $ A$generated by $ C$ (considered as an alphabet) can be uniquely factored into “letters” in C.

An example of a subset of $ A^*$ which is not a code is given by $ C=\lbrace ab, c, a, bc \rbrace$. Here the word $ abc$ can be written either as $ (ab)c$ or as $ a(bc)$ in terms of elements of $ C$. Since $ ab \ne a$ nor $ c\ne bc$, $ C$ is not a code.

If we fix a length $ n$ for the words, i.e. we require that $ C\subset A^n$, then we call $ C$ a block code, and call $ n$ the block length of the code. An important property of a code is the code's minimum distance, given by the minimum Hamming distance between any pair of words in $ C$.

This notion of code is obviously very general. In practice (i.e., in coding theory) one typically takes codes with a little more structure. See, in particular, linear codes.



"code" is owned by mathcam.
(view preamble)

View style:

Also defines:  code, block length, minimum distance
Log in to rate this entry.
(view current ratings)

Cross-references: linear codes, structure, theory, Hamming distance, property, block, length, fix, terms, generated by, subset, alphabet
There are 24 references to this entry.

This is version 6 of code, born on 2004-05-05, modified 2007-11-12.
Object id is 5835, canonical name is Code2.
Accessed 6891 times total.

Classification:
AMS MSC68P05 (Computer science :: Theory of data :: Data structures)
 68P30 (Computer science :: Theory of data :: Coding and information theory )

Pending Errata and Addenda
None.
[ View all 4 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)