Skip to content

Commit

Permalink
Add installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Feb 15, 2014
1 parent 7452dd9 commit 7efebd2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ But in short a trie is a data structure that holds strings in a tree. So if you

It's easy to see how this can have pretty neat implications for things like searching through lists of strings, sorting lists of strings, and things like spelling correction and autocompletion.

h2. Installation

From RubyGems https://rubygems.org/gems/fast_trie

<pre><code>
gem install fast_trie
</code></pre>

h2. Tutorial

Let's go through building a simple autocompleter using Trie.

<pre><code>
require 'trie'
Trie.new
</code></pre>

Expand Down Expand Up @@ -129,4 +137,4 @@ The reason the insertion times takes such a beating is due, again, to a limitati



Copyright (c) 2008 Tyler McMullen. See LICENSE for details.
Copyright (c) 2008 Tyler McMullen. See LICENSE for details.

0 comments on commit 7efebd2

Please sign in to comment.