Content deleted Content added
m punct., fmt. |
switching to using Template:mvar and Template:math instead of math tag as to get rid of error |
||
(9 intermediate revisions by 8 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, Apostolico–Giancarlo is exactly equivalent in functionality to Boyer–Moore. The utility of Apostolico–Giancarlo is to speed up the match-checking operation at any index. With
==References==
*
*
* {{cite book |last=Crochemore
* {{cite book |last=Gusfield
* {{cite thesis |last=Lecroq
*
{{Strings}}
|