KMP算法http://www.cnblogs.com/c-cloud/p/3224788.html http://blog.csdn.net/joylnwang/article/details/6778316/