dictator

package module
v0.0.0-...-d4ae49e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDictionary

func GenerateDictionary(table map[string]int, dictSize int, threshold int) (dictionary string)

GenerateDictionary builds an LZ77 dictionary from a given frequency table.

func GenerateTable

func GenerateTable(windowSize int, paths []string, compLevel int, progress chan<- float64, concurrency int) (table map[string]int)

GenerateTable builds a frequency table of incompressible literals from files.

func NewDictator

func NewDictator(windowSize int) *dictator

Types

type PriorityQueue

type PriorityQueue []*scoredString

A PriorityQueue implements heap.Interface and holds scoredStrings

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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