Jump to content

Substring

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Nils Grimsmo (talk | contribs) at 18:47, 17 September 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A substring of a string is a string such that .

T = BANANA
     |||
P =  ANA

Given a pattern P, you can find its occurrences in a string T with a String searching algorithm.