Documentation ¶
Index ¶
Constants ¶
View Source
const ( WHITE = 0 GRAY = 1 BLACK = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DijkstraSolver ¶
type DijkstraSolver struct {
// contains filtered or unexported fields
}
func NewDijkstraSolver ¶
func NewDijkstraSolver(vinf Value, less Less, estimate Estimate) *DijkstraSolver
func (*DijkstraSolver) Dijkstra ¶
func (ds *DijkstraSolver) Dijkstra(S []StartPoint, n int, AG [][]Edge) []Value
verified by [ABC143-E](https://atcoder.jp/contests/abc143/tasks/abc143_e)
type StartPoint ¶
type StartPoint struct {
// contains filtered or unexported fields
}
for initializing start points of dijkstra algorithm
type Vertex ¶
type Vertex struct {
// contains filtered or unexported fields
}
Definitions of a priority queue
Click to show internal directories.
Click to hide internal directories.