We study several alternative data structures based on trees for
realizing ordered dictionary.
The fundamental operations in an ordered
dictionary ADT are:
find(k) -
Return the position of an item with key k,
and return a null
position if no such item exists.
findAll(k) -
Return an iterator of positions for all items with key k, and
return a null position
if no such item exists.
insertItem(k,e)
- Inserts an item with element e
and key k.
removeElement(k)
- Remove an item with key k.
An error condition occurs if there is no such item.
removeAllElements(k)
- Remove all items with key equal to k.