Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Program idea

JohnNichols
Valued Contributor III
461 Views

So this morning I was reading an article about Wordle.  

So I played it, after three attempts, here is the picture:

Screenshot 2022-02-20 102217.png

 

I thought I could write a Fortran program to just look up a list of 5 letter words using the reduced set and see what comes out.  

Turns out the free dictionary has already done that - after three goes from the reduced set it recommends. 

tacit. You may also type: tackycansttacantabacfactstackscanty.

 

tobacco

tabac

 

Dang some of these people are quick.   LOL The spell checker misses two of these words. 

tactical air navigation system, commonly referred to by the acronym TACAN,

 

 

"Success after two edits."  It is Sunday after all, except east of Australia. 

 

0 Kudos
2 Replies
cryptogram
New Contributor I
430 Views

This touches on one of my interests, the solving of simple substitution cryptograms.  In my solver, one of the available actions

is to click on an unsolved word and get a list of possible candidates taking account any known letters, and the patterns of the unknown letters.

 

In my case, I don't use an ordinary dictionary, because it would suggest uncommon words.  I want a list of likely words in order of likeliness.  To do this, I've fed my program a steady diet of cryptograms for many years.  Every solved word is added to the  dictionary, and it keeps track of how often each word shows up.   I start by building a list using only the known letters and letter pattern of the unsolved word, and then I try to whittle down the list by seeing what selecting a word as a proposed solution would do to other words within the puzzle, specifically whether proposed letters in one word will create odd letter pairings within other words.  I call this the "funny looking word" test.  Whatever is left after the filtering is presented sorted by number of previous appearances.

 

 

My goal here isn't to solve the cryptograms efficiently.  If you had a perfect dictionary, it's a fairly simple exercise to build candidate lists for various words (starting with the long and short ones, if you really want to be efficient)  and cross reference the solution letter sets until you find a common solution.  Instead I'm trying to emulate the way a human (me) solves the puzzles.

 

BTW, I got that one in 3 tries.  Started with THINK.  So far best I've done is 2.

 

0 Kudos
JohnNichols
Valued Contributor III
421 Views

I am not sure I would have solved it without the help.  But it is fun trying.  

The big one of course is the CIA unsolved riddle.  

 

0 Kudos
Reply