Class BinarySearchAlgorithms
Inheritance
BinarySearchAlgorithms
Assembly: ZoneTree.dll
Syntax
public static class BinarySearchAlgorithms
Methods
|
Improve this Doc
View Source
BinarySearch<TKey>(IReadOnlyList<TKey>, int, int, IRefComparer<TKey>, in TKey)
Declaration
public static int BinarySearch<TKey>(IReadOnlyList<TKey> list, int left, int right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
BinarySearch<TKey>(KeyByIndex<TKey>, long, long, IRefComparer<TKey>, in TKey)
Declaration
public static long BinarySearch<TKey>(BinarySearchAlgorithms.KeyByIndex<TKey> keyByIndex, long left, long right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
FirstGreaterOrEqualPosition(CompareKeyByIndex, int, int)
Declaration
public static int FirstGreaterOrEqualPosition(BinarySearchAlgorithms.CompareKeyByIndex compareKeyByIndex, int left, int right)
Parameters
Returns
|
Improve this Doc
View Source
FirstGreaterOrEqualPosition<TKey>(IReadOnlyList<TKey>, int, int, IRefComparer<TKey>, in TKey)
Declaration
public static int FirstGreaterOrEqualPosition<TKey>(IReadOnlyList<TKey> list, int left, int right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
FirstGreaterOrEqualPosition<TKey>(KeyByIndex<TKey>, long, long, IRefComparer<TKey>, in TKey)
Declaration
public static long FirstGreaterOrEqualPosition<TKey>(BinarySearchAlgorithms.KeyByIndex<TKey> keyByIndex, long left, long right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
LastSmallerOrEqualPosition(CompareKeyByIndex, int, int)
Declaration
public static int LastSmallerOrEqualPosition(BinarySearchAlgorithms.CompareKeyByIndex compareKeyByIndex, int left, int right)
Parameters
Returns
|
Improve this Doc
View Source
LastSmallerOrEqualPosition<TKey>(IReadOnlyList<TKey>, int, int, IRefComparer<TKey>, in TKey)
Declaration
public static int LastSmallerOrEqualPosition<TKey>(IReadOnlyList<TKey> list, int left, int right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
LastSmallerOrEqualPosition<TKey>(KeyByIndex<TKey>, long, long, IRefComparer<TKey>, in TKey)
Declaration
public static long LastSmallerOrEqualPosition<TKey>(BinarySearchAlgorithms.KeyByIndex<TKey> keyByIndex, long left, long right, IRefComparer<TKey> comp, in TKey key)
Parameters
Returns
Type Parameters