Why Computers use Binary
The ignition switch of an automobile is discrete—it has definite states—but there are usually more than two states (off, running, start, acc...) A button on a hand calculator is a binary device. It is either on or off. Ordinarily it is "off." When you push it, it is "on." It springs back to "off" when you release it, which is different from a toggle switch, but it still is a binary device.
There are many advantages to binary. Here are four (somewhat overlapping) important reasons for using binary:
- Simple; easy to build.
- Unambiguous signals (hence noise immunity).
- Flawless copies can be made.
- Anything that can be represented with some sort of pattern can be represented with patterns of bits.
These characteristics of binary were realized by Claude Shannon, a mathematician at Bell Telephone Laboratories. His 1948 paper A Mathematical Theory of Communication is the foundation of information theory and much of computer science.
分享到:
相关推荐
Because internally, computers use a format (binary floating-point)that cannot accurately represent a number like 0.1, 0.2 or 0.3 at all.资料来源: : 我写这篇文章是因为我需要在浏览器中进行简单的计算,...
Why Study C++? 1 Section 1.1. Our First C++ Program 3 Section 1.2. Integers and Arithmetic 20 Section 1.3. Solving a Problem with Integers 32 Section 1.4. Other Integer Data Types 36 ...
Theoretically a b+tree is O(N log k N) or log base k of N, now for the typical values of k which are above 200 for example the b+tree should outperform any binary tree because it will use less ...
You are visitor as of October 17, 1996. The Art of Assembly Language Programming <br>Forward Why Would Anyone Learn This Stuff? 1 What's Wrong With Assembly Language 2 What's Right With ...
[2] , ranging from web servers to games, programming languages and most of the application types that are in use on modern computers. Ports will be discussed further in the section The Ports ...
PART 1—WHY LEARN GO—GETTING STARTED Chapter 1—Origins, Context and Popularity of Go...............................................................1 1.1 Origins and evolution.........................
PART 1—WHY LEARN GO—GETTING STARTED Chapter 1—Origins, Context and Popularity of Go...............................................................1 1.1 Origins and evolution.........................