Suffix Arrays A new method for online string searches后缀数组的一种新方法用于在线字符串检索.pptVIP

  • 31
  • 0
  • 约1.21万字
  • 约 49页
  • 2017-03-08 发布于上海
  • 举报

Suffix Arrays A new method for online string searches后缀数组的一种新方法用于在线字符串检索.ppt

Suffix Arrays A new method for online string searches后缀数组的一种新方法用于在线字符串检索

Suffix Arrays: A new method for on-line string searches Udi Manber Gene Myers Introduction Suffix Array: Lexicographically sorted list of all suffixes of text A Pattern matching problem: Find all instances of string W in large text A N – length of text A P – length of string W Over an alphabet Suffix Trees vs. Suffix Arrays Query: “Is W a substring of A?” Suffix Tree: O(Plog| |) with O(N) space, or: O(P) with O(Nlog| |) space (impractical) Suffix Array: Competitive/better O(P+logN) search Main advantage: Space: 2N integers (In practice, problem is space overhead of query data structure)

文档评论(0)

1亿VIP精品文档

相关文档