#KMP Drawer with Graphviz
Given a pattern string, it generates the Graphviz dot script to draw the implicit automaton that uses the KMP string matching algorithm.
To compile:
g++ -std=c++0x -Wall kmpdraw.cpp -o kmpdraw
Example:
./kmpdraw ababac | dot -Tpng -o automaton.png