Show / Hide Table of Contents

    Class BTree<T>

    A B-tree implementation.

    Inheritance
    Object
    BTree<T>
    Namespace: Advanced.Algorithms.DataStructures
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class BTree<T> : IEnumerable<T> where T : IComparable
    Type Parameters
    Name Description
    T

    Constructors

    BTree(Int32)

    Declaration
    public BTree(int maxKeysPerNode)
    Parameters
    Type Name Description
    Int32 maxKeysPerNode

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Max

    Time complexity: O(log(n)).

    Declaration
    public T Max { get; }
    Property Value
    Type Description
    T

    Min

    Time complexity: O(log(n)).

    Declaration
    public T Min { get; }
    Property Value
    Type Description
    T

    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
    Type Description
    IEnumerator<T>

    HasItem(T)

    Time complexity: O(log(n)).

    Declaration
    public bool HasItem(T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Boolean

    Insert(T)

    Time complexity: O(log(n)).

    Declaration
    public void Insert(T newValue)
    Parameters
    Type Name Description
    T newValue
    Back to top Generated by DocFX