All Projects → mikedeboer → trie

mikedeboer / trie

Licence: other
My take on an efficient implementation of a Trie in Javascript

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to trie

Completely
Java autocomplete library.
Stars: ✭ 90 (+25%)
Mutual labels:  trie
Algorithms
A collection of common algorithms and data structures implemented in java, c++, and python.
Stars: ✭ 142 (+97.22%)
Mutual labels:  trie
Patricia
Garbage collector-sensitive patricia tree for IP/CIDR tagging
Stars: ✭ 194 (+169.44%)
Mutual labels:  trie
Data Structures
Data-Structures using C++.
Stars: ✭ 121 (+68.06%)
Mutual labels:  trie
Slim
Surprisingly space efficient trie in Golang(11 bits/key; 100 ns/get).
Stars: ✭ 1,705 (+2268.06%)
Mutual labels:  trie
Router
⚡️ A lightning fast HTTP router
Stars: ✭ 158 (+119.44%)
Mutual labels:  trie
Flash
Golang Keyword extraction/replacement Datastructure using Tries instead of regexes
Stars: ✭ 79 (+9.72%)
Mutual labels:  trie
goblin
A golang http router based on trie tree.
Stars: ✭ 52 (-27.78%)
Mutual labels:  trie
Trie4j
PATRICIA, Double Array, LOUDS Trie implementations for Java
Stars: ✭ 139 (+93.06%)
Mutual labels:  trie
Opencc4j
🇨🇳Open Chinese Convert is an opensource project for conversion between Traditional Chinese and Simplified Chinese.(java 中文繁简体转换)
Stars: ✭ 187 (+159.72%)
Mutual labels:  trie
Gse
Go efficient multilingual NLP and text segmentation; support english, chinese, japanese and other. Go 高性能多语言 NLP 和分词
Stars: ✭ 1,695 (+2254.17%)
Mutual labels:  trie
Java Ds Algorithms
Data Structures and Algorithms in Java
Stars: ✭ 125 (+73.61%)
Mutual labels:  trie
Algo Tree
Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
Stars: ✭ 166 (+130.56%)
Mutual labels:  trie
Buckets Swift
Swift Collection Data Structures Library
Stars: ✭ 106 (+47.22%)
Mutual labels:  trie
Data Structures
A collection of powerful data structures
Stars: ✭ 2,534 (+3419.44%)
Mutual labels:  trie
Tongrams
A C++ library providing fast language model queries in compressed space.
Stars: ✭ 88 (+22.22%)
Mutual labels:  trie
Opends
Template Library of Data Structures in C++17
Stars: ✭ 151 (+109.72%)
Mutual labels:  trie
trie-perf
Performance shootout of various trie implementations
Stars: ✭ 18 (-75%)
Mutual labels:  trie
xcdat
Fast compressed trie dictionary library
Stars: ✭ 51 (-29.17%)
Mutual labels:  trie
Leetcode
High-quality LeetCode solutions
Stars: ✭ 178 (+147.22%)
Mutual labels:  trie

Trie.js

My take on an efficient implementation of a Trie in Javascript

Short story

A Trie is a kind of digital search tree. (See [Knuth1972] for more details on digital search trees.)

[Fredkin1960] introduced the trie terminology, which is abbreviated from "Retrieval".

[Knuth1972] Knuth, D. E. The Art of Computer Programming Vol. 3, Sorting and Searching. Addison-Wesley. 1972.

[Fredkin1960] Fredkin, E. Trie Memory. Communication of the ACM. Vol. 3:9 (Sep 1960). pp. 490-499.

(source)

The trie implementation of Dennis Byrne served as a starting point and inspiration.

For more information, please take a look at the Wikipedia article

Usage

Please take a look at the file

  test/test.html

which pretty much explains the things you can do with Trie.js in code. The test.html file uses a pure JS dataset of 44.830 records, which you can find in

  data/people_44830.js

More information and full documentation of the API can be found in

  docs/index.html

Or read them online at https://mikedeboer.github.io/trie/.

License

MIT.

Amsterdam, 2010. Mike de Boer.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].