What are the benefits of binary, and why are computers using binary?

Source: Internet
Author: User

................................................................................................ 二进制的内心小剧场.................................................................................................................................................................................................................................................................................................................. .......................................

Many professionals from the first computer learning, began to contact the binary system, found that the book is basically a term, not "words", immediately fainted. What is binary? What "every two in one", it's not important, dog poo. As long as it is invented by man, it can be made clear by employing words.
Let's talk about it and see if we can make it clear. "Binary".
Let's go through, back to ancient times. You are on a beacon, I am on the other beacon, as long as you come to the enemy, you point smoke signals notify me. Can you understand this? Now, I want to know clearly that you have a few enemies there, I am ready to do the work. What do we do? Very simple, two ways.
1, you point a fire, and then extinguish once, is an enemy, to two points 2 back, two back. 2, or you point two fire at the same time. I knew that there were two enemies.
I'll go, what do you say if the enemy comes in 200? You either smoked or burned enough fire to burn yourself ...
Dynasties in the development of human progress. Flash Edison came to the Earth, he invented the light bulb.
You can use the light bulb "light" and "off" to show me this message.
If a light bulb is not lit, it means no enemies. The light bulb is not bright, it can also be said that the state 0.
If an enemy comes in, and the light bulb is on, I know there are 1 of them, and that is State 1.
The question came again, and there were 200 of enemies ... I go, either you switch 200 times the bulb, or prepare 200 light bulbs to light together. The first method bulb quality is not necessarily good, besides, you flash so fast, I can not count. The second method, I count also small half a day, not counting, early by the enemy rushed over to cut dead. And, 200 bulbs, are you sure you have enough electricity for the balance?
Fortunately we are all intelligent, we agreed, more than a few lights puffing out signal. In order not to draw, 0 means turn off the light, 1 means turn on the light.
00000000, 8 lights all off, rest assured sleep, this is the status of 0, indicating an enemy did not, safe. (status 0) 00000001, which means that an enemy is coming, and you are responsible for killing him. (State 1) 00000010, this is the second can be expressed in the State, we give it a number, called the state of 2, indicating that two enemies, there is no big deal.
Next, it should be the third case. 00000011, this is the third case. We do not say the conversion of anything, the method of the bright Light We call 3 (state 3).
To make it clear to both of us, let's write a list (the end of the article). From the list can be seen, if the 255 enemies, you directly open 8 light bulbs, I will be at a glance, ready to go on the sword.
Because the computer is the same, only on and off (power, power off) to indicate the two states. This is called "binary". As for the 2 binary how to calculate, it is also very simple, such as the first State (1) + The second state (2) = The third State (3). You see:
00000001 +00000010---------= 00000011, according to the form of the search, is 3, it is so simple.
So, don't think about 10 and 2 in the brain how to convert, these dirty work tired, can computer to do. You just have to remember that the "binary states" in the table are just a few of the 10 binary.
Also, the disk of the 2, with the magnet of the N-pole and S-pole represents 1 and 0,n=0,s=1, the hard drive magnified 10 million times times to see, the above are small magnets, through the hard disk's head recognition, and then become the current signal "pass" and "break" to the CPU processing.
It is also the same on the CD, the disc is "long" and "short" small mirrors to represent 1 and 0. The light magnified 10 million times times to see, the above are long points and short points, with a laser head, according to the length of the reflection to represent the data.
What if there's more data? 8 groups, called 1byte, which is the legendary 1 bytes, is composed of 8 0 or 1, each 0 or 1 is called 1bit. Usually, an English letter requires 8 light bulbs to indicate that a Chinese character needs 16 light bulbs.
By the way, I can see the 8 light bulb is not bright method, called "Parallel" (8-bit), with 1 light bulbs to switch back and forth, trying to shake the blind my way of transmitting data is called "serial", that is, the meaning of a string of signals. So, in the case of the same frequency, "parallel" is definitely faster than "serial".
The more information you want to handle at one time, the more "bits" you need, such as your home CPU is 64 bits, which is equivalent to the information that can be transmitted 64 light bulbs at a time.
First of all, the central idea is only a "technical class to speak good, but also very interesting!" ”
Give a knowledge point, in Excel can be converted by Formula =dec2bin ().
Schedule:
10 binary numbered bulb indicates status 100000001 status 200000010 status 300000011 status 400000100 status 500000101 status 600000110 status 700000111 ... Status 25011111010 status 25111111011 State 25211111100 State 25311111101 status 25411111110 status 25511111111

Jeffersli Link: http://www.zhihu.com/question/20830886/answer/48079392 Source: Copyright belongs to the author. ......................................................................................................... 我是分割线.............................................................................................................................................................................................................................................................................................................................. ................................. 1. From the feasibility, the use of binary, only 0 and 12 states, can be expressed in 0 and 12 states of electronic devices have many, such as switch on and off, transistor conduction and cutoff, magnetic components of the positive and negative magnetism, the potential level of the high and low can be expressed 0 and 12 numbers. Using binary, electronic devices have the possibility of realization.
2. From the simplicity of the operation, the binary algorithm is less, the operation is simple, the computer operator hardware structure is greatly simplified (decimal multiplication 99 formulas have 55 formula, and binary multiplication only four rules).
3. Logically, since the binary 0 and the 1 exactly correspond to the logic code false and the truth, there is a theoretical basis for logical algebra, and binary representation of binary logic is natural.
Cqan Link: http://www.zhihu.com/question/20830886/answer/28334973 Source: Copyright belongs to the author.  &nbsp ..... ..... ..... ..... ..... ..... ..... ....... ............... ..... ..... ..... ..... ..... ..... ..... ....... ....... ......... 我是分割线.............................................................................................................................................................................................................................................................................................................................. .................................  from the physical realization, first, the binary state is simple; Secondly, the reliability and stability are high; Thirdly, the operation rules are simple, the design is simplified, and the generality is strong. With the voltage switch, the current can represent the 2 stable state of the binary, and to represent the 10 stable state of the decimal is much more difficult, so that the binary system brings higher reliability. In addition, binary addition operations are simpler than decimal, simplifying the design of physical devices such as operators. Also, in the computer CPU of the arithmetic logic unit, 0 and 1 can clearly express the true and false, the logical operation of the wrong, so that the electronic machinery to complete the calculation of the universality of strengthening. In addition, the 101-page report, published by von Neumann and others, says that 33-bit representations can reach a 10-10-square-size, and that binary systems are much more economical than decimal systems. Why is it so? Now use K to represent 10 of the 3, that is, 2 of the 10-square, G is 10 of the 9, that is, 2 of the square. 10 of the 10-square (1 back 10 0) is not approximately equal to 2 of the square (in binary notation, 33 1 33) If the physical state to represent this number, the decimal expression: 0 units with 11 stable states, the total number of 10 species; Just take 34 bulbs and only 68 of them in total. So, which is more provincial? Who links: http://www.zhihu.com/question/20830886/answer/74671409 Source: The copyright belongs to the author.   &nbsp ..... ..... ..... ..... ..... ..... ..... ....... ............... ..... ..... ..... ..... ..... ..... ..... ....... ....... ......... 我是分割线.............................................................................................................................................................................................................................................................................................................................. .................................  

A word summed up: The binary stability is not error, there is a resistance of 1, no resistance is 0 (the computer with high power and low level respectively represents 1 and 0, electronic circuit high level is the state of high voltage, generally recorded as 1, electronic circuit low level is the state of low voltage, generally recorded as 0), not by the image of resistance error. If the decimal is required to design 10 stable state, not only troublesome, but also prone to error (temperature impact resistance, thus the current instability), power consumption is also large.

Four words Summary: hardware good OR simplified design .

What are the benefits of binary, and why are computers using binary?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.