結果 : efficient algorithm for string pattern matching