1. Home
  2. Explore
  3. Mathematics
  4. Unique Letter Word Puzzle

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Unique Letter Word Puzzle

🧩 The Unique Letter Word Challenge

This challenge involves finding multiple five-letter English words where, when combined, no letter is repeated across all the words. This problem was inspired by a Wordle-like scenario but is not a Wordle strategy guide. The goal is to maximize the number of such words.

💡 The Problem: Finding Disjoint Letter Sets

The core problem is to identify sets of five-letter words such that each word uses five unique letters, and all the letters across the chosen words are also unique.

Example:

  • SQUIZ (S, Q, U, I, Z)

  • PANEL (P, A, N, E, L) These two words use 10 unique letters in total.

The initial question posed was whether one could find four or even five such words. With 26 letters in the English alphabet, five five-letter words would require 25 unique letters, leaving just one letter unused. The distribution of vowels (five in total) also seems manageable if each word uses only one.


📊 Initial Approach: Exhaustive Word Search

Instead of manually trying to fit words, a computational approach was taken to analyze all possible words.

📚 Word List Curation

  1. Starting Point: A large list of 370,105 words was used, originally from a project to calculate typing distance on a typewriter.

  2. Filter by Length: Words not having exactly five letters were removed, reducing the list to 15,920 words.

  3. Filter for Unique Letters per Word: Words with repeated letters within themselves (e.g., "APPLE" has two 'P's) were removed, leaving 10,175 words.

  4. Remove Anagrams: To avoid checking rearrangements of the same letters (e.g., "LISTEN" and "SILENT"), anagrams were removed, resulting in a refined list of 5,977 unique five-letter words, each with five distinct letters.

🔢 The Combinatorial Explosion

  • The task was to find combinations of these 5,977 words.

  • The number of ways to choose 5 words from 5,977 is calculated as "5977 choose 5," which is over 63 quadrillion combinations ($$\binom{5977}{5} = \frac{5977!}{5!(5977-5)!} \approx 6.3 \times 10^{16}$$).

  • Checking a million combinations per second would still take over 2,000 years, making a direct exhaustive search impractical.

🧠 Smart Pruning for Efficiency

To reduce the computational time, a strategy of aggressive pruning was employed, similar to techniques used in code-breaking (e.g., Alan Turing and the Enigma code):

  1. Pairwise Check: Instead of checking five words at once, the algorithm started by checking all possible pairs of words.

    • It identified pairs that had 10 unique letters between them.

    • There were 3,213,696 such pairs.

  2. Branch Cutting: If a pair of words did not have 10 unique letters, any combination of five words including that pair could be immediately discarded.

  3. Iterative Expansion: The process then involved taking these valid pairs and trying to add a third, then a fourth, and finally a fifth word, ensuring unique letters at each step.

This optimized search, running on an older laptop, still took over a month to complete.


🏆 Initial Results and Challenges

The initial run of the code found 538 sets of five words with 25 unique letters.

🚩 The "FLDXT" Anomaly

  • A significant issue arose: 470 of these sets (87.3%) included the word FLDXT (pronounced "fluid extract").

  • This word, while present in the broad dictionary used, was deemed unacceptable by many, including the co-host of the podcast.

  • The initial word list was very generous, including any string of characters someone might type or use (e.g., for autofill purposes).

🌐 Google Search as a "Word Truth" Arbitrator

To refine the word list and handle potential anagram issues, a new method was developed:

  1. Google Search Count: A script was written to Google each word from the discovered sets and record the number of search results. This served as a proxy for how "word-like" a string was.

  2. Anagram Resolution: For solutions containing words that were anagrams of potentially "better" words (i.e., more common or recognized), the script would Google all anagrams and select the one with the highest Google search count.

  3. FLDXT Removal: All solutions containing "FLDXT" were removed. This left 68 sets of five words.

📈 Top-Ranked Solution (Pre-Wordle Validation)

Based on Google search results (prioritizing the highest minimum Google result count across the five words), one top-ranking set was:

  • VIBEX

  • GLYPH

  • MONTHS

  • DWARF

  • JOCKS

Other interesting but potentially controversial options included abbreviations like EXPWY (Expressway) and HDQRS (Headquarters).


🎯 The Definitive Word List: Wordle

The ultimate solution to validating "what is a word" was found in the game Wordle itself.

📜 Wordle's Official Lists

  • The original Wordle game (before its acquisition by The New York Times) contained two embedded lists:

    1. Answer words: The words that could be solutions.

    2. Guess words: Acceptable words players could input.

  • Combining these two lists yielded a definitive set of 12,972 acceptable words in Wordle. This became the gold standard for validation.

✅ Wordle Validation Results

Each of the 538 initial solutions was checked against the official Wordle list:

  • 0 words in common: 5 sets (the "absolute worst")

  • 1 word in common: 85 sets

  • 2 words in common: 210 sets

  • 3 words in common: 193 sets

  • 4 words in common: 44 sets

🥇 The Single Perfect Solution

Only one set of five words had all five words validated by the official Wordle list, containing 25 unique letters:

  1. FJORD

  2. GUCKS

  3. NYMPH

  4. VIBEX

  5. WALTZ

This set uses 25 unique letters, leaving only the letter Q unused.


🚀 Post-Podcast Optimization: Graph Theory

After the initial findings were published, a listener named Benjamin demonstrated a significantly more efficient algorithm.

⏱️ Performance Comparison

  • Original Algorithm: 32 days (over a month) on a laptop.

  • Benjamin's Algorithm: 15 minutes on a laptop.

This represents a speedup of roughly 3072 times (32 days / 15 minutes).

🕸️ Graph Theory Approach

Benjamin's method leveraged graph theory:

  1. Graph Construction:

    • Each unique five-letter word with five distinct letters was represented as a node (vertex) in a graph.

    • An edge was drawn between two nodes (words) if they shared no common letters.

  2. Subgraph Search:

    • The problem then transformed into finding complete subgraphs (cliques) of size five.

    • A complete subgraph of size five means five nodes (words) where every node is connected to every other node (i.e., all five words have no letters in common with each other).

This elegant approach drastically reduced the computational complexity, finding 831 solutions (including anagrams, which the original algorithm had removed) in a fraction of the time.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent