Computing : O(m )
FA-Matcher(T, , m) ; O(n) n = length(T) s = s0 for i = 1 to n s = (s, T[i]) if s = sm then print ``Pattern occurs with shift'' (i-m)