Talk:Word wheel

From Rosetta Code
Revision as of 21:52, 4 July 2020 by rosettacode>Gerard Schildberger (→‎Algorithms: added some verbiage concerning the word filters.)

Algorithms

It seemed logical to me to have the Python entry check each word of the dictionary against the grid constraints. The Julia entry seems to generate all possible conforming strings from the grid characters then checks if they are in the dictionary.
Nice. --Paddy3118 (talk) 15:30, 4 July 2020 (UTC)

It seems a waste of memory and CPU time to generate all possible conforming strings instead of writing some simple filters that validates the words against the Rosetta Code task and grid (word wheel) constraints.   The REXX solution consumes almost all of the CPU time in just reading in the dictionary.   The filters that I used for the REXX programming solution eliminate over half of the 25,105 words in the UNIXDICT file.   A very small fraction of that is used to validate that each letter (by count) is represented in the grid.   I wonder what the CPU consumption would be if the number of words (entries) in the dictionary were a magnitude larger.     -- Gerard Schildberger (talk) 21:34, 4 July 2020 (UTC)