mctree

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: GPL-2.0, GPL-2.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key_bits            uint
	Restart_after_steps uint
	Max_leafs           uint
	Min_pairs_for_split uint
	Validate_iter       uint
	Temperature         float64
}

type Main

type Main struct {
	Config
	// contains filtered or unexported fields
}

func (*Main) AddDel

func (m *Main) AddDel(p []Pair, is_del bool)

func (*Main) Init

func (m *Main) Init()

func (*Main) Print

func (m *Main) Print(i uint, start time.Time, verbose bool)

func (*Main) Restore

func (m *Main) Restore(path string) (err error)

func (*Main) Save

func (m *Main) Save(path string) (err error)

func (*Main) Step

func (m *Main) Step() (lower_cost_found bool)

func (*Main) Validate

func (m *Main) Validate()

type Pair

type Pair struct{ Mask, Value word }

Keys are made up of multiple pairs each having a mask and a value. A keys k matches k & mask == value for all pairs.

func (*Pair) Set

func (a *Pair) Set(value, mask uint)

Jump to

Keyboard shortcuts

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