DAT.js
This library implements a Double Array Trie (DAT) System in JavaScript. A Double-Array Trie is a structure designed to make the size compact while maintaining fast access with algorithms for retrieval. Read more about it here.
Designed as a library to support my DAT-AC algorithm, this library naturally provides support for the aho-corasick algorithm, but keeps the more traditionally linked list trie when building the double array trie.
Instructions
Node.js
var doublearray = ; var data = 'redundant': 1 'rambunctious': 2 'pies': 3 'puncture': 4 'whistle': 5 ;
Bower.js
var data = 'redundant': 1 'rambunctious': 2 'pies': 3 'puncture': 4 'whistle': 5 ;
With Source
var doublearray = ;var data = 'redundant': 1 'rambunctious': 2 'pies': 3 'puncture': 4 'whistle': 5 ;
Usage
Insert Data
data;data;
Query Data
trie
Delete Data
trie