Code
This article needs additional citations for verification. (March 2010) |
In
The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands, such as English or/and Spanish.
One reason for coding is to enable communication in places where ordinary
Theory
In
Before giving a mathematically precise definition, this is a brief example. The mapping
is a code, whose source alphabet is the set and whose target alphabet is the set . Using the extension of the code, the encoded string 0011001 can be grouped into codewords as 0 011 0 01, and these in turn can be decoded to the sequence of source symbols acab.
Using terms from
Variable-length codes
In this section, we consider codes that encode each source (clear text) character by a
A prefix code is a code with the "prefix property": there is no valid code word in the system that is a
Error-correcting codes
Codes may also be used to represent data in a way more resistant to errors in transmission or storage. This so-called
Examples
Codes in communication used for brevity
A cable code replaces words (e.g. ship or invoice) with shorter words, allowing the same information to be sent with fewer characters, more quickly, and less expensively.
Codes can be used for brevity. When
Character encodings
Character encodings are representations of textual data. A given character encoding may be associated with a specific character set (the collection of characters which it can represent), though some character sets have multiple character encodings and vice versa. Character encodings may be broadly grouped according to the number of bytes required to represent a single character: there are single-byte encodings,
Genetic code
Gödel code
In
Other
There are codes using colors, like
In marketing, coupon codes can be used for a financial discount or rebate when purchasing a product from a (usual internet) retailer.
In military environments, specific sounds with the cornet are used for different uses: to mark some moments of the day, to command the infantry on the battlefield, etc.
Communication systems for sensory impairments, such as sign language for deaf people and braille for blind people, are based on movement or tactile codes.
Musical scores are the most common way to encode music.
Specific games have their own code systems to record the matches, e.g. chess notation.
Cryptography
In the history of cryptography, codes were once common for ensuring the confidentiality of communications, although ciphers are now used instead.
Secret codes intended to obscure the real messages, ranging from serious (mainly espionage in military, diplomacy, business, etc.) to trivial (romance, games) can be any kind of imaginative encoding: flowers, game cards, clothes, fans, hats, melodies, birds, etc., in which the sole requirement is the pre-agreement on the meaning by both the sender and the receiver.
Other examples
Other examples of encoding include:
- Encoding (in cognition) - a basic perceptual process of interpreting incoming stimuli; technically speaking, it is a complex, multi-stage process of converting relatively objective sensory input (e.g., light, sound) into a subjectively meaningful experience.
- A content format - a specific encoding format for converting a specific type of data to information.
- Text encoding uses a markup language to tag the structure and other features of a text to facilitate processing by computers. (See also Text Encoding Initiative.)
- Semantics encoding of formal language A informal language B is a method of representing all terms (e.g. programs or descriptions) of language A using language B.
- storage, generally done with a codec.
- Neural encoding - the way in which information is represented in neurons.
- Memory encoding- the process of converting sensations into memories.
Other examples of decoding include:
- Decoding (computer science)
- Decoding methods, methods in communication theory for decoding codewords sent over a noisy channel
- Digital signal processing, the study of signals in a digital representation and the processing methods of these signals
- Digital-to-analog converter, the use of analog circuit for decoding operations
- Word decoding, the use of phonics to decipher print patterns and translate them into the sounds of language
Codes and acronyms
Acronyms and abbreviations can be considered codes, and in a sense, all languages and writing systems are codes for human thought.
Occasionally, a code word achieves an independent existence (and meaning) while the original equivalent phrase is forgotten or at least no longer has the precise meaning attributed to the code word. For example, '30' was widely used in journalism to mean "end of story", and has been used in other contexts to signify "the end".[1] [2]
See also
- Asemic writing
- Cipher
- Code (semiotics)
- Equipment codes
- Quantum error correction
- Semiotics
- Universal language
References
- ^ Kogan, Hadass "So Why Not 29" Archived 2010-12-12 at the Wayback Machine American Journalism Review. Retrieved 2012-07-03.
- ^ "Western Union "92 Code" & Wood's "Telegraphic Numerals"". Signal Corps Association. 1996. Archived from the original on 2012-05-09. Retrieved 2012-07-03.
- Chevance, Fabienne (2017). "Case for the genetic code as a triplet of triplets". Proceedings of the National Academy of Sciences of the United States of America. 114 (18): 4745–4750. PMID 28416671.
Further reading
- Codes and Abbreviations for the Use of the International Telecommunication Services (2nd ed.). Geneva, Switzerland: International Telecommunication Union. 1963. OCLC 13677884.