in reply to Challenge: Mystery Word Puzzle
For the 'house' example, we'd get the system:
e | k | o | p | s | = 3 | ||||||
a | e | m | s | = 2 | |||||||
d | e | m | o | s | = 3 | ||||||
a | e | h | k | s | = 3 | ||||||
d | e | k | s | u | = 3 | ||||||
b | m | p | s | u | = 2 | ||||||
a | b | d | e | h | k | m | o | p | s | u | <= 5 |
Where each of the variables (a,b,d,e,...,u) can be 0 or 1. IF there is/are solution(s) to this system, we're done. The word(s) must contain only those letters--a very simple anagram search.
If there isn't an exact solution, the system can be reduced, reducing the rules set for the dictionary search.
Update: Given the OP's additional rule:
There will be no letters in the mystery word that are not covered by the hint words. Added 2005-01-12 16:10:00 EST
I'm more convinced this approach is sound, but I won't get to coding anything until the weekend.
--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Challenge: Mystery Word Puzzle
by dragonchild (Archbishop) on Jan 13, 2005 at 04:27 UTC | |
by Solo (Deacon) on Jan 13, 2005 at 05:10 UTC | |
Re^2: Challenge: Mystery Word Puzzle
by CountZero (Bishop) on Jan 13, 2005 at 20:13 UTC | |
by dragonchild (Archbishop) on Jan 13, 2005 at 20:31 UTC | |
by Solo (Deacon) on Jan 13, 2005 at 21:12 UTC |