Documentation
¶
Index ¶
- type Tree
- func DecreaseKey[K cmp.Ordered, V any](t *Tree[K, V], targetNode *Tree[K, V], newKey K) *Tree[K, V]
- func FindMin[K cmp.Ordered, V any](t *Tree[K, V]) *Tree[K, V]
- func Insert[K cmp.Ordered, V any](t *Tree[K, V], new *Tree[K, V]) *Tree[K, V]
- func Meld[K cmp.Ordered, V any](a, b *Tree[K, V]) *Tree[K, V]
- func NewTree[K cmp.Ordered, V any](key K, value V) *Tree[K, V]
- func RemoveMin[K cmp.Ordered, V any](t *Tree[K, V]) *Tree[K, V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tree ¶
func DecreaseKey ¶
DecreaseKey decreases the target node's key to the provided new key. The new key must be less than the target node's current key.
func Meld ¶
Meld forms a new Tree from two other trees, with the largest becoming parent to the smallest.
Click to show internal directories.
Click to hide internal directories.