Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 2:
In [[computer science]], '''string-searching algorithms''', sometimes called '''string-matching algorithms''', are an important class of [[string algorithms]] that try to find a place where one or several [[string (computer science)|strings]] (also called patterns) are found within a larger string or text.
A basic
In practice, the method of feasible string-search algorithm may be affected by the string encoding. In particular, if a [[variable-width encoding]] is in use, then it may be slower to find the ''N''th character, perhaps requiring time proportional to ''N''. This may significantly slow some search algorithms. One of many possible solutions is to search for the sequence of code units instead, but doing so may produce false matches unless the encoding is specifically designed to avoid it.{{citation needed|date=August 2017}}
|