ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
SortedArrayDictionary.h

A DICTIONARY realized with a vector of the pairs \( ( \mathit{key} , \mathit{value} ) \) sorted by key, beyond the book. More...

Files

file  ADS/dictionary/SortedArrayDictionary.h
 A DICTIONARY [see ADT.h] realized with a vector of the pairs \( ( \mathit{key} , \mathit{value} ) \) sorted by key, beyond the book: lookup() is the binary search of section 1.2 [see BinarySearch.h], in \( O( \log n ) \) time, while insert() and remove() move the pairs after the place of the key, in \( O( n ) \).

Classes

class  ADS::SortedArrayDictionary< K, V >
 a DICTIONARY realized with a vector sorted by key More...

Detailed description

A DICTIONARY realized with a vector of the pairs \( ( \mathit{key} , \mathit{value} ) \) sorted by key, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of dictionaries.