Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a trie data structure (foudation for a more robust auto-complete search)

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

readme.md

Trie House

This is a trie data structure implemented in ruby. The goal for the project was purely academic. However, I am thinking that something like this might be useful for an auto-complete plugin.

I would like to see if there is a way to bypass AR for auto-complete queries. Ideally, i would have the data returned from the query populated into the trie.

trie = Trie.new
trie  true
trie.has_word?("pi") #=> true
trie.has_word?("pie") #=> true
trie.each { |word| puts word.key }
trie = Trie.new
trie  ['on','only','one']
Something went wrong with that request. Please try again.