結果 : knuth morris pratt algorithm time complexity