Anagram Solver in C

Hi, Here's a small anagram solver written in C. It works based on generating permutations of given string and comparing them using a dictionary. For fast search in dictionary, the program first creates an index of the starting location of each alphabet. It takes a few minutes to process long words.

Here's the source code. Suggestions are always welcome, Greetings :)

Update: There's a little problem in using the term 'anagram solver' here. An anagram solver finds words from another valid word - But this program finds words from the characters of given valid/invalid word.  Thanks to technikhil for the info :)

Note: Realized that this implementation of anagram solver is inefficient. Will post a better one soon.

Leave a Comment