David Balmain wrote:
> And why is Bob's search so fast, even though he didn't use an
> inverted index.

Blind dumb luck, I'm sure :)

For kicks, I've created a version of my solution that uses an inverted 
index:

   http://users.adelphia.net/~showaltb/rubyquiz/54/indexer2.rb