algorithm

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

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

algorithm

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEnable = false

Functions

func CombNumber

func CombNumber(n, m uint64) uint64

func CombinerSelect

func CombinerSelect(result *list.List, data, workspace []byte, m, n int)

func CombinerSelectNoRecursion

func CombinerSelectNoRecursion(atable []int32, n int) [][]int32

func CombinerSelectUseRecursion

func CombinerSelectUseRecursion(atable []int32, n int) [][]int32

func ConcurrentCombinerSelect

func ConcurrentCombinerSelect(result chan []byte, taskQue chan *CombineTask, data, workspace []byte, m, n int)

func FullPermutation

func FullPermutation(atable []int32) [][]int32

全排列

Types

type CombineTask

type CombineTask struct {
	Data      []byte
	Workspace []byte
	N         int
	M         int
	Result    chan []byte
}

Jump to

Keyboard shortcuts

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