Temporary variable for insert
. Stores the new inserted node.
The root of the AVL tree.
The element count of the AVL tree.
The default compare function. Can be overwritten in the constructor
.
The first key to compare.
The second key to compare.
-1, 0 or 1 depending on whether a
is smaller, equal or larger than b
, respectively.
Gets whether a node with a specific key is within the tree.
The key being searched for.
Whether a node with the key exists.
Deletes a node with a specific key from the tree.
The key being deleted.
The maximum key in the tree.
The maximum node in the tree.
The minimum key in the tree.
The minimum node in the tree.
Gets the node within the tree with a specific key.
The key being searched for.
The node or null if it doesn't exist.
The size of the tree.
Inserts a new node with a specific key into the tree.
The key being inserted.
The inserted node.
Whether the tree is empty.
Gets the balance state of a node, indicating whether the left or right sub-trees are unbalanced.
The node to get the difference from.
The BalanceState of the node.
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM
Implements the AVL Tree data structure for fast insertion and sorting.
Copyright Daniel Imms http://www.growingwiththeweb.com. Modified by the Miratope authors. Released under the MIT license. See LICENSE in the project root for details.