{"id":181,"date":"2012-03-25T22:02:22","date_gmt":"2012-03-25T22:02:22","guid":{"rendered":"http:\/\/alexboisvert.com\/musings\/?p=181"},"modified":"2012-04-13T15:22:32","modified_gmt":"2012-04-13T15:22:32","slug":"paging-dr-fill","status":"publish","type":"post","link":"https:\/\/alexboisvert.com\/musings\/2012\/03\/25\/paging-dr-fill\/","title":{"rendered":"Paging Dr. Fill"},"content":{"rendered":"<p>I&#8217;m sure most of my readers have heard of Dr. Fill, the Matt Ginsberg solving computer program that competed in this past ACPT. Now Matt is an artificial intelligence expert, so I&#8217;m sure Dr. Fill does about as well as a computer program could at solving crosswords. My question is: how hard would it be to write a computer program that would give about 80% of the solving capability of Dr. Fill? And to make it especially easy on ourselves, let&#8217;s presume we already have a large database of crossword clues and entries, and a relatively fast, effective way of ranking entries with a clue and a letter pattern (e.g. given [Melodic passages] and the letter pattern ?R???? it would return ARIOSI with score 19 and ARIOSO\/ARIOSE with score 10). Since I have this setup already, I thought this might be a good starting point. \ud83d\ude42<\/p>\n<p>What would the algorithm look like from this point? Here are my initial thoughts.<\/p>\n<p><!--more--><\/p>\n<p>I think it would need to be a recursive\/iterative algorithm. At each step we have a partially filled-in grid. The algorithm would:<\/p>\n<ul>\n<li>Go to each position in the grid and apply the above process to get possibilities for that position.\u00a0 If no possibilities are returned, simply select all possibilities that fit and assign them a low score.<\/li>\n<li>Take the highest-scoring match and place it in the grid.<\/li>\n<li>Repeat with the new grid.<\/li>\n<\/ul>\n<p>If we get to a point where there are no possibilities we have to backtrack.\u00a0 That subroutine would go to (I guess) the most recently filled-in answer, remove it and go to the next possibility.\u00a0 Meanwhile, once the grid is completed we stop, unless there&#8217;s some way to &#8220;check&#8221; the grid.<\/p>\n<p>Is there a better way to do this, or some tweaks to the above I can add?\u00a0 I kind of want to do this to see how well it would perform.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m sure most of my readers have heard of Dr. Fill, the Matt Ginsberg solving computer program that competed in this past ACPT. Now Matt is an artificial intelligence expert, so I&#8217;m sure Dr. Fill does about as well as &hellip; <a href=\"https:\/\/alexboisvert.com\/musings\/2012\/03\/25\/paging-dr-fill\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11,5],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-coding","category-fillbot-jr","category-puzzles"],"_links":{"self":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":2,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/posts\/181\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexboisvert.com\/musings\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}