A simple Trie implementation for Node.js.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dict
vendor
.gitmodules
Bits.js
README.md
build-trie.js
dump-trie.js
load.html
lookup.html
test-build-binary.js
test-build-dummy.js
test-build-hash.js
test-build-string.js
test-build-succinct.js
test-build-trie.js
test-find-binary.js
test-find-hash.js
test-find-string.js
test-find-succinct.js
test-find-trie.js
util.js

README.md

A Simple JavaScript Trie Generator

By John Resig

Copyright 2011 John Resig
MIT Licensed

All code is designed to work in Node.js.

To clone this repository including the Benchmark.js submodule:

git clone --recursive https://github.com/jeresig/trie-js.git

To build an optimized Trie run:

node build-trie.js > dict/suffix.js

To dump a full dictionary of words from the Trie do:

node dump-trie.js

A sample function for finding a word in the Trie can be see in util.js, named findTrieWord.