avltree

package module
v0.0.0-...-9833832 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AVLNode

type AVLNode struct {
	// contains filtered or unexported fields
}

func LeftRightRotation

func LeftRightRotation(node *AVLNode) *AVLNode

func LeftRotate

func LeftRotate(node *AVLNode) *AVLNode

func RightLeftRotation

func RightLeftRotation(node *AVLNode) *AVLNode

func RightRotate

func RightRotate(node *AVLNode) *AVLNode

func (*AVLNode) BalanceFactor

func (node *AVLNode) BalanceFactor() int

func (*AVLNode) Insert

func (node *AVLNode) Insert(unique uint64, data interface{}) *AVLNode

func (*AVLNode) Match

func (node *AVLNode) Match(unique uint64) *AVLNode

func (*AVLNode) UpdateHeight

func (node *AVLNode) UpdateHeight()

type AVLTree

type AVLTree struct {
	// contains filtered or unexported fields
}

func NewAVLTree

func NewAVLTree() *AVLTree

func (*AVLTree) Insert

func (tree *AVLTree) Insert(unique uint64, data interface{})

func (*AVLTree) Match

func (tree *AVLTree) Match(unique uint64) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL