MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / go_node

Class go_node

code/strings/aho_corasick.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 out_node(string k, out_node *n)
5 : keyword(k), next(n) { } };
6 struct go_node {
7 map<char, go_node*> next;
8 out_node *out; go_node *fail;
9 go_node() { out = NULL; fail = NULL; } };
10 go_node *go;
11 aho_corasick(vector<string> keywords) {
12 go = new go_node();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected