package
module
Version:
v0.0.0-...-46e60ff
Opens a new window with list of versions in this module.
Published: May 25, 2016
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
goTrie
Simple implementation of Trie data structure
Documentation
¶
Trie defines a Trie node representation
New initializes new Trie object with attributes default values
Add adds a string to the Trie datastructure
Children returns number of different suffixes, starting from this node.
Get checks if the string is a word stored in the Trie datastructure.
GetWordsFromPrefix returns list of words starting with provided prefix
Has looks for a word and return True if the word is present, false otherwise.
IsWord returns true if the node is also indicator for a whole word,
false otherwise
Source Files
¶
Click to show internal directories.
Click to hide internal directories.