Class BTree<T>
Assembly: Advanced.Algorithms.dll
Syntax
public class BTree<T> : IEnumerable<T>, IEnumerable where T : IComparable
Type Parameters
Constructors
BTree(Int32)
Declaration
public BTree(int maxKeysPerNode)
Parameters
Type |
Name |
Description |
Int32 |
maxKeysPerNode |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Max
Time complexity: O(log(n)).
Declaration
Property Value
Min
Time complexity: O(log(n)).
Declaration
Property Value
Methods
Delete(T)
Time complexity: O(log(n)).
Declaration
public void Delete(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
HasItem(T)
Time complexity: O(log(n)).
Declaration
public bool HasItem(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Insert(T)
Time complexity: O(log(n)).
Declaration
public void Insert(T newValue)
Parameters
Type |
Name |
Description |
T |
newValue |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements