Re: Crossword generator

From: Gerry Quinn (gerryq_at_DELETETHISindigo.ie)
Date: 11/06/04


Date: Sat, 6 Nov 2004 12:31:20 -0000

In article <Pine.LNX.4.60-041.0411021544550.20634
@unix41.andrew.cmu.edu>, ajo@nospam.andrew.cmu.edu says...
> The input to the generator would be a crossword grid of black and white
> squares, and the output would be the same grid with all the white squares
> filled with letters such that each contiguous horizontal and vertical
> sequence of letter-squares formed a word in some given dictionary (also
> supplied as input).

I think basically you will want to do a depth-first search with back-
tracking. Probably you will want to combine this with a heuristic that
tries first to fill out isolated remaining words, or those with most or
nastiest filled-in letters. The idea is to tell quickly if you have
reached a dead end. When far from a dead end, you could try words in
random order, to ensure a good variety of solutions.

- Gerry Quinn



Relevant Pages

  • Looking for name of "Letter Sudoku"
    ... I found an interesting crossword variation in an in-flight magazine ... It's an 8x8 grid containing words, not all squares keyed, ... Some letters have already been ...
    (rec.puzzles)
  • Re: How many grids?
    ... has calculated how many different puzzle grids can be created. ... Times, Guardian, Indie etc - repeat their grids? ... squares is around 60 so there will be a total of 11 to add. ... have any bigger than 5 letters. ...
    (rec.puzzles.crosswords)
  • Please hellp again with a code
    ... When clicking the OK in the page, the letters on the squares would ... padding: .1em; ... var el = document.getElementById; ...
    (comp.lang.javascript)
  • Re: Enigma 1512 - All square
    ... coded them using letters for digits, ... different digits. ... If 4 of the numbers are squares, ... Please reply to ilan dot mayer at hotmail dot com ...
    (rec.puzzles)