volcano

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

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

func (Iterator) Constraint

func (it Iterator) Constraint(_, _ *valve.Valve) bool

func (Iterator) Next

func (it Iterator) Next(n *valve.Valve) []*valve.Valve

type Node

type Node struct {
	ValveID          int
	Time             int
	PressureReleased int
	Visited          int64
}

type Volcano

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

func New

func New(valvesMap map[string]*valve.Valve) Volcano

func (Volcano) FindBestCombination

func (v Volcano) FindBestCombination(paths []*Node) int

func (Volcano) HighestPossiblePressureReleased

func (v Volcano) HighestPossiblePressureReleased(from *valve.Valve, maxTime int) (int, []*Node)

Jump to

Keyboard shortcuts

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