Skip to content

jmegner/JumbleSolver

Repository files navigation

Jumble Solver written multiple times in different programming languages.

Used languages:
    C
    C++/cpp/cplusplus (C++03, C++17)
    C#/csharp
    Haskell
    Java
    JavaScript
    Perl
    PowerShell
    Python
    Ruby
    Rust
    Scheme

Each jumble solver takes dictionary files as command line arguments.  Once the
dictionary files are processed, the user is presented with a prompt.  Once the
user enters a word, the jumble solver prints out all anagrams of that word that
were found in the dictionary files. The get-word-print-anagrams process is
repeated until the user terminates input (either by doing ctrl+d on the
keyboard or the end of a file).

Each implementation uses a data structure that maps alphabetically-sorted words
to a set of all words that sort to that word.  So, each time the user provides
a word, the jumble solver sorts the word, and prints the corresponding
collection of words.  This technique was chosen for its simplicity and
computational efficiency.

Reminder for myself: words from dictionary files and user should become
lowercase before use

About

Unjumbles words; implementations in several languages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published