The AVL binary tree operator. the binbox key is K and value data type is V.
AVLTree
00 Remarks
Type Parameters
| Name | Description |
|---|---|
K | |
V |
01 Syntax
Microsoft.VisualBasic.ComponentModel.Algorithm.BinaryTree.AVLTree`2
02 Methods
03 Members
#ctor(
Comparison(Of `0), Func(Of `0, String))Create an instance of the AVL binary tree.
Remarks
the binbox key is K and value data type is V.
Parameters
| Name | Type | Description |
|---|---|---|
compares | Comparison(Of `0) |
Compare between two keys. This comparison function should returns:
|
views | Func(Of `0, String) | Display the key as string |
Add(
`0, `1, Boolean)add key related value into current tree
Remarks
get cluster value collection via the tree node values data
Parameters
| Name | Type | Description |
|---|---|---|
key | `0 | - |
value | `1 | - |
valueReplace | Boolean | - |
Find(
`0)This function will returns nothing if term not found in current tree.
Parameters
| Name | Type | Description |
|---|---|---|
term | `0 | - |
Remove(
K)Remove(
K, BinaryTree(Of K, V))