Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 20 trang
Thông tin tài liệu
. and Reading Strings (§9.1.1) Pattern matching algorithms Brute-force algorithm (§9.1.2) Boyer-Moore algorithm (§9.1.3) Knuth-Morris-Pratt algorithm (§9.1.4) Pattern Matching 3 Strings A. P Applications: Text editors Search engines Biological research Pattern Matching 4 Brute-Force Algorithm The brute-force pattern matching algorithm compares the pattern P with the text T for each possible. than the brute-force algorithm on English text 11 1 a a a a a a a a a 23456 b a a a a a b a a a a a b a a a a a b a a a a a 7891012 131415161718 192021222324 Pattern Matching 10 The KMP Algorithm