Question

Draw the complete Knuth-Morris-Pratt Automaton for the patterns:

ABABBC

CBCBBACA