Binary code
≈ 5 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
A binary code is the value of a data-encoding convention represented in a binary notation that usually is a sequence of 0s and 1s, sometimes called a bit string. For example, ASCII is an 8-bit text encoding that in addition to the human readable form (letters) can be represented as binary.
Binary code can also refer to the mass noun code that is not human readable in nature such as machine code and bytecode. Even though all modern computer data is binary in nature, and therefore can be represented as binary, other numerical bases may be used.
Power of 2 bases (including hex and octal) are sometimes considered binary code since their power-of-2 nature makes them inherently linked to binary. Decimal is, of course, a commonly used representation. For example, ASCII characters are often represented as either decimal or hex.
Some types of data such as image data is sometimes represented as hex, but rarely as decimal.
A binary code is the value of a data-encoding convention represented in a binary notation that usually is a sequence of 0s and 1s, sometimes called a bit string. For example, ASCII is an 8-bit text encoding that in addition to the human readable form (letters) can be represented as binary.
Binary code can also refer to the mass noun code that is not human readable in nature such as machine code and bytecode. Even though all modern computer data is binary in nature, and therefore can be represented as binary, other numerical bases may be used.
Power of 2 bases (including hex and octal) are sometimes considered binary code since their power-of-2 nature makes them inherently linked to binary. Decimal is, of course, a commonly used representation. For example, ASCII characters are often represented as either decimal or hex.
Some types of data such as image data is sometimes represented as hex, but rarely as decimal.
Timeline
1875: Émile Baudot "Addition of binary strings in his ciphering system," which, eventually, led to the ASCII of today. 1884: The Linotype machine where the matrices are sorted to their corresponding channels after use by a binary-coded slide rail.
1932: C. E. Wynn-Williams "Scale of Two" counter 1936: Alan Turing's paper "On Computable Numbers" describes a process for automatic computing machines that are able to scan and understand binary code 1937: Alan Turing electro-mechanical binary multiplier 1937: George Stibitz "excess three" code in the Complex Computer 1937: Atanasoff–Berry Computer 1938: Konrad Zuse Z1
Rendering
A binary code can be rendered using any two distinguishable indications. In addition to the bit string, other notable ways to render a binary code are described below. Braille: Braille is a binary code that is widely used to enable the blind to read and write by touch.
The system consists of grids of six dots each, three per column, in which each dot is either raised or flat (not raised). The different combinations of raised and flat dots encode information such as letters, numbers, and punctuation. Bagua : The bagua is a set of diagrams used in feng shui, Taoist cosmology and I Ching studies.
The ba gua consists of 8 trigrams, each a combination of three lines (yáo) that are either broken (yin) or unbroken (yang). Ifá : The Ifá/Ifé system of divination in African religions, such as of Yoruba and Ewe, consists of an elaborate traditional ceremony producing 256 oracles made up by 16 symbols with 256 = 16 x 16.
A priest, or Babalawo, requests sacrifice from consulting clients and makes prayers. Then, divination nuts or a pair of chains are used to produce random binary numbers, which are drawn with sandy material on an "Opun" figured wooden tray representing the totality of fate.
Encoding
quadtree for a 2D index Innumerable encoding systems exists. Some notable examples are described here. ASCII: The American Standard Code for Information Interchange (ASCII) character encoding, is a 7-bit convention for representing (normal/printing) characters and control operations.
Each printing and control character is assigned a number from 0 to 127. For example, "a" is represented by decimal code 97 which is rendered as bit string 1100001 . Binary-coded decimal: Binary-coded decimal (BCD) is an encoding of integer values that consists of a 4-bit nibble for each decimal digit.
As a decimal digit is only 1 of 10 values (0 to 9) but 4 bits can encode up to 16 values, and BCD element is invalid for a value greater than 9.
External links
, predates binary number system. Table of general binary codes. An updated version of the tables of bounds for small general binary codes given in .
Table of Nonlinear Binary Codes. Maintained by Simon Litsyn, E. M. Rains, and N. J. A. Sloane. Updated until 1999. cites some pre-ENIAC milestones.
First book in the world fully written in binary code: ( IT ) Luigi Usai, 01010011 01100101 01100111 01110010 01100101 01110100 01101001, Independently published, 20231, . URL consulted September 8, 2023 .
Text derived from https://en.wikipedia.org/w/index.php?oldid=1374994216 under CC BY-SA 4.0; modifications have been made.
References
- ↩Wikipedia “Binary code” publication date (×1) · confidence 0.95 revision URL