I am looking for a built-in binary search implementation in .NET 4. Is it there?
A class SortedDictionary<K,V>uses a tree, is that what you need?
SortedDictionary<K,V>
See this SO answer for a discussion.
You can use SortedDictionary <TKey, TValue>
- List . BinarySearch . , , BinarySearch . , (~ operator) , , ( , ).
C5:
TreeDictionary ISortedDictionary ( , ) , . , O (logn). , , .
http://code.google.com/p/self-balancing-avl-tree/. AVL , SortedDictinary SortedMultiDictionary AVL.