Documentation ¶
Index ¶
Constants ¶
View Source
const END_NODE_BASE = -1
View Source
const RESIZE_DELTA = 64
View Source
const ROOT_NODE_BASE = 1
View Source
const ROOT_NODE_INDEX = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Darts ¶
func (*Darts) Build ¶
func (d *Darts) Build(keywords [][]rune) (*DoubleArrayTrie, *LinkedListTrie, error)
type DoubleArrayTrie ¶
Double Array Trie
func (*DoubleArrayTrie) ExactMatchSearch ¶
func (dat *DoubleArrayTrie) ExactMatchSearch(content []rune, nodePos int) bool
func (*DoubleArrayTrie) PrintTrie ¶
func (dat *DoubleArrayTrie) PrintTrie()
type LinkedListTrie ¶
type LinkedListTrie struct {
Root *LinkedListTrieNode
}
func (*LinkedListTrie) PrintTrie ¶
func (llt *LinkedListTrie) PrintTrie()
type LinkedListTrieNode ¶
type LinkedListTrieNode struct { Code rune Depth, Left, Right, Index, Base int SubKey []rune Children [](*LinkedListTrieNode) }
Linked List Trie
Click to show internal directories.
Click to hide internal directories.