Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Puzzling Adventures


APR89: PUZZLING ADVENTURES

Jonathan Amsterdam is a graduate student at MIT's artificial intelligence laboratory. He has articles published in several magazines. He can be reached at Room 814, 545 Technology Square, Cambridge, MA 02139.


Product Information

The Puzzling Adventures of Dr. Ecco by Dennis Shasha. W.H. Freeman and Company, New York, 1988. Price: $9.95 (paperback).

The best puzzles have always been showcases for beautiful mathematics. Until recently, however, one field of mathematics -- computer science -- has been conspicuous by its absence from puzzledom. You might think that nothing could be farther from math's abstract sparklings than the inexorable bit-by-bit crunching of our favorite machines, but a short course in the theory of computation would change that misguided opinion. Some of the most elegant mathematics of our century has been inspired by computers, and it would come as no surprise to any student of computer science that the field would provide material for some new and wonderful puzzles.

But NYU computer scientist Dennis Shasha is the first to actually write such puzzles -- or at least, the first to write a book of them. The book, called The Puzzling Adventures of Dr. Ecco, contains some 40 problems, nearly all of them drawn from the mathematics of computers, and nearly all of them fresh and exciting. You won't find any of the tired old standbys that ask you to move matchsticks or pennies around; instead, you'll construct digital circuits, design a communication network that still works in the presence of failures, and invent cryptographic protocols for the secure transmission of data. Along the way, Shasha covers many of the key ideas of modern computer science in an elegant, Gardneresque prose. Sometimes the text contains the explanation; but often, the puzzles themselves lead you to discovery. For instance, solving a seemingly innocuous puzzle about ranking tennis players can lead you to a beautiful sorting algorithm. In the solutions at the end of the book, Shasha often reveals the inspiration for the puzzle and refers the interested reader to a paper or textbook. Occasionally, however, no good explanation is provided --the beautiful sorting algorithm is named but never described explicitly, for example --and this is a weakness of the book. On the other hand, it is a book of puzzles, not a teaching text, and judged by those standards provides a fine layman's introduction to the field.

The book relates the adventures of one Dr. Jacob Ecco, omniheurist. An omniheurist, as the book's narrator, Professor Scarlet, explains, is a person who solves all problems. Scarlet first meets Ecco in a bakery when they are both children, where he watches Ecco win a cake from the baker by solving a clever puzzle. The episode sticks in Scarlet's mind, and many years later, upon discovering that Ecco lives not far from his own home, Scarlet seeks him out, befriends him, and learns his story.

After his brilliant doctoral work, Ecco tired of academia moved to MacDougal Street in Greenwich Village, where he earns a living by solving interesting puzzles brought to him by tycoons, generals, engineers, and presidents in various states of desperation. Ecco listens to their problems, presses them for more details, and invariably asks Scarlet, "What do you make of it, Professor?" Scarlet, who plays Watson to Ecco's Holmes, will sometimes offer a suggestion or present a way of understanding a problem, sometimes just comment on the problem's difficulty. Ecco then thinks for a few minutes, scribbles a solution, and hands it to his client. While he is occupied, we, the readers, have the opportunity to solve the puzzle. Ecco's clients are almost always pleased by his solution and usually ask a couple of follow-up questions, which amount to variations on the original puzzle. In solving successively more difficult versions of the puzzle, we are often led to more general ways of looking at the problem.

In between puzzle-solving sessions, there is plenty of time for Ecco and Scarlet to play innumerable games of chess and to discuss topics such as the aesthetics of mathematics, the neural basis of our passion for design, and the foibles of human nature. There's also a bit of jetsetting: Ecco and Scarlet travel to India, and, accompanied by non-monotonic logician Evangeline Goode, they go windsurfing at the Columbia Gorge in Oregon. Shasha's Ecco is a three-dimensional man, not a mere placeholder for genius --we learn about his past, his need for privacy, his love for chess, knowledge and, of course, puzzles, his well-justified fear that he is under surveillance, and his constant striving for elegance and simplicity.

The book even has something of a plot: it gradually becomes apparent that someone or some organization is out to get Ecco. They break into his apartment, leave coded messages that are cryptic, even when decoded, and, in the end, perhaps do something more. Just what has happened at the story's conclusion and who is responsible are the final, unresolved mysteries of the book.

Oh yes, there's also a contest (which runs to the middle of this month): decode 10 messages sprinkled throughout the book and solve the puzzles they describe and you'll be entered in a drawing for a hand-carved chess set. You'll also get a free T-shirt proclaiming you to have joined the great Dr. Ecco in the ranks of that most distinguished and unusual of professions, the omniheurists.


Copyright © 1989, Dr. Dobb's Journal


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.