Tonight I saw a riddle on television.
They looked for a meaningful german word, however the problem has nothing to do with the language.
They placed the following 9 letters on screen:
B L U T M E O P F
and asked "what meaningful word is hidden here?"
I know that this has to been recognized as a string-change-problem where every letter can have the place from 1 to 9 (no doubles) to cover all possibilities and then it would be easy (for me,not easy for the program) to find out what a meaningful word is.
I thought about a loop to deliver me all possibilities but I
did not come to a solution.
How has that loop to be coded?
And - how many words (senseless or not) will that produce in total in case of this example ?
It is not necessary to compare the words found with an enzyklopedia.
I know that Foxpro can do it with just a few commands (as well as Basic or C++) but in Fox it would be most understandable for me.
Thanks folks.
By the way - they awarded 4,000 Euro for the right word, and
next time when they have a similiar riddle, I would run such
a evaluation-program to be the first who phones *ggg
Peace worldwide - it starts here...
They looked for a meaningful german word, however the problem has nothing to do with the language.
They placed the following 9 letters on screen:
B L U T M E O P F
and asked "what meaningful word is hidden here?"
I know that this has to been recognized as a string-change-problem where every letter can have the place from 1 to 9 (no doubles) to cover all possibilities and then it would be easy (for me,not easy for the program) to find out what a meaningful word is.
I thought about a loop to deliver me all possibilities but I
did not come to a solution.
How has that loop to be coded?
And - how many words (senseless or not) will that produce in total in case of this example ?
It is not necessary to compare the words found with an enzyklopedia.
I know that Foxpro can do it with just a few commands (as well as Basic or C++) but in Fox it would be most understandable for me.
Thanks folks.
By the way - they awarded 4,000 Euro for the right word, and
next time when they have a similiar riddle, I would run such
a evaluation-program to be the first who phones *ggg
Peace worldwide - it starts here...