Skip to content

A Trie data structure which can be searched using wild characters.

License

Notifications You must be signed in to change notification settings

jamesonwilliams/wildcardtrie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

wildcardtrie

A Trie data structure which can be searched using wild characters.

Build and Run

mvn package
./lookup.sh '*oor'

Outputs:

5 words match *oor in provided dict:
Moor
door
moor
poor
boor

Lookup Usage

./lookup.sh <SEARCH_TERM> [DICTIONARY_FILE_PATH]

  SEARCH_TERM           Any string of literals along with zero or more *
                        characters. * is the wild character (a single
                        character glob.)

  DICTIONARY_FILE_PATH  Path to a dictionary file, e.g. /usr/share/dict/words.

About

A Trie data structure which can be searched using wild characters.

Topics

Resources

License

Stars

Watchers

Forks