Question:
i don't get the concept of binary?
?
2015-04-25 23:59:53 UTC
I dont understand, how does 0's and 1's hold all of this vast amount of information?

Would a computer running on TRInary codes be better, same, or worse

if 0's and 1's hold software memory, what holds the memory of the 0's and 1's?

Layman terms please
Nine answers:
2015-04-26 00:28:45 UTC
A transistor can be used as a switch. A switch can be on or off. On or off can be represented as 1 or 0. The processor and memory chips in a computer contain millions (or billions) of transistors. These are designed to work together as an Integrated Circuit which allows them to be programmed to perform logical arithmetic - if one switch is on AND another switch is on then do something with the other switches. All a computer does is flick switches on and off very quickly. Nothing you are looking at actually exists. There are no windows, no menu bar, no text, no pictures. It is just switches being flicked on and off by binary arithmetic which trigger other switches which turn on or off some pixels on the screen to make it look like a window and some text.



http://www.calvin.edu/academic/rit/webBook/chapter5/binaryArithmetic.htm#simple





As a switch can only be in a binary state (on or off) a trinary code would be superfluous and so would not make any difference.



Once the power goes off all the switches are dead. To hold on to whatever state they had been programmed to be in you need to save that state onto a magnetic medium such as a hard drive or into Flash memory (SSD) which can hold the information without power as it uses a different type of transistor that can hold the 1 or 0 state even when the power is off.



http://www.explainthatstuff.com/flashmemory.html
Andy T
2015-04-30 00:01:03 UTC
It is the nature numbering system of an electronic system, most people would associate it ON and OFF but it is actually more like High Beam and Low Beam of a car with a broken state being illegal at night.



You count by your fingers up to ten per mathematical digit, computers count by High/Low up to binary per mathematical digit.



The High Beam/Low Beam concept is what's behind computers, it started with a WW2 British cypher cracking computer. Totally off can break the circuits. They are what's holding the 0 and 1s. Electrical finger.
2015-04-26 00:19:05 UTC
don't try to understand something as complicated as this concept in its entirety. since 0 is off and 1 is on, like short and long in morse code, different combinations of on and off mean different things. Most packets that travel across inter-networks are anywhere from 64 bytes to 1500 bytes long (voice traffic is 20 bytes) or 512-12000 bits long (1's and 0's long). And since electricity travels at around 1,860 MILES per second (or 9,820,800 feet per second) these codes can be transferred almost infinitely rapidly, in theory.



Now trinary questions are much more physics related than binary. I honestly don't know anything about quantum computing and you'd be very hard-pressed to find someone to explain that at the stage that trinary is at right now. So forget about trinary for the next 50 years.
Narayanan
2015-04-26 00:36:58 UTC
All we know that computer is a stupid machine it does what u orders. So this will not be a big surprise that the computer knows only 0`s and 1`s ie., binaries. When u give a data to a computer it simply transfers/converts the given data into 0`s and 1`s in a way such that it understands in a better manner.



How it stores this vast information?



0`s and 1`s are called bits.

8bits = 1byte

1024byte = 1kb

1024kb = 1mb

1024mb = 1gb

this goes on like this. if you have 1GB memory in your computer it can be able to save upto 1024*1024*1024*8 bits i.e roughly 8,00,00,00,000 bits in your computers 1GB memory which is enough for it to save your data into the Memory.



And it retrives and converts the data to readable manner by u when u search/access that data. There is a lots of mechanisms done by your processor like encoding,decoding, bit conversion, etc. (A vast subject).



I think i gave u the answer what you are waiting for. Please comment if i`m clear to u or not. Thanks in advance.
Bob
2015-04-26 17:09:21 UTC
It is often said that there are 10 types of people; those who understand binary, and those who don't.
2015-04-26 00:37:35 UTC
ok well if you know how to count then you're probably aware that every number you normally count to is made up of combinations of the same old set of single digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Notice there are 10 of them. It is a counting system based on 10 unique digits in other words, or in other words, it's called a base 10 system.



Your computer works on a base 2 system. That is, it only has 2 unique digits, 0, and 1. This however makes no difference where counting, or any other kind of numerical trickery is concerned. Any kind of math you can do with a system of 10 digits can be done with a system of 2 digits. For example if you want to count in base 2, or binary, you say 0, 1, 10, 11, 100, 101, 110, 111, and so on. Which is exactly the same thing as saying 0, 1, 2, 3, 4, 5, 6, 7, and so on. And number you can express in base 10 can also be expressed in base 2.



so why does a computer bother with base 2 instead of doing everything in base 10, or base 3 or whatever? well for one thing it makes designing the actual circuits of the computer very convenient. If all you have is 0 and 1, then you can decide to represent 0 by the presence of a low voltage in a wire, and 1 by the presence of a high voltage



From there you proceed to acquire some transisters. Like millions and millions and millions of transistors.



So you take a few transistors and wire them up into a clever little circuit with 2 input wires that does nothing but, for example, output a high voltage if both its input wires have high voltages on them, and otherwise outputs a low voltage. And you call this thing an AND gate, which is one kind of a logic gate.



So you make millions and millions of these AND logic gates. And while you're at it, you make millions and millions of OR gates, which are circuits that output high voltage, or "on", or 1, when either of its two inputs are on, or if both of them are on. And you make XOR gates, which output on, if either of its two inputs are on, but not if both are on. And NOT gates, which output on if their single inputs are off, and vice versa. And you can combine NOT gates with AND gates to make NAND gates, which output the negation of an AND gate. And so on.



these logic gate circuits are the basic building blocks from which actual computer circuity can be constructed. For example you can take a few logic gates and cleverly wire them together to produce a circuit that can store a value input to it, either a 0 or 1, and output the value on request. this is called a flip flop, and it's the basic unit of computer ram memory. all your computer's ram consists of millions and millions of little flip flop circuits, each one storing a single bit. It also consists of some other circuits for addressing all these flip flops of course, writing to them, reading to them. and you can also use logic gates to construct the various circuits that make up the cpu, aritmetic logic units, command processor, the works.



in your typical computer like the one you're using these computers tend to work with bits in groups of 8, called bytes. each byte consists of 8 bits, and it happens that an 8 bit binary number can hold any decimal value from 0 to 255



now an important thing to undersand about your computer is, that all these circuits you're building have no real conception of what numbers are. They're just flipping switches around, turning wires on and off. whether the bytes involved represent numbers, or codes standing for letters, or any other kind of data, depends entirely on the series of instructions being executed by the cpu (using those circuits made out of logic gates). whoever programmed the instructions decided what the data being worked on stands for in other words. none of it means anything to the computer itself, it's just a bunch of on and off signals.



so you see these same circuits can represent numbers, or letters, or colors, or anything else that you can represent with a set of numeric codes.
?
2015-04-29 07:55:25 UTC
I also dont get the concept of binary .
?
2015-04-27 17:07:48 UTC
So does one byte = one binary digit?
?
2015-04-26 08:41:26 UTC
thank you all for wonderful answers too bad i can't pick you all for BA


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...