Documentation
¶
Index ¶
- func RoadsAndLibraries(numCities int32, libCost int32, roadCost int32, roads [][]int32) int64
- type ComponentsInGraphSets
- type PqItem
- type PriorityQueue
- type ReallySpecialSubtreeEdge
- type ReallySpeciallSubtreeGraph
- type ReallySpeciallSubtreeSet
- type RoadsAndLibrariesGraph
- type SnakesAndLaddersEdge
- type SnakesAndLaddersGraph
- type SnakesAndLaddersNode
- type SnakesAndLaddersQueue
- type SnakesAndLaddersQueueEntry
- type SpecialTreeEdge
- type SpecialTreeGraph
- type SpecialTreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentsInGraphSets ¶
type ComponentsInGraphSets struct {
// contains filtered or unexported fields
}
type PriorityQueue ¶
type PriorityQueue []*PqItem
func (PriorityQueue) IsEmpty ¶
func (pq PriorityQueue) IsEmpty() bool
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() any
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x any)
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type ReallySpecialSubtreeEdge ¶
type ReallySpecialSubtreeEdge struct {
// contains filtered or unexported fields
}
type ReallySpeciallSubtreeGraph ¶
type ReallySpeciallSubtreeGraph struct {
// contains filtered or unexported fields
}
type ReallySpeciallSubtreeSet ¶
type ReallySpeciallSubtreeSet struct {
// contains filtered or unexported fields
}
Disjoint Set - auxiliary datastructure
type RoadsAndLibrariesGraph ¶
type RoadsAndLibrariesGraph struct {
// contains filtered or unexported fields
}
func NewRoadsAndLibrariesGraph ¶
func NewRoadsAndLibrariesGraph(n int32, roads [][]int32) *RoadsAndLibrariesGraph
type SnakesAndLaddersEdge ¶
type SnakesAndLaddersEdge struct {
// contains filtered or unexported fields
}
type SnakesAndLaddersGraph ¶
type SnakesAndLaddersGraph struct {
// contains filtered or unexported fields
}
type SnakesAndLaddersNode ¶
type SnakesAndLaddersNode struct {
// contains filtered or unexported fields
}
type SnakesAndLaddersQueue ¶
type SnakesAndLaddersQueue struct {
// contains filtered or unexported fields
}
type SnakesAndLaddersQueueEntry ¶
type SnakesAndLaddersQueueEntry struct {
// contains filtered or unexported fields
}
type SpecialTreeEdge ¶
type SpecialTreeEdge struct {
// contains filtered or unexported fields
}
type SpecialTreeGraph ¶
type SpecialTreeGraph struct {
// contains filtered or unexported fields
}
type SpecialTreeNode ¶
type SpecialTreeNode struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.