卷別
資料結構與演算法
選擇國立臺灣大學 2026 · 考試 · 第 8 題
考科演算法
(4 points) Given the string , compute the Knuth–Morris–Pratt failure function , where is the length of the longest proper prefix of which is also a suffix of . Which of the following is correct?
- (A)
- (B)
- (C)
- (D)
- (E)