Skip to content

mmajhi/WordGame-Solution-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordGame Solution Generator

Synopsis

Meaningful Words that can be made from given letters and of specific length can be generated with this code.

Enter the letters: kates
Enter the required length of word: 5

teaks
skate
skeat
steak
takes
stake
keats

How does it work

Loading

The dictionary.txt file contains 466k different english words. All these words are loaded in the Trie data structure.

Searching

All the permutations of the given letters of provided length are then searched in the Trie and if found it is printed.

For using trie data structure the program runs very fast and efficiently. The time complexity for searching and inserting a word is O(n) where n is the length of the word.

Optimization

A better 'dictionary.txt' file(with less irrelevant words) can be used for speeding up the loading time and less memory consumption.

Author

Mayukh Majhi and contributors

About

Provide solutions of different wordgames

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages