Next: Cyclic codes
Up: Hamming codes
Previous: Decoding Hamming codes
  Contents
  Index
In the notation of Definition 3.6.1 above, we have
the following solution to searching with one lie.
Lemma 3.8.6
If

,

, then

.
Algorithmic ``proof'': A number from
to
has been
choosen. One lie is allowed.
- Write the number choosen in binary. Encode the number using a
binary Hamming code
with parameters
length=
dimension =
minimum distance=3.
(There is a ``good'' algorithm for this.)
Recall that each Hamming
-code is
-error correcting.
- Let
.
Ask the
Questions: ``Is the
digit
of the encoded number a
?'',
.
- Let
if the
answer is ``yes'',
let
otherwise, and write
.
- Decode
to a Hamming codeword
. (There is a ``good'' algorithm for this.)
- Translate
into decimal.
This solves the searching with lies problem in the
case where
is the above power of
.
The general problem has a similar solution,
though the reasoning is a little more complicated.
We refer to [Hi],
[N]3.2,
and [Mont], for more details.
Next: Cyclic codes
Up: Hamming codes
Previous: Decoding Hamming codes
  Contents
  Index
David Joyner
2002-08-23