ktrie

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KNode

type KNode struct {
	// contains filtered or unexported fields
}

KNode ...

func NewKNode

func NewKNode(val rune) *KNode

NewKNode ...

func (*KNode) Add

func (n *KNode) Add(rs []rune)

Add ...

func (*KNode) Find

func (n *KNode) Find(rs []rune) bool

Find ...

func (*KNode) FindAsUpper added in v0.4.1

func (n *KNode) FindAsUpper(rs []rune) bool

FindAsUpper ...

type KTrie

type KTrie struct {
	*KNode
	// contains filtered or unexported fields
}

KTrie ...

func NewKTrie

func NewKTrie(data map[string]bool) (*KTrie, error)

NewKTrie ...

func (*KTrie) MaxDepth

func (t *KTrie) MaxDepth() int

MaxDepth ...

func (*KTrie) MinDepth added in v0.4.1

func (t *KTrie) MinDepth() int

MinDepth ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL