
Two-Interval Pattern Problems T 985
Open Problems
Finding all scaled occurrences without fixing the scaled
pattern start at the top left corner of the text pixel would
be important from a practical point of view. The final goal
is an integration of scaling with rotation [2,11,12,13]and
local errors (edit distance) [9].
Cross References
Multidimensional Compressed Pattern Matching
Multidimensional String Matching
Recommended Reading
1. Amir, A., Benson, G., Farach, M.: An alphabet independent ap-
proach to two dimensional pattern matching. SIAM J. Comput.
23(2), 313–323 (1994)
2. Amir, A., Butman, A., Crochemore, M., Landau, G.M., Schaps,
M.: Two-dimensional pattern matching with rotations. Theor.
Comput. Sci. 314(1–2), 173–187 (2004)
3. Amir, A., Butman, A., Lewenstein, M.: Real scaled matching. Inf.
Proc. Lett. 70(4), 185–190 (1999)
4. Amir, A., Butman, A., Lewenstein, M., Porat, E.: Real two dimen-
sional scaled matching. In: Proc. 8th Workshop on Algorithms
and Data Structures (WADS ’03), pp. 353–364 (2003)
5. Amir, A., Butman, A., Lewenstein, M., Porat, E., Tsur, D.: Effi-
cient one dimensional real scaled matching. In: Proc. 11th Sym-
posium on String Processing and Information Retrieval (SPIRE
’04), pp. 1–9 (2004)
6. Amir, A., Calinescu, G.: Alphabet independent and dictionary
scaled matching. J. Algorithms 36, 34–62 (2000)
7. Amir, A., Chencinski, E.: Faster two dimensional scaled match-
ing. In: Proc. 17th Symposium on Combinatorial Pattern
Matching (CPM). LNCS, vol. 4009, pp. 200–210. Springer, Berlin
(2006)
8. Amir, A., Farach, M.: Two dimensional dictionary matching. Inf.
Proc. Lett. 44, 233–239 (1992)
9. Amir, A., Landau, G.: Fast parallel and serial multidimensional
approximate array matching. Theor. Comput. Sci. 81, 97–115
(1991)
10. Amir, A., Landau, G.M., Vishkin, U.: Efficient pattern matching
with scaling. J. Algorithms 13(1), 2–32 (1992)
11. Amir,A.,Tsur,D.,Kapah,O.:Fastertwodimensionalpattern
matching with rotations. In: Proc. 15th Annual Symposium on
Combinatorial Pattern Matching (CPM ’04), pp. 409–419 (2004)
12. Fredriksson,K.,Mäkinen,V.,Navarro,G.:Rotationandlighting
invariant template matching. In: Proceedings of the 6th Latin
American Symposium on Theoretical Informatics (LATIN’04).
LNCS, pp. 39–48 (2004)
13. Fredriksson, K., Navarro, G., Ukkonen, E.: Optimal exact and
fast approximate two dimensional pattern matching allowing
rotations. In: Proceedings of the 13th Annual Symposium on
Combinatorial Pattern Matching (CPM 2002). LNCS, vol. 2373,
pp. 235–248 (2002)
14. Fredriksson, K., Ukkonen, E.: A rotation invariant filter for two-
dimensional string matching. In: Proc. 9th Annual Symposium
on Combinatorial Pattern Matching (CPM). LNCS, vol. 1448,
pp. 118–125. Springer, Berlin (1998)
15. Landau, G.M., Vishkin, U.: Pattern matching in a digitized im-
age. Algorithmica 12(3/4), 375–408 (1994)
16. Vishkin, U.: Optimal parallel pattern matching in strings. Proc.
12th ICALP, pp. 91–113 (1985)
Two-Interval Pattern Problems
2004; Vialette
2007; Cheng, Yang, Yuan
STÉPHANE VIALETTE
IGM-LabInfo, University of Paris-East, Descartes, France
Keywords and Synonyms
2-intervals; RNA structures
Problem Definition
The problem is concerned with finding large constrained
patterns in sets of 2-intervals. Given a single-stranded
RNA molecule, a sequence of contiguous bases of the
molecule can be represented as an interval on a single line,
and a possible pairing between two disjoint sequences can
be represented as a 2-interval, which is merely the union
of two disjoint intervals. Derived from arc-annotated se-
quences, 2-interval representation considers thus only the
bonds between the bases and the pattern of the bonds, such
as hairpin structures, knots and pseudoknots. A maximum
cardinality disjoint subset of a candidate set of 2-intervals
restricted to certain prespecified geometrical constraints
can provide a useful valid approximation for RNA sec-
ondary structure determination.
The geometric properties of 2-intervals provide a pos-
sible guide for understanding the computational complex-
ity of finding structured patterns in RNA sequences. Us-
ing a model to represent nonsequential information allows
us to vary restrictions on the complexity of the pattern
structure. Indeed, two disjoint 2-intervals, i. e., two 2-in-
tervals that do not intersect in any point, can be in prece-
dence order (<), be allowed to nest (@) or be allowed to
cross (G). Furthermore, the set of 2-intervals and the pat-
tern can have different restrictions, e. g., all intervals have
the same length or all the intervals are disjoint. These dif-
ferent combinations of restrictions alter the computational
complexity of the problems, and need to be examined sep-
arately. This examination produces efficient algorithms for
more restrictive structured patterns, and hardness results
for those that are less restrictive.
Notations
Let I =[a; b] be an interval on the line. Write start(I)=a
and end(I)=b.A2-interval is the union of two dis-