Click or drag to resize
RedBlackBSTKey, Value Methods

The RedBlackBSTKey, Value generic type exposes the following members.

Methods
  NameDescription
Public methodCeiling
Returns the smallest key in the symbol table greater than or equal to key.
Public methodContains
Does this symbol table contain the given key?
Public methodDelete
Removes the specified key and its associated value from this symbol table (if the key is in this symbol table).
Public methodDeleteMax
Removes the largest key and associated value from the symbol table.
Public methodDeleteMin
Removes the smallest key and associated value from the symbol table.
Public methodFloor
Returns the largest key in the symbol table less than or equal to key.
Public methodGet
Returns the value associated with the given key.
Public methodKeys
Returns all keys in the 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()).
Public methodKeys(Key, Key)
Returns all keys in the symbol table in the given range, as an IEnumerable.
Public methodStatic memberMainTest
Demo test the RedBlackBST data type.
Public methodPut
Inserts the specified key-value pair into the symbol table, overwriting the old value with the new value if the symbol table already contains the specified key. Deletes the specified key (and its associated value) from this symbol table if the specified value is null.
Public methodRank
Return the number of keys in the symbol table strictly less than key.
Public methodSelect
Return the kth smallest key in the symbol table.
Public methodSize
Returns the number of keys in the symbol table in the given range.
Top
See Also