首页    期刊浏览 2024年12月03日 星期二
登录注册

文章基本信息

  • 标题:On the Linear Number of Matching Substrings
  • 作者:Yo-Sub Han
  • 期刊名称:Journal of Universal Computer Science
  • 印刷版ISSN:0948-6968
  • 出版年度:2010
  • 卷号:16
  • 期号:5
  • 页码:715-728
  • 出版社:Graz University of Technology and Know-Center
  • 摘要:We study the number of matching substrings in the pattern matching problem. In general, there can be a quadratic number of matching substrings in the size of a given text. The linearizing restriction enables to find at most a linear number of matching substrings. We first explore two well-known linearizing restriction rules, the longest-match rule and the shortest-match substring search rule, and show that both rules give the same result when a pattern is an infix-free set even though they have different semantics. Then, we introduce a new linearizing restriction, the leftmost nonoverlapping match rule that is suitable for find-and-replace operations in text searching, and propose an efficient algorithm for the new rule when a pattern is described by a regular expression. We also examine the problem of obtaining the maximal number of non-overlapping matching substrings.
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有