Simple string matching algorithm

From Algowiki
Revision as of 09:51, 1 October 2014 by Cuozzo (talk | contribs)
Jump to navigation Jump to search

Algorithmic problem: One-dimensional string matching

Prerequisites:

Type of algorithm: loop

Auxiliary data A FIFO queue [math]\displaystyle{ I }[/math] of natural numbers, which always contains the start indexes of all occurrences of [math]\displaystyle{ T }[/math] in [math]\displaystyle{ S }[/math] that have been seen only partially thus far.

Abstract view

Induction basis

Induction step

Complexity

Further information