TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Trie datastructure with search variants More...
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <queue>
Go to the source code of this file.
Classes | |
class | operations_on_datastructures::trie_operations::Tnode |
Class defining the structure of trie node and containing the methods to perform operations on them. More... | |
Namespaces | |
namespace | operations_on_datastructures |
for std::vector | |
namespace | trie_operations |
Functions for Trie datastructure implementation. | |
Functions | |
static void | test () |
Function to test a simple search before and after deleting an entry. And to test out the multiple variants of search. | |
int | main (int argc, char const *argv[]) |
Main function. | |
Trie datastructure with search variants
This provides multiple variants of search functions on a trie structure utilizing STL. The trie is valid for only English alphabets.
Definition in file trie_multiple_search.cpp.
int main | ( | int | argc, |
char const * | argv[] ) |
Main function.
argc | commandline argument count (ignored) |
argv | commandline array of arguments (ignored) |
Definition at line 466 of file trie_multiple_search.cpp.
|
static |
Function to test a simple search before and after deleting an entry. And to test out the multiple variants of search.
Definition at line 425 of file trie_multiple_search.cpp.