Legend has it that in a long time ago, there is a man-of-God, called Fuxi, Fuxi found the river map, and deduce gossip. So, what is gossip, and what does gossip have to do with computer binary?
Take a look at the following table:
Dry? =111 =7
Against? =011 =6
From? =101 =5
Earthquake? =001 =4
Sunda? =110 =3
Kan? =010 =2
Gen? =100 =1
Kun? =000 =0
Can you find any regularity (note reading direction)
Yes, a generation table 1 (yang)--represents 0 (Yin), three of the actual dashed line arrangement represents 8 different states (2^3=8)
So how many states can the permutation of six be?
namely 2^6=64
Why does a computer have to be binary? This has to start with a story:
In 1642, the French mathematician Pascal invented the mechanical computer, but it can only do the addition and subtraction, can not do multiplication, use is limited.
In 1694, the German mathematician Leibniz wanted to improve it, he thought: "Not only will it be added and subtracted, but it will be multiplication." He went down the line of Pascal's thoughts, but he tried to think about it.
One day, European missionaries introduced the Chinese gossip to him, and he unsanitary environment to study it. Only Yin (-) and Yang (a) two symbols, but can form 8 different kinds of GUA, further can be transformed into 64-gua. This made him suddenly brainwave, "can you use ' 0 ' and ' 1 ', respectively, instead of the gossip in the yin and yang, with Arabic numerals to show it?" Under the guidance of this idea, he repeated the study, and finally found that the binary can be used to represent from 0 to 7 of eight numbers.
Leibniz invented the binary system on the basis of gossip, and finally designed a mechanical computer with a long l-meter, a width of 30 centimeters, and a height of 25 centimeters. It can not only do addition and subtraction, but also do multiplication method, and can find the square root.
Now, binary has become the basis of electronic computers.
Electronic circuit uses the basic components only through and break two states, all operations in the computer hardware will be converted to the components of the state of the pass and break, the use of binary as the computer's computing language is easier to achieve, secondly, the binary algorithm is simple, add every 2 into 1, subtraction just inverse, multiplication just shift, Division is also inverse, so a variety of complex operations based on this law are simply executed.
Why computers are using binary 0 and 1 as the base language