Content deleted Content added
Add doi(s) to reference(s) |
switching to using Template:mvar and Template:math instead of math tag as to get rid of error |
||
(13 intermediate revisions by 12 users not shown) | |||
Line 1:
{{Short description|Optimization of Boyer–Moore string-search algorithm}}
In [[computer science]], the '''Apostolico–Giancarlo algorithm''' is a variant of the [[Boyer–Moore string search algorithm]], the basic application of which is searching for occurrences of a pattern <math>P</math> in a text <math>T</math>. As with other comparison-based string searches, this is done by aligning <math>P</math> to a certain index of <math>T</math> and checking whether a match occurs at that index. <math>P</math> is then shifted relative to <math>T</math> according to the rules of the Boyer-Moore algorithm, and the process repeats until the end of <math>T</math> has been reached. Application of the Boyer-Moore shift rules often results in large chunks of the text being skipped entirely.▼
{{No footnotes|date=October 2023}}
▲In [[computer science]], the '''Apostolico–Giancarlo algorithm''' is a variant of the [[Boyer–Moore string
With regard to the shift operation,
==References==
* {{cite journal |doi=10.1137/0215007 |title=The Boyer–Moore–Galil String Searching Strategies Revisited |year=1986 |last1=Apostolico |first1=Alberto |last2=Giancarlo |first2=Raffaele |journal=[[SIAM Journal on Computing]] |volume=15 |pages=98–105 |url=https://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=1456&context=cstech}}
*
* {{cite book |last=Crochemore
* {{cite book |last=Gusfield
* {{cite thesis |last=Lecroq
*
{{Strings}}
|