Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
PriorityQueue 优先级队列
func (*PriorityQueue) Peek ¶
func (p *PriorityQueue) Peek() (interface{}, int64, bool)
Peek 窥视一个优先级最小的元素
func (*PriorityQueue) Pop ¶
func (p *PriorityQueue) Pop() (interface{}, int64, bool)
Pop 弹出一个优先级最小的元素
func (*PriorityQueue) Push ¶
func (p *PriorityQueue) Push(value interface{}, Priority int64)
Push 插入一个元素
Click to show internal directories.
Click to hide internal directories.