Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryTree ¶
BinaryTree - represent binary tree
func (*BinaryTree) CreateTree ¶
func (bt *BinaryTree) CreateTree(list *NodeList)
CreateTree - creates tree from list
func (*BinaryTree) EncodeSymbols ¶
func (bt *BinaryTree) EncodeSymbols(symbolsToEncode []rune) []Encoded
EncodeSymbols encodes symbols to binary by created tree
type Node ¶
Node - represent element of NodeList
Data - data to be coded Freq - frequency of occurrence
type NodeList ¶
NodeList - represent list of nodes
func (*NodeList) CreateList ¶
func (n *NodeList) CreateList(o occ.Occurrences)
CreateList - creates linked list from user's input
Click to show internal directories.
Click to hide internal directories.