Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/vivekn/autocomplete

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/vivekn/autocomplete

  • v0.0.0-20150416112458-8a27a939c80e
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

FAQs

Package last updated on 16 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc