|
ADS
Algorithms and Data Structures
|
The SET on any DICTIONARY with a foreach (sections 8.4 and 8.5). More...
Files | |
| file | ADS/set/DictionarySet.h |
| The SET on any DICTIONARY with a foreach (sections 8.4 and 8.5): ChainedHashSet and OpenHashSet on the hash tables, contains(), insert() and remove() in \( O( 1 ) \) expected time and forEach() in \( O( m + n ) \) and \( O( m ) \), \( m \) the size of the table; TreeSet on a Red-Black tree, the three in \( O( \log n ) \) and forEach() in \( O( n ) \), in order. | |
Classes | |
| class | ADS::DictionarySet< D > |
| a set on a DICTIONARY D, an item being a key: a USet of Morin if D is a KeyedDictionary, an SSet if it is an OrderedDictionary More... | |
Typedefs | |
| template<class T, class H = std::hash< T >> | |
| using | ADS::ChainedHashSet |
| the set on a hash table with lists of overflow | |
| template<class T, class H = std::hash< T >> | |
| using | ADS::OpenHashSet = DictionarySet< OpenHashTable< T , bool , H > > |
| the set on a hash table with open addressing | |
| template<std::totally_ordered T> | |
| using | ADS::TreeSet = DictionarySet< RedBlackTree< T , bool > > |
| the set on a Red-Black tree | |
The SET on any DICTIONARY with a foreach (sections 8.4 and 8.5).
The definitions, the invariants and the costs of the area are in Theory of sets.
| using ADS::ChainedHashSet |
the set on a hash table with lists of overflow
| using ADS::OpenHashSet = DictionarySet< OpenHashTable< T , bool , H > > |
the set on a hash table with open addressing
| using ADS::TreeSet = DictionarySet< RedBlackTree< T , bool > > |
the set on a Red-Black tree