Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Usles int
Functions ¶
func HaffmanCompress ¶
func HaffmanCompress()
func HaffmanDecode ¶
func HaffmanDecode2 ¶
Types ¶
type Node2 ¶
type Node2 struct {
// contains filtered or unexported fields
}
Huffman Tree Node
func HaffmanEncode2 ¶
type PriorityQueue ¶
type PriorityQueue []*Node
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type PriorityQueue2 ¶
type PriorityQueue2 []*Node2
A Min-Heap (priority queue) for the nodes
func (PriorityQueue2) Len ¶
func (pq PriorityQueue2) Len() int
func (PriorityQueue2) Less ¶
func (pq PriorityQueue2) Less(i, j int) bool
func (*PriorityQueue2) Pop ¶
func (pq *PriorityQueue2) Pop() interface{}
func (*PriorityQueue2) Push ¶
func (pq *PriorityQueue2) Push(x interface{})
func (PriorityQueue2) Swap ¶
func (pq PriorityQueue2) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.