WORDSNAKE
Seek High Scoring Wordsnakes


WORDSNAKE is a FORTRAN90 program which tries to find a good solution to the "Wordsnake Puzzle".

WORDSNAKE is given a list of words and tries to arrange them in a list so that the end of one word has maximum overlap with the beginning of the next word. 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 "wraparound", so there's one extra score for overlap from the last word to the first.

Usage:

wordsnake wordlist
where

Licensing:

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

Languages:

WORDSNAKE is available in a FORTRAN90 version.

Related Data and Programs:

ANAGRAM, a C++ program which determines anagrams of a string, by James Cherry;

PUZZLES, FORTRAN90 programs which were used to solve various puzzles.

SUBANAGRAM, a FORTRAN90 program which finds words which are anagrams formed from some of the letters of a given master word.

WORDS, a dataset directory which contains lists of words;

Reference:

  1. Dennis Shasha,
    Wordsnakes,
    Dr Dobb's Journal,
    July 2000, pages 143-144.

Source Code:

Examples and Tests:

List of Routines:


Last revised on 13 November 2006.