Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple Trie implementation for Node.js.
JavaScript
branch: master

Merge pull request #7 from joybro/master

Fix finding repeated word bug
latest commit 1b51fa20cd
@jeresig authored
Failed to load latest commit information.
dict Add in tests for succinct trie and binary search string.
vendor Update to Benchmark.js 0.1.348.
.gitmodules Use Benchmark.js for performance testing.
Bits.js Change the ORD() function to an object for faster lookups, based upon…
README.md Mention the blog post on JavaScript Trie Performance Analysis in the …
build-trie.js Fix rogue endline that snuck through the build process.
dump-trie.js Pulling in the initial work and tests.
load.html Fix rogue endline that snuck through the build process.
lookup.html Add a simple test for checking the lookup time of a Succinctly-stored…
test-build-binary.js Add in tests for succinct trie and binary search string.
test-build-dummy.js Add in tests for succinct trie and binary search string.
test-build-hash.js Add in tests for succinct trie and binary search string.
test-build-string.js Add in tests for succinct trie and binary search string.
test-build-succinct.js Add in tests for succinct trie and binary search string.
test-build-trie.js Add in tests for succinct trie and binary search string.
test-find-binary.js Add in tests for succinct trie and binary search string.
test-find-hash.js Add in tests for succinct trie and binary search string.
test-find-string.js Add in tests for succinct trie and binary search string.
test-find-succinct.js Add in tests for succinct trie and binary search string.
test-find-trie.js Fix finding repeated word bug
util.js Fix finding repeated word bug

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.

Something went wrong with that request. Please try again.