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

The interfaces of chapter 1 of Morin's book for the sets, beyond the book, as concepts of C++20, and their realizations on a vector that exercise 1.6 asks for, the oracles of the tests of the faster ones. More...

Files

file  ADS/set/SetInterfaces.h
 The interfaces of chapter 1 of Morin's book for the sets, beyond the book, as concepts of C++20 [see ADT.h for the SET of the book], and their realizations on a vector that exercise 1.6 asks for, the oracles of the tests of the faster ones:

Concepts

concept  ADS::USet
 the unordered set of Morin, whose find() gives the item equal to the one asked
concept  ADS::SSet
 the sorted set of Morin, a USet with the successor search
concept  ADS::KeyedDictionary
 a dictionary that gives the address of the key equal to the one asked, on which DictionarySet is a USet; the search may change the dictionary (a splay tree), not the set of its keys
concept  ADS::OrderedDictionary
 a KeyedDictionary that gives the address of the smallest key not smaller than the one asked, on which DictionarySet is an SSet

Classes

class  ADS::ArrayUSet< T, Eq >
 a USet on a vector in no order, the items equal by Eq More...
class  ADS::ArraySSet< T, C >
 an SSet on a sorted vector, ordered by C More...

Detailed description

The interfaces of chapter 1 of Morin's book for the sets, beyond the book, as concepts of C++20, and their realizations on a vector that exercise 1.6 asks for, the oracles of the tests of the faster ones.

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