Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple Trie implementation for Node.js.

branch: master
Octocat-spinner-32 dict Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 vendor Update to Benchmark.js 0.1.348. March 18, 2011
Octocat-spinner-32 .gitmodules Use Benchmark.js for performance testing. March 17, 2011
Octocat-spinner-32 Bits.js Change the ORD() function to an object for faster lookups, based upon… March 23, 2011
Octocat-spinner-32 README.md Mention the blog post on JavaScript Trie Performance Analysis in the … March 18, 2011
Octocat-spinner-32 build-trie.js Fix rogue endline that snuck through the build process. March 17, 2011
Octocat-spinner-32 dump-trie.js Pulling in the initial work and tests. March 16, 2011
Octocat-spinner-32 load.html Fix rogue endline that snuck through the build process. March 17, 2011
Octocat-spinner-32 lookup.html Add a simple test for checking the lookup time of a Succinctly-stored… March 22, 2011
Octocat-spinner-32 test-build-binary.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-build-dummy.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-build-hash.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-build-string.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-build-succinct.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-build-trie.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-find-binary.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-find-hash.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-find-string.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-find-succinct.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 test-find-trie.js Add in tests for succinct trie and binary search string. March 22, 2011
Octocat-spinner-32 util.js Add in tests for succinct trie and binary search string. March 22, 2011
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.