The bit is the most basic
unit of information in
computing and digital
communication
Communication (from la, communicare, meaning "to share" or "to be in relation with") is usually defined as the transmission of information. The term may also refer to the message communicated through such transmissions or the field of inqu ...
s. The name is a
portmanteau of binary digit.
The bit represents a
logical state with one of two possible
values. These values are most commonly represented as either , but other representations such as ''true''/''false'', ''yes''/''no'', ''on''/''off'', or ''+''/''−'' are also commonly used.
The relation between these values and the physical states of the underlying
storage
Storage may refer to:
Goods Containers
* Dry cask storage, for storing high-level radioactive waste
* Food storage
* Intermodal container, cargo shipping
* Storage tank
Facilities
* Garage (residential), a storage space normally used to store car ...
or
device
A device is usually a constructed tool. Device may also refer to:
Technology Computing
* Device, a colloquial term encompassing desktops, laptops, tablets, smartphones, etc.
* Device file, an interface of a device driver
* Peripheral, any devi ...
is a matter of convention, and different assignments may be used even within the same device or
program. It may be physically implemented with a two-state device.
The symbol for the binary digit is either "bit" per recommendation by the
IEC 80000-13
ISO 80000 or IEC 80000 is an international standard introducing the International System of Quantities (ISQ).
It was developed and promulgated jointly by the International Organization for Standardization (ISO) and the International Electrote ...
:2008 standard, or the lowercase character "b", as recommended by the
IEEE 1541-2002
IEEE 1541-2002 is a standard issued in 2002 by the Institute of Electrical and Electronics Engineers (IEEE) concerning the use of prefixes for binary multiples of units of measurement related to digital electronics and computing.
While the Interna ...
standard.
A contiguous group of binary digits is commonly called a ''
bit string'', a bit vector, or a single-dimensional (or multi-dimensional) ''
bit array''.
A group of eight bits is called one ''
byte'', but historically the size of the byte is not strictly defined.
Frequently, half, full, double and quadruple words consist of a number of bytes which is a low power of two. A string of four bits is a ''
nibble
In computing, a nibble (occasionally nybble, nyble, or nybl to match the spelling of byte) is a four-bit aggregation, or half an octet. It is also known as half-byte or tetrade. In a networking or telecommunication context, the nibble is oft ...
''.
In
information theory
Information theory is the scientific study of the quantification (science), quantification, computer data storage, storage, and telecommunication, communication of information. The field was originally established by the works of Harry Nyquist a ...
, one bit is the
information entropy of a random
binary variable that is 0 or 1 with equal probability,
or the information that is gained when the value of such a variable becomes known.
As a
unit of information, the bit is also known as a ''
shannon'',
named after
Claude E. Shannon
Claude Elwood Shannon (April 30, 1916 – February 24, 2001) was an American mathematician, electrical engineer, and cryptographer known as a "father of information theory".
As a 21-year-old master's degree student at the Massachusetts Institu ...
.
History
The encoding of data by discrete bits was used in the
punched cards invented by
Basile Bouchon
Basile Bouchon () was a textile worker in the silk center in Lyon who invented a way to control a loom with a perforated paper tape in 1725. The son of an organ maker, Bouchon partially automated the tedious setting up process of the drawloom in ...
and Jean-Baptiste Falcon (1732), developed by
Joseph Marie Jacquard
Joseph Marie Charles ''dit'' (called or nicknamed) Jacquard (; 7 July 1752 – 7 August 1834) was a French weaver and merchant. He played an important role in the development of the earliest programmable loom (the " Jacquard loom"), which in tu ...
(1804), and later adopted by
Semyon Korsakov
Semyon Nikolaevich Korsakov (russian: Семён Николаевич Корсаков, ) (14 January 1787 – 1 December 1853 OS) was a Russian government official, noted both as a homeopath and an inventor who was involved with an early vers ...
,
Charles Babbage
Charles Babbage (; 26 December 1791 – 18 October 1871) was an English polymath. A mathematician, philosopher, inventor and mechanical engineer, Babbage originated the concept of a digital programmable computer.
Babbage is considered ...
,
Hermann Hollerith
Herman Hollerith (February 29, 1860 – November 17, 1929) was a German-American statistician, inventor, and businessman who developed an electromechanical tabulating machine for punched cards to assist in summarizing information and, later, in ...
, and early computer manufacturers like
IBM. A variant of that idea was the perforated
paper tape
Five- and eight-hole punched paper tape
Paper tape reader on the Harwell computer with a small piece of five-hole tape connected in a circle – creating a physical program loop
Punched tape or perforated paper tape is a form of data storage ...
. In all those systems, the medium (card or tape) conceptually carried an array of hole positions; each position could be either punched through or not, thus carrying one bit of information. The encoding of text by bits was also used in
Morse code
Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called ''dots'' and ''dashes'', or ''dits'' and ''dahs''. Morse code is named after Samuel Morse, one of ...
(1844) and early digital communications machines such as
teletypes
A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations. Initia ...
and
stock ticker machine
Ticker tape was the earliest electrical dedicated financial communications medium, transmitting stock price information over telegraph lines, in use from around 1870 through 1970. It consisted of a paper strip that ran through a machine called a ...
s (1870).
Ralph Hartley suggested the use of a logarithmic measure of information in 1928.
Claude E. Shannon first used the word "bit" in his seminal 1948 paper "
A Mathematical Theory of Communication".
He attributed its origin to
John W. Tukey, who had written a Bell Labs memo on 9 January 1947 in which he contracted "binary information digit" to simply "bit".
Vannevar Bush had written in 1936 of "bits of information" that could be stored on the
punched cards used in the mechanical computers of that time.
The first programmable computer, built by
Konrad Zuse, used binary notation for numbers.
Physical representation
A bit can be stored by a digital device or other physical system that exists in either of two possible distinct
states. These may be the two stable states of a flip-flop, two positions of an
electrical switch, two distinct
voltage or
current levels allowed by a
circuit
Circuit may refer to:
Science and technology
Electrical engineering
* Electrical circuit, a complete electrical network with a closed-loop giving a return path for current
** Analog circuit, uses continuous signal levels
** Balanced circu ...
, two distinct levels of
light intensity, two directions of
magnetization
In classical electromagnetism, magnetization is the vector field that expresses the density of permanent or induced magnetic dipole moments in a magnetic material. Movement within this field is described by direction and is either Axial or Di ...
or
polarization
Polarization or polarisation may refer to:
Mathematics
*Polarization of an Abelian variety, in the mathematics of complex manifolds
*Polarization of an algebraic form, a technique for expressing a homogeneous polynomial in a simpler fashion by ...
, the orientation of reversible double stranded
DNA, etc.
Bits can be implemented in several forms. In most modern computing devices, a bit is usually represented by an
electrical voltage or
current pulse, or by the electrical state of a flip-flop circuit.
For devices using
positive logic
In digital circuits, a logic level is one of a finite number of states that a digital signal can inhabit. Logic levels are usually represented by the voltage difference between the signal and ground, although other standards exist. The range of ...
, a digit value of (or a logical value of true) is represented by a more positive voltage relative to the representation of . The specific voltages are different for different logic families and variations are permitted to allow for component aging and noise immunity. For example, in
transistor–transistor logic (TTL) and compatible circuits, digit values and at the output of a device are represented by no higher than 0.4 volts and no lower than 2.6 volts, respectively; while TTL inputs are specified to recognize 0.8 volts or below as and 2.2 volts or above as .
Transmission and processing
Bits are transmitted one at a time in
serial transmission, and by a multiple number of bits in
parallel transmission. A
bitwise operation
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher-level arithmetic operati ...
optionally processes bits one at a time. Data transfer rates are usually measured in decimal SI multiples of the unit
bit per second (bit/s), such as kbit/s.
Storage
In the earliest non-electronic information processing devices, such as Jacquard's loom or Babbage's
Analytical Engine
The Analytical Engine was a proposed mechanical general-purpose computer designed by English mathematician and computer pioneer Charles Babbage. It was first described in 1837 as the successor to Babbage's difference engine, which was a des ...
, a bit was often stored as the position of a mechanical lever or gear, or the presence or absence of a hole at a specific point of a
paper card or
tape
Tape or Tapes may refer to:
Material
A long, narrow, thin strip of material (see also Ribbon (disambiguation):
Adhesive tapes
* Adhesive tape, any of many varieties of backing materials coated with an adhesive
*Athletic tape, pressure-sensitiv ...
. The first electrical devices for discrete logic (such as
elevator and
traffic light control
circuits,
telephone switches, and Konrad Zuse's computer) represented bits as the states of
electrical relays which could be either "open" or "closed". When relays were replaced by
vacuum tubes, starting in the 1940s, computer builders experimented with a variety of storage methods, such as pressure pulses traveling down a
mercury delay line
Delay-line memory is a form of computer memory, now obsolete, that was used on some of the earliest digital computers. Like many modern forms of electronic computer memory, delay-line memory was a refreshable memory, but as opposed to modern r ...
, charges stored on the inside surface of a
cathode-ray tube
A cathode-ray tube (CRT) is a vacuum tube containing one or more electron guns, which emit electron beams that are manipulated to display images on a phosphorescent screen. The images may represent electrical waveforms (oscilloscope), pictur ...
, or opaque spots printed on
glass discs by
photolithographic techniques.
In the 1950s and 1960s, these methods were largely supplanted by
magnetic storage devices such as
magnetic-core memory,
magnetic tape
Magnetic tape is a medium for magnetic storage made of a thin, magnetizable coating on a long, narrow strip of plastic film. It was developed in Germany in 1928, based on the earlier magnetic wire recording from Denmark. Devices that use magne ...
s,
drums
A drum kit (also called a drum set, trap set, or simply drums) is a collection of drums, cymbals, and other Percussion instrument, auxiliary percussion instruments set up to be played by one person. The player (drummer) typically holds a pair o ...
, and
disks, where a bit was represented by the polarity of
magnetization
In classical electromagnetism, magnetization is the vector field that expresses the density of permanent or induced magnetic dipole moments in a magnetic material. Movement within this field is described by direction and is either Axial or Di ...
of a certain area of a
ferromagnetic
Ferromagnetism is a property of certain materials (such as iron) which results in a large observed magnetic permeability, and in many cases a large magnetic coercivity allowing the material to form a permanent magnet. Ferromagnetic materials ...
film, or by a change in polarity from one direction to the other. The same principle was later used in the
magnetic bubble memory
Bubble memory is a type of non-volatile computer memory that uses a thin film of a magnetic material to hold small magnetized areas, known as ''bubbles'' or ''domains'', each storing one bit of data. The material is arranged to form a series of ...
developed in the 1980s, and is still found in various
magnetic strip items such as
metro tickets and some
credit cards.
In modern
semiconductor memory
Semiconductor memory is a digital electronic semiconductor device used for digital data storage, such as computer memory. It typically refers to devices in which data is stored within metal–oxide–semiconductor (MOS) memory cells on a sili ...
, such as
dynamic random-access memory
Dynamic random-access memory (dynamic RAM or DRAM) is a type of random-access semiconductor memory that stores each bit of data in a memory cell, usually consisting of a tiny capacitor and a transistor, both typically based on metal-oxide ...
, the two values of a bit may be represented by two levels of
electric charge stored in a
capacitor. In certain types of
programmable logic arrays and
read-only memory, a bit may be represented by the presence or absence of a conducting path at a certain point of a circuit. In
optical discs, a bit is encoded as the presence or absence of a
microscopic pit on a reflective surface. In one-dimensional
bar codes, bits are encoded as the thickness of alternating black and white lines.
Unit and symbol
The bit is not defined in the
International System of Units
The International System of Units, known by the international abbreviation SI in all languages and sometimes pleonastically as the SI system, is the modern form of the metric system and the world's most widely used system of measurement. E ...
(SI). However, the
International Electrotechnical Commission
The International Electrotechnical Commission (IEC; in French: ''Commission électrotechnique internationale'') is an international standards organization that prepares and publishes international standards for all electrical, electronic and r ...
issued standard
IEC 60027, which specifies that the symbol for binary digit should be 'bit', and this should be used in all multiples, such as 'kbit', for kilobit.
However, the lower-case letter 'b' is widely used as well and was recommended by the
IEEE 1541 Standard (2002). In contrast, the upper case letter 'B' is the standard and customary symbol for byte.
Multiple bits
Multiple bits may be expressed and represented in several ways. For convenience of representing commonly reoccurring groups of bits in information technology, several
units of information have traditionally been used. The most common is the unit
byte, coined by
Werner Buchholz in June 1956, which historically was used to represent the group of bits used to encode a single
character
Character or Characters may refer to:
Arts, entertainment, and media Literature
* ''Character'' (novel), a 1936 Dutch novel by Ferdinand Bordewijk
* ''Characters'' (Theophrastus), a classical Greek set of character sketches attributed to The ...
of text (until
UTF-8 multibyte encoding took over) in a computer
and for this reason it was used as the basic
addressable element in many
computer architectures. The trend in hardware design converged on the most common implementation of using eight bits per byte, as it is widely used today. However, because of the ambiguity of relying on the underlying hardware design, the unit
octet was defined to explicitly denote a sequence of eight bits.
Computers usually manipulate bits in groups of a fixed size, conventionally named "
words". Like the byte, the number of bits in a word also varies with the hardware design, and is typically between 8 and 80 bits, or even more in some specialized computers. In the 21st century, retail personal or server computers have a word size of 32 or 64 bits.
The
International System of Units
The International System of Units, known by the international abbreviation SI in all languages and sometimes pleonastically as the SI system, is the modern form of the metric system and the world's most widely used system of measurement. E ...
defines a series of decimal prefixes for multiples of standardized units which are commonly also used with the bit and the byte. The prefixes
kilo (10
3) through
yotta (10
24) increment by multiples of one thousand, and the corresponding units are the
kilobit (kbit) through the
yottabit (Ybit).
Information capacity and information compression
When the information capacity of a storage system or a communication channel is presented in ''bits'' or ''bits per second'', this often refers to binary digits, which is a
computer hardware
Computer hardware includes the physical parts of a computer, such as the computer case, case, central processing unit (CPU), Random-access memory, random access memory (RAM), Computer monitor, monitor, Computer mouse, mouse, Computer keyboard, ...
capacity to store binary data ( or , up or down, current or not, etc.).
Information capacity of a storage system is only an upper bound to the quantity of information stored therein. If the two possible values of one bit of storage are not equally likely, that bit of storage contains less than one bit of information. If the value is completely predictable, then the reading of that value provides no information at all (zero entropic bits, because no resolution of uncertainty occurs and therefore no information is available). If a computer file that uses ''n'' bits of storage contains only ''m'' < ''n'' bits of information, then that information can in principle be encoded in about ''m'' bits, at least on the average. This principle is the basis of
data compression technology. Using an analogy, the hardware binary digits refer to the amount of storage space available (like the number of buckets available to store things), and the information content the filling, which comes in different levels of granularity (fine or coarse, that is, compressed or uncompressed information). When the granularity is finer—when information is more compressed—the same bucket can hold more.
For example, it is estimated that the combined technological capacity of the world to store information provides 1,300
exabytes of hardware digits. However, when this storage space is filled and the corresponding content is optimally compressed, this only represents 295 exabytes of information.
When optimally compressed, the resulting carrying capacity approaches
Shannon information or
information entropy.
Bit-based computing
Certain
bitwise
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher-level arithmetic oper ...
computer
processor instructions (such as ''bit set'') operate at the level of manipulating bits rather than manipulating data interpreted as an aggregate of bits.
In the 1980s, when
bitmapped computer displays became popular, some computers provided specialized
bit block transfer instructions to set or copy the bits that corresponded to a given rectangular area on the screen.
In most computers and programming languages, when a bit within a group of bits, such as a byte or word, is referred to, it is usually specified by a number from 0 upwards corresponding to its position within the byte or word. However, 0 can refer to either the
most or
least significant bit
In computing, bit numbering is the convention used to identify the bit positions in a binary number.
Bit significance and indexing
In computing, the least significant bit (LSB) is the bit position in a binary integer representing the binary 1 ...
depending on the context.
Other information units
Similar to
torque and
energy in physics;
information-theoretic information and data storage size have the same
dimensionality of
units of measurement, but there is in general no meaning to adding, subtracting or otherwise combining the units mathematically, although one may act as a bound on the other.
Units of information used in information theory include the ''
shannon'' (Sh), the ''
natural unit of information'' (nat) and the ''
hartley
Hartley may refer to:
Places Australia
*Hartley, New South Wales
*Hartley, South Australia
**Electoral district of Hartley, a state electoral district
Canada
*Hartley Bay, British Columbia
United Kingdom
*Hartley, Cumbria
*Hartley, Plymou ...
'' (Hart). One shannon is the maximum amount of information needed to specify the state of one bit of storage. These are related by 1 Sh ≈ 0.693 nat ≈ 0.301 Hart.
Some authors also define a binit as an arbitrary information unit equivalent to some fixed but unspecified number of bits.
See also
*
Byte
*
Integer (computer science)
*
Primitive data type
*
Trit (Trinary digit)
*
Qubit (quantum bit)
*
Bitstream
*
Entropy (information theory)
*
Bit rate
In telecommunications and computing, bit rate (bitrate or as a variable ''R'') is the number of bits that are conveyed or processed per unit of time.
The bit rate is expressed in the unit bit per second (symbol: bit/s), often in conjunction w ...
and
baud rate
*
Binary numeral system
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" (zero) and "1" ( one).
The base-2 numeral system is a positional notatio ...
*
Ternary numeral system
*
Shannon (unit)
*
Nibble
In computing, a nibble (occasionally nybble, nyble, or nybl to match the spelling of byte) is a four-bit aggregation, or half an octet. It is also known as half-byte or tetrade. In a networking or telecommunication context, the nibble is oft ...
References
External links
Bit Calculator– a tool providing conversions between bit, byte, kilobit, kilobyte, megabit, megabyte, gigabit, gigabyte
BitXByteConverter– a tool for computing file sizes, storage capacity, and digital information in various units
{{Authority control
Binary arithmetic
Primitive types
Data types
Units of information