hyunwoongko / simpleDATrie

Simple Double Array Trie implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpleDATrie

This is a C++\Python implementation of Double Array Trie.

Double Array Trie

You can read about the Trie data structure on the Wiki page. The Double Array Trie lets you store a Trie in two arrays. The algorithm is described here.

Implementation

The code is ported from java implementation from digitalstain/DoubleArrayTrie, which was later improved by Tsugiru and codelogicanalysis. I merely ported their code to C++ and Python.

There exists a much better implementation of Double Array Trie in libdatrie. However, this code seems simpler and more straightforward if you just need a base implementation.

Contacts

You can contact me here or at roman.vygon@gmail.com for any questions.

About

Simple Double Array Trie implementation

License:GNU General Public License v3.0


Languages

Language:C++ 65.1%Language:Python 34.9%