Assessment Tool

Lecture 15:  Linear and Binary Search

Content Tested:  Motivation for Binary Search

Lecture Content:

Goals:

Assessment Technique:  Game

Purpose:

Instructors can find out how students design strategies for the "Choose My Number" game.  This activity should precede the viewing of this lecture in order to motivate the process of binary search.

Activity:

This is an entire class activity.  The instructor leads the "Choose My Number" game.

Instructor says:  I'm thinking of a number between 1 and 100, inclusive.  It's your job to guess my number.  Upon each guess, I'll say "that's my number", "my number is higher", or "my number is lower".  You will then have more turns to guess my number.  Your goal is to guess my number in 8 guesses.

At this point, the instructor should declare a process for guessing among the students.  The students could take turns guessing, the students could agree as a group before guessing as a class, or there could be some other way of organizing the guessing.

Possible Solution

Most likely, the students will come up with binary search to guess the instructor's number.  They'll find that if they apply the binary search technique properly, they will succeed in finding the number in 8 or fewer guesses.

The students might do random guessing.  In this case they probably won't find the number.  Ask them to think together as a class about a better strategy for guessing and play the game again.

Possible Uses of Activity: