| BinarySearchSTKey, Value Methods |
The BinarySearchSTKey, Value generic type exposes the following members.
| Name | Description | |
|---|---|---|
| Ceiling |
Returns the smallest key in this symbol table greater than or equal to key. | |
| Contains |
Does this symbol table contain the given key? | |
| Delete |
Removes the specified key and associated value from this symbol table
(if the key is in the symbol table). | |
| DeleteMax |
Removes the largest key and associated value from this symbol table. | |
| DeleteMin |
Removes the smallest key and associated value from this symbol table. | |
| Floor |
Returns the largest key in this symbol table less than or equal to key. | |
| Get |
Returns the value associated with the given key in this symbol table. | |
| Keys |
Returns all keys in this symbol table as an IEnumerable.
To iterate over all of the keys in the symbol table named st,
use the foreach notation: foreach (Key key in st.Keys()). | |
| Keys(Key, Key) |
Returns all keys in this symbol table in the given range,
as an IEnumerable. | |
| MainTest |
Demo test the BinarySearchST data type. | |
| Put |
Removes the specified key and its associated value from this symbol table
(if the key is in this symbol table). | |
| Rank |
Returns the number of keys in this symbol table strictly less than key. | |
| Select |
Return the kth smallest key in this symbol table. | |
| Size |
Returns the number of keys in this symbol table in the specified range. |