{"title":"Which patterns are hard to find? (String matching)","authors":"R. Cole, R. Hariharan, M. Paterson, Uri Zwick","doi":"10.1109/ISTCS.1993.253483","DOIUrl":null,"url":null,"abstract":"The paper considers the exact number of character comparisons needed to find all occurrences of a pattern of length m in a text of length n using on-line and general algorithms. For on-line algorithms, a lower bound of about (1+/sup 9///sub 4(m+1)/).n character comparisons is obtained. For general algorithms, a lower bound of about (1+/sup 2///sub m+3/).n character comparisons is obtained. These lower bound complement an on-line upper bound of about (1+/sup 8///sub 3(m+1)/).n comparisons obtained recently by Cole and Hariharan (1992). The lower bounds are obtained by finding patterns with interesting combinatorial properties (these are the hard to find patterns). It is also shown that for some patterns off-line algorithms can be more efficient than on-line algorithms.<<ETX>>","PeriodicalId":281109,"journal":{"name":"[1993] The 2nd Israel Symposium on Theory and Computing Systems","volume":"8 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1993-06-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"[1993] The 2nd Israel Symposium on Theory and Computing Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISTCS.1993.253483","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The paper considers the exact number of character comparisons needed to find all occurrences of a pattern of length m in a text of length n using on-line and general algorithms. For on-line algorithms, a lower bound of about (1+/sup 9///sub 4(m+1)/).n character comparisons is obtained. For general algorithms, a lower bound of about (1+/sup 2///sub m+3/).n character comparisons is obtained. These lower bound complement an on-line upper bound of about (1+/sup 8///sub 3(m+1)/).n comparisons obtained recently by Cole and Hariharan (1992). The lower bounds are obtained by finding patterns with interesting combinatorial properties (these are the hard to find patterns). It is also shown that for some patterns off-line algorithms can be more efficient than on-line algorithms.<>