Friday, January 22, 2021

Landmarks, elements, and states (Solution)

Time for this week's solution. Spoilers ahead!

Here's the Sunday Puzzle again:

This challenge comes from listener Gerry Reynolds of Chicago. Name a national landmark (6,3). Add the name of a chemical element. Rearrange all the letters to name two states. What are they?

As we discussed, (US) states is a closed set of 50, and elements are a closed set of 118. But we need a list of national landmarks, which is an open set. I suggested we start with Wikipedia for a list of landmarks. 

Surprisingly, I didn't find what I wanted at Wikipedia. There are lists of landmarks by state, and national parks, etc., but nothing like a single big list of landmarks and tourist attractions.

I did some web searching instead and found a nice clean list of 200 national landmarks.

Given that we're dealing with three fairly small lists, I just hard coded the lists into my solver script (rather than storing them in files to be read by the script). As always, you can find the solver script on the companion GitHub repo for this blog. It's annotated with comments so it should be easy to follow. Basically, I simply followed the plan I laid out in the preview post:

  1. keep only landmarks that fit (6,3) (i.e., a 6-letter word followed by a 3-letter word)
  2. generate all landmark-element pairs
  3. generate all state-state pairs
  4. for each landmark-element pair, compare each state-state pair for a match:
    1. for comparison, for each pair: lowercase, remove non-letters, sort letters, join all letters to single sorted string; e.g., ["North Dakota", "Ohio"] --> "aadhhiknoooortt"
And it worked. Let's get to the solution, below. Scroll slowly, I'm going to drop some clues along the way.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Clue 1. The partially-redacted string produced in step 4 above:

##eh###oor#v
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Clue 2. There was only one landmark from my list of 200 that fit the (6,3) requirement. The first word (6) is spelled with the letters shown above in Clue 1.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Clue 3. The full string produced in step 4 above:

adehimnoortv
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Clue 4. Okay, you've probably solved it by now. If not, the states are:

idaho, vermont
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The solution:

hoover dam, tin / idaho, vermont


See you next week!
--Levi King

No comments:

Post a Comment

Director, anagram, film award

Welcome back to Natural Language Puzzling, the blog where we use natural language processing and linguistics to solve the Sunday Puzzle from...