Search

Filter

  • Advanced Filters:

  • to
  • Specific Data Sources:

    All Edit

    Select All  |  Select None

Reset filters

(C Magic Numbers" Approach to Introducing Binary Number Representation in CSO Gerald Kruse Juniata College Huntingdon, PA USA kruse@juniata.edu Categories and Subject Descriptors K.3.2 [Computer and Information Computer science education. Science Education]: General Terms: Theory 1. INTRODUCTION This is a playful introduction to binary numbers, which can be used in an "Introduction to Computer Science" or CSO course. While there is no formal assessment of this demonstration's effectiveness, students seem to understand binary numbers well and are comfortable applying this knowledge when converting them to other bases. In addition, the interaction and increase in energy level resulting from the demonstration translates to a fruitful follow-up discussion. Then I ask, "What happens if we only have two digits to count with?" The answer is that we start "rolling over" much sooner. I write from 0 to 15 in binary on the board, fairly close to the base 10 count, as in Figure 1 (b). Next, I pad with 0's, so each binary number is represented with 4 bits. Next, I ask for a student volunteer. They come up to the board, write a number between 1 and 15 so everyone in the room can see it, except me, then erase the number and return to their seat. Then I show each of the four cards in Figure 2, asking the class to say, "Yes" when their number appears on a card, or "No" when it does not appear. We might iterate through this several times. As we do, I will remind the students that binary (digital) computers have circuits (a) 4 (b) 2. THE TECHNIQUE I begin by asking the students to help me count. I point out that our familiar decimal system, with 10 digits means we start "rolling over," like a car odometer after the last digit is used. I end up writing from 0 to 15 on the board, as in Figure 1 (a). (c) 12 13 14 15 1 3 (d) 5 7 (a) 0 1 10 11 100 101 110 (b) 111 1000 1001 1010 1011 1100 1101 1110 Figure 2. Four cards used to determine the number. with just two states: ON (or 1) and OFF (or 0), so it is natural to use binary numbers to model digital circuits. I will also point out that their "Yes" or "No" responses can be considered as binary digits. Finally, if the suspense has become unbearable because no one has guessed how the demonstration works, I'll take the most recent number written on the board and work through it. For example, if the number was 9, I successively produce each card. Using the labels in Figure 2, we see that 9 prompts a "Yes" to card (a) in Figure 2, "No" to card (b), "No" to card (c), and "Yes" to card (d). I tell the class that whenever they said, "Yes," I added the largest number on the card. So 9 = Yes, No, No, Yes = 1001 = 8 + 0 + 0 + 1 . Finally, I point out that each number on card (a) has a 1 in the fourth column (from the right) in its binary representation, each number on card (b) has a 1 in the third column in its binary representation, each number on card (c) has a 1 in the second column in its binary representation, and each number on card (d) has a 1 in the rightmost column in its binary representation. mi Figure 1. Decimal and Binary numbers. Copyright is held by the author/owner(s). ITiCSE'03, June 30-July 2, 2003, Thessaloniki, Greece ACM 1-58113-672-2/03/0006.

Page 1 of 1

Page 1 of 1

Toggle back to continuous viewing mode

/lp/association-for-computing-machinery/magic-numbers-approach-to-introducing-binary-number-representation-in-0uBE826sNh
Welcome to DeepDyve! Rent Premier Research Articles and Save Up to 90%

Learn more

Free Article

Bookmark

Magic numbers approach to introducing binary number representation in CSO

Kruse, Gerald
ACM SIGCSE Bulletin , Volume 35 (3)
Association for Computing MachinerySep 1, 2003

More Info

More Like This Article

View All dataSource[]=actageo&dataSource[]=aspet&dataSource[]=aaos&dataSource[]=aacc&dataSource[]=aacr&dataSource[]=aea&dataSource[]=aip&dataSource[]=ajnr&dataSource[]=ams&dataSource[]=aps_physical&dataSource[]=appi_book&dataSource[]=appi_journal&dataSource[]=apha&dataSource[]=asip&dataSource[]=asm&dataSource[]=asn&dataSource[]=aspb&dataSource[]=avs&dataSource[]=annual_reviews&dataSource[]=arxiv&dataSource[]=acm&dataSource[]=berghahn&dataSource[]=cabi&dataSource[]=clinical_trials&dataSource[]=dailymed&dataSource[]=degruyter&dataSource[]=du_press&dataSource[]=esa&dataSource[]=eu_press&dataSource[]=elsevier&dataSource[]=emerald&dataSource[]=ejtr&dataSource[]=emea&dataSource[]=epo&dataSource[]=faseb&dataSource[]=gsa&dataSource[]=health_affairs&dataSource[]=hindawi&dataSource[]=imanager&dataSource[]=imedpub&dataSource[]=informa_healthcare&dataSource[]=informs&dataSource[]=iop&dataSource[]=iucr&dataSource[]=iospress&dataSource[]=jbjs&dataSource[]=leftcoast&dataSource[]=lu_press&dataSource[]=mesharpe&dataSource[]=mary_ann_liebert&dataSource[]=medline&dataSource[]=mit_press&dataSource[]=nature&dataSource[]=oxford&dataSource[]=pier_professional&dataSource[]=pnas&dataSource[]=portlandpress&dataSource[]=psyc_articles&dataSource[]=psyc_books&dataSource[]=psyc_critiques&dataSource[]=plos_journal&dataSource[]=pubmed_central&dataSource[]=rsna&dataSource[]=rockefeller&dataSource[]=rcn&dataSource[]=ria&dataSource[]=rsc&dataSource[]=sage&dataSource[]=spie&dataSource[]=springer_journal&dataSource[]=springer&dataSource[]=taylor_francis&dataSource[]=aps&dataSource[]=the_scientist&dataSource[]=uc_press&dataSource[]=uspto_abstract&dataSource[]=wiley&dataSource[]=pct

Browse: Subject Areas | Journals | Publishers

Sign Up for a DeepDyve Account

Bookmark an Article

To bookmark an article, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK

Subscribe to Journal Email Alerts

To subscribe to email alerts, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK

Thank you for renting with DeepDyve

Your PayPal account has been charged $2.99. You now have access to the full text of this article. A rental receipt has also been sent to your email address.

Your credit card has been charged $2.99. You now have access to the full text of this article. A rental receipt has also been sent to your email address.

OK

New! You can now keep track of new articles from ACM SIGCSE Bulletin on your personalized homepage! Learn more

PDF Download — Not Available

Thanks for your interest in purchasing the PDF. Your request has been noted and we will work with our publisher partner to discuss enabling this feature.

In the meantime, you can get the PDF by visiting the publisher site.

Thank you for purchasing with DeepDyve

Your PayPal account has been charged $.

Your credit card has been charged $.

You can now download this article. A purchase receipt has also been sent to your email address.

Download This Article or I'm done with my download

Print Page — Not Available

Thanks for your interest in printing individual pages. Your request has been noted and we will work with our publisher partner to discuss enabling this feature.

In the meantime, you can get the PDF by visiting the publisher site.

Thank you for printing with DeepDyve

Your PayPal account has been charged $0.

Your credit card has been charged $0.

You can now print this article. A purchase receipt has also been sent to your email address.

Print the Selected Pages or I'm done with my printing

Please refresh to generate a new download link

Your article download link has expired. Please refresh this page to obtain a new download link and try again.

Follow a Journal

To get new article updates from a journal on your personalized homepage, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK