Class BpTree<T>
A B+ tree implementation.
Assembly: Advanced.Algorithms.dll
Syntax
public class BpTree<T> : IEnumerable<T>, IEnumerable where T : IComparable
Type Parameters
Constructors
|
Improve this Doc
View Source
BpTree(Int32)
Declaration
public BpTree(int maxKeysPerNode = 3)
Parameters
Type |
Name |
Description |
Int32 |
maxKeysPerNode |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Improve this Doc
View Source
Max
Declaration
Property Value
|
Improve this Doc
View Source
Min
Declaration
Property Value
Methods
|
Improve this Doc
View Source
AsEnumerableDesc()
Declaration
public IEnumerable<T> AsEnumerableDesc()
Returns
|
Improve this Doc
View Source
Delete(T)
Time complexity: O(log(n)).
Declaration
public void Delete(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
|
Improve this Doc
View Source
GetEnumeratorDesc()
Declaration
public IEnumerator<T> GetEnumeratorDesc()
Returns
|
Improve this Doc
View Source
HasItem(T)
Time complexity: O(log(n)).
Declaration
public bool HasItem(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
|
Improve this Doc
View Source
Insert(T)
Time complexity: O(log(n)).
Declaration
public void Insert(T newValue)
Parameters
Type |
Name |
Description |
T |
newValue |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements