Presentation is loading. Please wait.

Presentation is loading. Please wait.

Counting, Conversion & Koans

Similar presentations


Presentation on theme: "Counting, Conversion & Koans"— Presentation transcript:

1 Counting, Conversion & Koans
Bits, Bits, Bits Counting, Conversion & Koans

2

3 Counting in Binary

4 Binary Binary can encode any number that decimal numbers can
We use the place a number occurs to determine its value For example, 12345 1 is in the 104 place 2 is in the 103 place 3 is in the 102 place 4 is in the 101 place 5 is in the 100 place

5 Binary Binary is also place value numbered
Take the binary number 1 is in the 26 place 0 is in the 25 place 0 is in the 24 place 0 is in the 23 place 1 is in the 22 place 0 is in the 21 place 0 is in the 20 place

6 Counting When we count, as soon as we run out of digits in the current place, we go back to 0 (advancing the next place as well) 00 01 02 03 04 05 06 07 08 09 10

7 Counting Same in binary, there are just less numbers so you have to advance places more often 000 001 010 011 100 101 110 111

8 Conversion

9 Converting from Binary to Decimal
We leverage the place value use system For example, with the number 0 x x x x x x x x x x 21 = 43710 This trick actually works for any base to decimal (just change the base) For example, in ternary (0,1,2) 0 x x x x x x 30 = 14010

10 Converting from Decimal to Binary
If multiplication let’s us convert the other way, it probably makes sense we use division to go backwards Repeatedly divide the number by the base you’re going to and keep the remainders. Stop when the quotient (answer of the division) is 0 140 to binary 140 / 2 = 70 r 0 70 / 2 = 35 r 0 35 / 2 = 17 r 1 17 / 2 = 8 r 1 8 / 2 = 4 r 0 4 / 2 = 2 r 0 2 / 2 = 1 r 0 1 / 2 = 0 r 1 Take the remainders in reverse so =

11 Other Bases If you want to convert from base 3 to base 9
Convert the base 3 number to base 10 Then convert the base 10 number to base 9

12 Koans of Bits

13 Koan? A “koan” is a paradoxical anecdote or riddle
These koans of bits are over simplified

14 The Koans Of Bits It's all just bits. Perfect is normal.
All data inside a computer or on the Internet is represented in binary 1’s and 0’s. It only appears that the computer has photos, songs, movies, documents, fonts, files, folders. The laws governing the handling of bits are tricky since many were written when there were distinct differences between radio waves and phone lines. Now a phone call and a web page are both bits. Perfect is normal. Duplication is identical. The idea of the “original” copy is meaningless.

15 The Koans Of Bits There is want in the midst of plenty.
Some data is not digital and not accessible. Some data is the wrong format. Some data is impossible to find buried by other more visible data (search engines). Processing is power. Modern computers perform a trillion operations a second. Fast processing power has enabled impressive advances in AI and robot automation. Moore's Law—the density of integrated circuits doubles every few years. The prediction was made in 1965 and lasted 40 years.

16 The Koans Of Bits More of the same can be a whole new thing.
Exponential change starts slowly, and many do not notice it in time. Examples: the switch to digital cameras; the death of the mall with online shopping Nothing goes away. Disk capacity has also followed Moore's law. We have the capacity to store everything, and government requires it for many businesses. Stores, hotels, schools track your activities. The capabilities result in even more being stored. For example, birth certificates include much more private information about the parents than before. Opportunities for research and mischief abound.

17 The Koans Of Bits Bits move faster than thought.
Tasks can be outsourced all over the world without delays (e.g., call centers, drive through orders, radiologists, etc.). Being physically close to someone does not mean you receive information from them faster. Moving things around on the Internet has difficult legal problems, based on the laws of each country. A man in Switzerland was convicted of defamation for “liking” Facebook posts.


Download ppt "Counting, Conversion & Koans"

Similar presentations


Ads by Google