X The Knuth-Morris-Pratt (KMP) algorithm is an string-matching algorithm. Its core is the pre- fix function. Given a pattern Pl1..m], the prefix function for the pattern P is the function π : {1,2,...,m} →{0,1.... .,m - 1}. What is π[7] for the following pattern P?__ (17)__
(A) 4
(B)5
(C)6
(D) 7
答案:登入後查看
統計: 尚無統計資料
統計: 尚無統計資料