Download presentation

Presentation is loading. Please wait.

Published byJana Gaskill Modified about 1 year ago

1
Nov. 2005Math in ComputersSlide 1 Math in Computers A Lesson in the “Math + Fun!” Series

2
Nov. 2005Math in ComputersSlide 2 About This Presentation EditionReleasedRevised FirstNov This presentation is part of the “Math + Fun!” series devised by Behrooz Parhami, Professor of Computer Engineering at University of California, Santa Barbara. It was first prepared for special lessons in mathematics at Goleta Family School during three school years ( ). “Math + Fun!” material can be used freely in teaching and other educational settings. Unauthorized uses are strictly prohibited. © Behrooz Parhami

3
Nov. 2005Math in ComputersSlide 3 Counters and Clocks

4
Nov. 2005Math in ComputersSlide 4 A Mechanical Calculator Odhner calculator: invented by Willgodt T. Odhner (Russia) in 1874 Photo of production version, made in Sweden (ca. 1940) Photo of the 1874 hand-made version

5
Nov. 2005Math in ComputersSlide 5 The Inside of an Odhner Calculator

6
Nov. 2005Math in ComputersSlide 6 Decimal versus Binary Calculator After movement by 10 notches (one revolution), move the next wheel to the left by 1 notch After movement by 2 notches (one revolution), move the next wheel to the left by 1 notch no hundred = Five thousand twenty-five no = Eleven

7
Nov. 2005Math in ComputersSlide 7 Decimal versus Binary Abacus If all 10 beads have moved, push them back and move a bead in the next position If both beads have moved, push them back and move a bead in the next position DecimalBinary

8
Nov. 2005Math in ComputersSlide 8 Other Types of Abacus Each of these beads is worth 5 units Each of these beads is worth 1 unit Display the digit 9 by shifting one 5-unit bead and four 1-unit beads Display the digit 1 by shifting one bead

9
Nov. 2005Math in ComputersSlide 9 Activity 1: Counting on a Binary Abacus 1. Form a binary abacus with 6 positions, using people as beads The person who controls the counting stands at the right end, but is not part of the binary abacus A person sits for 0, stands up for 1 3. The leader sits down any time he/she wants the count to go up 4. Each person switches pose (sitting to standing, or standing to sitting) whenever the person to his/her left switches from standing to sitting Questions: What number is shown? What happens if the leader sits down? Leader

10
Nov. 2005Math in ComputersSlide 10 Activity 2: Adding on a Binary Abacus 1. Form a binary abacus with 6 positions, using people as beads This number is = Now add the binary number to the one shown This number is = This number is = 34 A person sits for 0, stands up for 1 2. Show the binary number on the abacus

11
Nov. 2005Math in ComputersSlide 11 hour min sec Activity 3: Reading a Binary Clock 1 2 : 3 4 : 5 6 Each decimal digit is represented as a 4-bit binary number. For example: 1: : __ :__ :__ What time is it? __ :__ :__ Show the time: 8 :41 :22 15 :09 :43 9 :15 :00 Dark = 0 Light = 1

12
Nov. 2005Math in ComputersSlide 12 IN OUT Ten-State versus Two-State Devices To remember one decimal digit, we need a wheel with 10 notches (a ten-state device) A binary digit (aka bit) needs just two states

13
Nov. 2005Math in ComputersSlide 13 Addition Table Binary addition table Write down in place Carry over to the left Write down in place Carry over to the left

14
Nov. 2005Math in ComputersSlide 14 Secret of Mind-Reading Game Revealed 1.Think of a number between 1 and Tell me in which of the five lists below the number appears. List A : List B : List C : List D : List E : Find the number by adding the first entries of the lists in which it appears = AB = BDE

15
Nov. 2005Math in ComputersSlide 15 Activity 4: Binary Addition Check: Binary addition table Wow! Binary addition is a snap! Rule: for every pair of 1s in a column, put a 1 in the next column to the left Think of 5 numbers and add them

16
Nov. 2005Math in ComputersSlide Adding with a Checkerboard Binary Calculator Set up the binary numbers on different rows 2. Shift all beads straight down to bottom row 3. Remove pairs of beads and replace each pair with one bead in the square to the left

17
Nov. 2005Math in ComputersSlide 17 Multiplication Table Binary multiplication table Write down in place Carry over to the left

18
Nov. 2005Math in ComputersSlide 18 Activity 5: Binary Multiplication Check: 5 Binary multiplication table I ♥ this simple multiplication table! Think of two 3-bit binary numbers and multiply them

19
Nov. 2005Math in ComputersSlide 19 Idea 1:Break the 12-digit addition into three 4-digit additions and let each person complete one of the parts Fast Addition in a Computer Forget for a moment that computers work in binary Suppose we want to add the following 12-digit numbers Is there a way to use three people to find the sum faster? 1st number: 2nd number: 1st number: 2nd number: This won’t work, because the three groups of digits cannot be processed independently

20
Nov. 2005Math in ComputersSlide 20 Idea 2:Break the 12-digit addition into two 6-digit additions; use two people to do the left half in two different forms Fast Addition in a Computer: 2 nd Try 1st number: 2nd number: 1st number: 2nd number: Once the carry from the right half is known, the correct left-half of the sum can be chosen quickly from the two possible values Sum

21
Nov. 2005Math in ComputersSlide 21 Next Lesson January 2006

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google