Binary Code: the illusive term I had absolutely zero knowledge of until last fateful Monday. Allow me to regurgitate my week's learnings.
When it comes to programming computers, the computer needs to have the capacity and ability to store information. This data is best represented via a 2 symbol system. Why only two you ask? Because the computer either does it or it doesn't. The next subcategory under this system is called a base system.I am only familiar with two base systems though there are others. Out of 10 and 2, 2 is the more common system. Binary code represents decimals and bits, or in other words, regular numbers and just about any kind of information ( computers work in 8-bit groups called bytes). An example of such is the code 1000001111. Increasing from left to right, the digits's state space grows exponentially. As the state spaces grows, the power of 2 increases right to left. Whatever base one chooses to start with, begin at X^0 or I. In numbers, this code can represens 751. This number is derived from adding 1+2+4+8+ 0+0+0+0+0+512=527. To convert from numbers to code, work from left to right. First find the largest number that can go into the decimal without going over. Put a one there. Subtract that number from the decimal, and put 1 or 0 under the corresponding "columns" which add up to the remainder without going over. Wahlah, there you have it. your very own binary code.
No comments:
Post a Comment