Represents a single node in the Trie. More...
#include <trie.hpp>
Public Member Functions | |
TrieNode () | |
Public Attributes | |
std::unordered_map< char, TrieNode * > | children |
std::vector< int > | indices |
bool | isEndOfWord |
Represents a single node in the Trie.
A TrieNode stores children nodes for each possible character, a list of indices representing the positions of words in the original dataset, and a flag indicating if the node is the end of a valid word.
children
unordered_map stores the next character in the string as a key and the corresponding child node as the value.
|
inline |
std::unordered_map<char, TrieNode*> TrieNode::children |
std::vector<int> TrieNode::indices |
bool TrieNode::isEndOfWord |