Skip to content

colindean/autocomplete

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autocomplete with Trie

Tries for efficient automatic word completion in several languages.

Implementations

  • C++ - Vivek Narayanan (@vivekn)
  • Go - Martijn van Maasakkers (@mvmaasakkers)
  • Java - Marcus McCurdy (@volker48)
  • Python - Vivek Narayanan (@vivekn)
  • Ruby - Colin Dean (@colindean)

Want to add an implementation? Submit a pull request! Please also submit tests and preferably a benchmark, too.

How to Use

See the tests or the benchmarks for examples, but the general gist is something like this, in Ruby notation:

trie = Trie.new
trie.insert("word")
array_of_words_that_begin_with = trie.autocomplete("wo")

License - BSD

About

Tries for efficient automatic word completion in Python & C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 26.8%
  • Go 25.0%
  • Ruby 14.7%
  • Java 14.7%
  • Python 10.7%
  • C++ 8.1%