The Wordsnake Puzzle


A Wordsnake puzzle is a list of words which must be arrange in an overlapping fashion. The entire list is called a "wordsnake", and is scored by squaring the overlaps of each consecutive pair, and adding. We allow the wordsnake to "wrap around", so there's one extra score for overlap from the last word to the first.

A wordsnake is actually a form of the traveling salesman problem, and hence, theoretically, it can be very hard to determine the maximum possible score.

The words in Dennis Shasha's challenge are:
alasallyblemishblend
certaindensedenudeeloped
emergeessentialeternalgeriatric
gerundicerincredibleingrate
inventlastinglaterlending
mergermishapenpediatricpenultimate
ratesseaseemstinger
suddentenseterrestrialterrible
tessilatetrialstricetricky
underdevelopyesyet_
Two of the words are misspelled, but we'll work with them as they are.

Reference:

  1. Dennis Shasha,
    Wordsnakes,
    Dr Dobb's Journal,
    July, 2000, pages 143-144.
  2. http://www.ddj.com
    Dr Dobb's Journal web site.

I give up, show me the solution.


Last revised on 11 October 2000.