Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
func (*Block) GetNeighbors ¶
func (*Block) PathEstimatedCost ¶
func (*Block) PathNeighborCost ¶
type BucketQueue ¶
type BucketQueue struct {
// contains filtered or unexported fields
}
BucketQueue represents a bucket queue data structure
func NewBucketQueue ¶
func NewBucketQueue() *BucketQueue
NewBucketQueue initializes a new BucketQueue with a given maxPriority
func (*BucketQueue) Dequeue ¶
func (bq *BucketQueue) Dequeue() (any, bool)
Dequeue removes and returns the element with the highest priority (lowest number)
func (*BucketQueue) Enqueue ¶
func (bq *BucketQueue) Enqueue(priority int, value any)
Enqueue adds a new element to the queue with a specified priority
func (*BucketQueue) IsEmpty ¶
func (bq *BucketQueue) IsEmpty() bool
IsEmpty checks if the queue is empty
func (*BucketQueue) Pop ¶
func (bq *BucketQueue) Pop() State
type City ¶
func (*City) GenerateFrame ¶
type Exercise ¶
type Exercise struct {
common.BaseExercise
}
Exercise for Advent of Code 2023 day 17.
Click to show internal directories.
Click to hide internal directories.