|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Illustrative example for suffix automaton. More...
Go to the source code of this file.
Functions | |
| int | main () |
| Demonstrates basic usage of the Suffix_Automaton API with a sample string. | |
Illustrative example for suffix automaton.
Definition in file suffix_automaton_example.cc.
| int main | ( | ) |
Demonstrates basic usage of the Suffix_Automaton API with a sample string.
Builds a suffix automaton for the string "ababa", prints the original text, the number of automaton states, the number of distinct substrings, whether the substring "bab" is contained, and the longest common substring with "zzabxababa".
Definition at line 54 of file suffix_automaton_example.cc.
References Aleph::Suffix_Automaton::build(), and Aleph::divide_and_conquer_partition_dp().