Week 6 - Teaching Students how to use Binary Codes
Lesson Plan for Classroom:
- Explain the motivation for the lesson, and tell the students that we're now going to play some games which will give us practice in writing binary numbers.
- Divide students into small groups (optional - this lesson can be done by individuals, pairs or small groups.).
- Distribute flash cards, one set to each student or group. The first time you do this lesson you'll have to have the students make their cards. The set should look something like this example: (The large cards are approximately 3in x 4in, and the small squares are 2.5in x 2.5in. Note that the small cards have a zero on one side and a one on the other.)
- Have students sort the cards in descending order so that the largest is on the left and the smallest is on the right.
- Discussion: "What do you notice about the numbers on the cards?" For the younger kids it is enough for them to notice that 1+1=2, 2+2=4, etc. Middle kids should recognize 1 x 2 = 2, 2 x 2 = 4, etc. High school kids should say something like "powers of 2." They should also note that these are the place values discovered in the preliminary discussion.
- More discussion (optional):
- a. "If I had given you another card, what would it have been?" (32)
- b. "How many cards would I have given you if the maximum card were 128?" (8)
- More optional discussion: Another fun thing to point out is that each card is one more than the sum of all the cards lower than it. For example: 1 + 2 = 3 = 4 - 1, and 1 + 2 + 4 = 7 = 8 - 1. "Without taking the time to add up all the cards, can anyone tell me the sum of all the cards?"
- Game #1: Have the students turn over the cards so the numbers are hidden. To reinforce their memory of the different place values call out numbers for them to "find." When they seem to know where all the numbers are, with a playful grin call out a number which they don't have. For example, 3. Some students might point out that they don't have 3, but they do have 1 and 2. Do a couple other sums which involve 2 cards, then move to 3 cards, etc.
- Now flip the cards back over so that the number is showing.
- Game #2: Call out a number, and have the students place 1s above the cards which sum to that number, and 0s above all other cards. For example, if you say 11, students place 1s above cards 8, 2, and 1, and 0s above 16 and 4. An easy one: 5 (answer 4, 1); harder: 22 (answer 16, 4, 2); last one: 15 (answer 8,4,2,1). If some students find the answers quickly, challenge them to find another solution (they won't be able to do so). Have older kids turn over the flash cards after the first example so they get to practice remembering the values.
- Ask if anyone in the class has a system for finding an answer. Upper grades should have done so. Request that a student demonstrate the system to the group quickly. (A good method for doing this is to subtract the largest power of two you can from the original number, then subtract the largest power of two you can from that number, then subtract the largest power of 2 you can from that number, etc. until you get down to zero. For example, 37 - 32 = 5, 5 - 4 = 1, and 1 - 1 = 0. Then, write 1s in the places of the powers of two you subtracted and 0s elsewhere: 37 = 100101.)
- Discussion
- a. "What's the largest number you can get?" (31)
- b. "What's the smallest number you can get?" (0)
- c. "Can you do your age?" (Sure, unless you're older than 31!)
- d. "Can you suggest an impossible number which is between the smallest and largest numbers?"
- Explain that since we know the system we're using is binary, the 0s and 1s represent the original number. Older kids should see the binary expansion as a sum of products where the decimal value is equal to the sum of each binary digit multiplied by its corresponding power of 2.
- Spend a few minutes reemphasizing the connection between binary numbers to decimal numbers. For example, the decimal value 453 is equal to four 100s plus five 10s plus three 1s. Similarly, the binary value 111000101 is equal to one 256 plus one 128 plus one 64 plus one 4 plus one 1. You may want to point out that just as the place values in the decimal representation are powers of 10, the place values in the binary representation are powers of 2.
- Game #3: What number is (binary) 11001? 1011? Try to have the advanced students visualize the cards.
- Can we do all numbers up to the maximum discussed above? To answer this question we need 4 volunteers, each of which holds a large 0/1 card. (We won't go all the way to 31. That would take too long. Instead we'll go to 15.) Each of these 4 students represents one of the flash cards used in the earlier exercises. Have the remaining students direct the 4 students to show 0s or 1s, and sit or stand accordingly. Start with 0, all 4 students should show 0s, and be seated. Next do 1, students should show 0001, and the rightmost person should stand up. Then 2 should be 0010, etc. Try to elicit a system for incrementing the numbers. Point out that this system is like adding 1 each time. Younger kids may not see a system.
- Discussion: Can all numbers be represented using only 0s and 1s if I gave you enough cards? What's a simple proof of this? (Answer: we can always add 1, so we can start at zero and get up to any number.)
No comments:
Post a Comment