(definition)
Definition: A string v is a substring of a string u if u=u′ vu″ for some prefix u′ and suffix u″.
Also known as factor.
See also subsequence.
Note: A substring is contiguous. A subsequence need not be.
From Algorithms and Theory of Computation Handbook, pages 11-26 and 12-21, Copyright © 1999 by CRC Press LLC. Appearing in the Dictionary of Computer Science, Engineering and Technology, Copyright © 2000 CRC Press LLC.
Author: CRC-A
If you have suggestions, corrections, or comments, please get in touch with Paul E. Black.
Entry modified 17 December 2004.
HTML page formatted Mon Sep 11 09:46:08 2006.
Cite this as:
Algorithms and Theory of Computation Handbook, CRC Press LLC, 1999, "substring", in
Dictionary of Algorithms and Data
Structures [online], Paul E. Black, ed.,
U.S. National Institute of
Standards and Technology. 17 December 2004. (accessed TODAY)
Available from: http://www.nist.gov/dads/HTML/substring.html