next up previous
Next: Probability and entropy -- Up: Introduction to Information Theory Previous: The (74) Hamming Code

Homework

Before the next chapter there are two tasks. First, a problem which may help you think about how to measure information content. Second, a little reading to refresh your memory about probability theory, to introduce the notation I will use in the forthcoming chapters, and to introduce some important definitions to do with entropy. This is followed by several more exercises for you to work on over the next few weeks. The sooner you work on them, the better.

-- Please work on this problem before reading the next chapter.

You are given 12 balls, all of which are equal in weight except for one which is either heavier or lighter. You are also given a two-pan balance to use. In each use of the balance you may put any number of the 12 balls on the left pan, and the same number on the right pan, and push a button to initiate the weighing; there are three possible outcomes: either the weights are equal, or the balls on the left are heavier, or the balls on the left are lighter. Your task is to design a strategy to determine which is the odd ball and whether it is heavier or lighter than the others in as few uses of the balance as possible.

While thinking about this problem, you should consider the following questions.

  1. How can one measure `information'?
  2. What is the most information you can get from a single weighing?
  3. When you have identified the odd ball and whether it is heavy or light, how much information have you gained?
  4. What is the smallest number of weighings that might conceivably be sufficient to always identify the odd ball and whether it is heavy or light?
  5. As you design a strategy you can draw a tree showing for each of the three outcomes of a weighing what weighing you perform next. What is the probability of each of the possible outcomes of the first weighing?
  6. How much information is gained when you learn (i) the state of a flipped coin; (ii) the states of two flipped coins; (iii) the state of a rolled die having four sides? How much information is gained on the first step of the weighing problem if 6 balls are weighed against the other 6? How much is gained if 4 are weighed against 4 on the first step, leaving the other 4 aside?


next up previous
Next: Probability and entropy -- Up: Introduction to Information Theory Previous: The (74) Hamming Code

David J.C. MacKay
Sat May 10 23:05:10 BST 1997