Click or drag to resize
BinarySearchSTKey, Value Methods

The BinarySearchSTKey, Value generic type exposes the following members.

Methods
  NameDescription
Public methodCeiling
Returns the smallest key in this 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 associated value from this symbol table (if the key is in the symbol table).
Public methodDeleteMax
Removes the largest key and associated value from this symbol table.
Public methodDeleteMin
Removes the smallest key and associated value from this symbol table.
Public methodFloor
Returns the largest key in this symbol table less than or equal to key.
Public methodGet
Returns the value associated with the given key in this symbol table.
Public methodKeys
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()).
Public methodKeys(Key, Key)
Returns all keys in this symbol table in the given range, as an IEnumerable.
Public methodStatic memberMainTest
Demo test the BinarySearchST data type.
Public methodPut
Removes the specified key and its associated value from this symbol table (if the key is in this symbol table).
Public methodRank
Returns the number of keys in this symbol table strictly less than key.
Public methodSelect
Return the kth smallest key in this symbol table.
Public methodSize
Returns the number of keys in this symbol table in the specified range.
Top
See Also