backtrack

package
v0.0.0-...-b071cee Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

回溯法

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bag

type Bag struct {
	Goods  []uint32
	Cap    uint32
	Weight uint32
}

func (*Bag) Load

func (b *Bag) Load(items []uint32) (goods []uint32, maxWeight uint32)

func (*Bag) String

func (b *Bag) String() string

type CheckerBoard

type CheckerBoard struct {
	// contains filtered or unexported fields
}

func (*CheckerBoard) String

func (c *CheckerBoard) String() string

type Regexp

type Regexp struct {
	Pattern string // 正则表达式
}

func (*Regexp) Match

func (re *Regexp) Match(s string) bool

Jump to

Keyboard shortcuts

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