|
ADS
Algorithms and Data Structures
|
Two digital search trees of strings, beyond the book: More...
#include "ADS/Contract.h"#include "ADS/Iterators.h"#include <cstddef>#include <iterator>#include <map>#include <memory>#include <optional>#include <string>#include <string_view>#include <utility>#include <vector>#include "ADS/dictionary/impl/Trie.tpp"Go to the source code of this file.
Classes | |
| class | ADS::Trie< V > |
| a DICTIONARY of strings on a trie More... | |
| class | ADS::RadixTree< V > |
| a DICTIONARY of strings on a compact trie More... | |
Namespaces | |
| namespace | ADS |
Two digital search trees of strings, beyond the book:
Both map each string to a value, i.e., they are a DICTIONARY [see ADT.h] whose keys are strings, with keysWithPrefix() besides. The contracts [see Contract.h]: insert() ensures that the key is there and remove() that it is not; the invariant of RadixTree is that no node but the root has a single child and no mark, and that the labels of the edges out of a node begin with distinct characters. The operations are defined in Trie.tpp.