Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dokato/trie

python implementation of trie
https://github.com/dokato/trie

Last synced: 18 days ago
JSON representation

python implementation of trie

Awesome Lists containing this project

README

        

## Trie

Simple python implementation of [Trie](http://en.wikipedia.org/wiki/Trie) tree data structure also known as *digital tree*, sometimes *radix tree* or *prefix tree*. Efficient when keeping string clues.

It was done as a part of the semester project for "Algorithms and data structers" subject on University of Warsaw.
___

#### Dictionary

You can use Trie as a dictionary. Dictionary implemented as a
command line parser *dictparser.py*. Here are some commands:

```
i word # insert word
r word # remove word from dictionary
f word # print lexicographic number
n l # print lth word
p pref # print number of words starting with prefix pref
a # print all words in lexicographic order
d # print all words in reversed order
```