An open API service indexing awesome lists of open source software.

https://github.com/pujansrt/trie-js

Trie Data Structure Implementation for Autocomplete, Dictionary Search
https://github.com/pujansrt/trie-js

javascript trie-tree trie-tree-autocomplete typescript

Last synced: 23 days ago
JSON representation

Trie Data Structure Implementation for Autocomplete, Dictionary Search

Awesome Lists containing this project

README

        

# 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.