Skip to content

pujansrt/trie-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trie-js

Trie Data Structure Implementation for Autocomplete, Dictionary Search

How to use

Include trie.js file

var trie = new Trie();
trie.insert('ant');
trie.insert('and');
trie.insert('antique');
console.log(trie.autoComplete('ant')); //['ant','antique']

Performance

Trie of 100,000 Unique words, it took 23 ms to retrieve one.

About

Trie Data Structure Implementation for Autocomplete, Dictionary Search

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published