Documentation
¶
Index ¶
- type AVL
- func (avl *AVL[Ord, T]) Del(key Ord)
- func (avl *AVL[Ord, T]) Get(key Ord) (T, bool)
- func (avl *AVL[Ord, T]) GetMax() T
- func (avl *AVL[Ord, T]) GetMin() T
- func (avl *AVL[Ord, T]) InOrder(fn func(*Node[Ord, T]) bool)
- func (avl *AVL[Ord, T]) IsNil() bool
- func (avl *AVL[Ord, T]) Left() search.ITraversal
- func (avl *AVL[Ord, T]) LevelOrder(fn func(*Node[Ord, T]) bool)
- func (avl *AVL[Ord, T]) PreOrder(fn func(*Node[Ord, T]) bool)
- func (avl *AVL[Ord, T]) Print()
- func (avl *AVL[Ord, T]) Put(key Ord, val T)
- func (avl *AVL[Ord, T]) ReverseOrder(fn func(*Node[Ord, T]) bool)
- func (avl *AVL[Ord, T]) Right() search.ITraversal
- func (avl *AVL[Ord, T]) Size() uint
- func (avl *AVL[Ord, T]) String() string
- func (avl *AVL[Ord, T]) SufOrder(fn func(*Node[Ord, T]) bool)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVL ¶
type AVL[Ord constraints.Ordered, T any] struct { // contains filtered or unexported fields }
AVL is a strictly balanced binary search tree
func (*AVL[Ord, T]) Left ¶ added in v0.1.1
func (avl *AVL[Ord, T]) Left() search.ITraversal
Left implements search.ITraversal.
func (*AVL[Ord, T]) LevelOrder ¶
func (*AVL[Ord, T]) ReverseOrder ¶
func (*AVL[Ord, T]) Right ¶ added in v0.1.1
func (avl *AVL[Ord, T]) Right() search.ITraversal
Right implements search.ITraversal.
type Node ¶
type Node[Ord constraints.Ordered, T any] struct { // contains filtered or unexported fields }
func (*Node[Ord, T]) Left ¶
func (n *Node[Ord, T]) Left() search.ITraversal
func (*Node[Ord, T]) Right ¶
func (n *Node[Ord, T]) Right() search.ITraversal
Click to show internal directories.
Click to hide internal directories.