Abstract
The following problem is considered: given a predicate p on strings, determine the longest segment of a given string that satisfies p. This paper is an investigation of algorithms solving this problem for various predicates. The predicates considered are expressed in terms of simple functions like the size, the minimum, the maximum, the leftmost and the rightmost element of the segment. The algorithms are linear in the length of the string.
Original language | English |
---|---|
Pages (from-to) | 39-66 |
Journal | Science of Computer Programming |
Volume | 18 |
Issue number | 1 |
DOIs | |
Publication status | Published - 1992 |