All information in the computer is encoded in "binary"; the number system that the computer can directly recognize is binary. The information transmission, storage and processing within the computer all use binary coding. The main reason is the feasibility, ease of use, simplicity, reliability and logic of using binary.
#The information transmission, storage and processing within the computer all use binary encoding.
Reason:
First of all, the binary notation system only uses two digits. 0 and 1, so any component with two different stable states can be used to represent a certain bit of the number. In fact, there are many components with two obvious stable states. For example, the "on" and "off" of the neon lamp; the "on" and "off" of the switch; the "high" and "low", "positive" and "negative" of the voltage; the "hole" and "hole" on the paper tape "No holes", "signal" and "no signal" in circuits, north and south poles of magnetic materials, the list goes on. It is easy to use these distinct states to represent numbers. Not only that, but more importantly, the two completely different states are not only quantitatively different, but also qualitatively different. This can greatly improve the machine's anti-interference ability and improve reliability. It is much more difficult to find a simple and reliable device that can represent more than two states.
Secondly, the four arithmetic rules of the binary counting system are very simple. Moreover, the four arithmetic operations can ultimately be reduced to addition operations and shifts. In this way, the arithmetic circuits in electronic computers have become very simple. Not only that, the line is simplified and the speed can be increased. This is also incomparable to the decimal counting system.
There are few binary operation rules, the structure of the computer operator can be greatly simplified, the control is correspondingly simple, the transmission and processing of data are not prone to errors, and the working reliability of the computer is greatly improved.
Third, using binary representation of numbers in electronic computers can save equipment. It can be theoretically proven that using the ternary system saves the most equipment, followed by the binary system. However, because the binary system has advantages that other binary systems, including the ternary system, do not have, most electronic computers still use the binary system. In addition, since only two symbols "0" and "1" are used in binary, Boolean algebra can be used to analyze and synthesize the logical circuits in the machine. This provides a very useful tool for designing electronic computer circuits [8].
Fourth, the binary symbols "1" and "0" exactly correspond to "true" and "false" in logical operations, making it easier for computers to perform logical operations.
Fifth, using binary to represent data has the advantages of strong anti-interference ability and high reliability. Because each bit of data has only two states: high and low, when it is disturbed to a certain extent, it can still be reliably distinguished whether it is high or low.
The above is the detailed content of What encoding is used for all information in the computer?. For more information, please follow other related articles on the PHP Chinese website!