Wednesday, February 21, 2018

It's A Binary World - How Computers Count.

You get to the checkout at the market, and the item you bought 'on special' arises at the total value. The director has to be called to fix it up, and what does he say?

'We have already been having troubles with the computer, it gets the wrong price on some things.'

You devote a summary of addressess to your Word processor, and print off celebration invitations for...

Several have cursed their computer for taking things too literally! It is easy to blame the computer when some thing goes wrong.

You get to the checkout at the industry, and the product you ordered 'on special' arises at the total price. The director needs to be called to correct it up, and what does he say?

'We have been having problems with the computer, it gets the wrong price o-n some issues.'

You devote a listing of addressess to your Word processor, and print off party invitations for in a few days. Then you realize that today's date has been put in the signature block - from the computer!

Perhaps you have heard the term 'Garbage in Garbage out'? Someone, at some time instructed the computer to do what it did, It did not choose to mess you up intentionally. Computers can only just do what they are told, they're more rational than Spock and they take everything literally.

We are planning to have a look at why they are so pedantic!

The planet around us has several aspects which work in the same way as a computer. There are lots of examples of opposites, for instance Up and Down, Left and Right, Forwards and Backwards. A light might be On or Off, probably it is Night or Day. Yes or No? It is possible to think of many others. If it's not just one, this process of two possible states is known as a Binary System, it should be the other.

A computer employs the Binary System to perform all its functions, the basic unit, initially a vacuum tube, then a transistor, then a processor, is employed thousands of times up to make the sum total unit. The light being On or Off which we stated earlier is controlled by way of a switch. Inside the computer this change is just a transistor, that will be either On or Off.

Now we arrive at the Math! Do not worry, it is very simple R! The truth is it's therefore easy we only total to 1. That is right, we could only have two states so we count from 0 to 1. (That is yet another thing pcs are pedantic about, they insist o-n beginning at zero).

The Binary system is just a Number System. You're knowledgeable about the system which has 10 numerals 0 to 9 (think such as for instance a computer 0 comes first). You will make up all sorts of number systems for what-ever purpose you need. You most likely know about a dozen (1-2) and also have heard of a-half dozen. If you have used your computer much you might have run into the Hexadecimal program. That one has 16 'numerals' 0-9and A-F. Yet another number system employed by computer people is the Octal system which includes 8 numbers, 0-7.

Ok so how can we count with only 0 and 1. Basic, in the identical way you count in decimal. The first ten numbers are OK, 0-9, but what next? We start again but add-in a 1 making 10 or 'one, zero.' That gets us to 'one, nine' and we head to 'two, zero', and therefore o-n as much as 'nine, nine' then we again add a 1 to generate 100 - 'one, zero, zero.'

If you've used me up to now you're ready for the Binary series, it is much easier. Starting off at zero we've 0,1 - and that's it. We follow the same concept and add-in a 1, making 'one,zero.' Next come 'one, one'; then 'one, zero, zero'; -'one, zero, one'; an such like. These are comparable to Decimal 0,1,2,3,4,5. Visiting rockwell trading perhaps provides suggestions you should use with your sister. So how exactly does this relate with computers? That is next.

In our computer we have transistor changes, as described above. For your q case we only looked over, we need 3 buttons. These each represent a Binary Digit, or Bit. To represent a Decimal 1, these changes could be OFF,OFF,ON or 001. To get a Decimal 5 we'd have ON,OFF,ON, or 101. By expansion you can observe that with 4 turns we could visit 1111 or 1-5 Decimal.

Still another point to note is that each binary digit, or bit, has a value. Hundreds, thousands, etc, In the same way in Decimal we have devices. in Binary the values are 1,2,4,8,16,32,64,128 and so on. And so on. The binary code 1111 mentioned previously is ergo 1+2+4+8=15. If you wanted to workout what binary 100101100 was in decimal, you might add-up the individual values. In fact individuals who work with the basic machines have to know 'machine code'! To them 1111 would be F in Hexadecimal or 1-7 in octal.

That probably seems an incredibly long-winded approach to work out numbers, before you understand that these 'changes' can operate at nanosecond rate or 1,000,000,000 times per minute, big calculations become possible.

Thats probably enough to consume in one go. Next time we will take a look at what sort of computer adds and multiplies..

No comments:

Post a Comment