卷別
資料結構與演算法
選擇國立中興大學 2025 · 考試 · 第 6 題
考科演算法
(3 points) Given the text "abcdefg" and the pattern "bcd", which algorithm would use hashing to compute the index of the first match efficiently?
- (A)Knuth-Morris-Pratt Algorithm
- (B)Boyer-Moore Algorithm
- (C)Naive String Matching Algorithm
- (D)Rabin-Karp Algorithm