
Parameterized Matching P 635
many crossings anyways (if such a situation is encountered
in practice, one would switch to another way of represent-
ing the information); so, one can safely assume that the
parameter is indeed small.
This is also true for other
NP-hard subproblems that
relate to the Sugiyama approach. However, no easy so-
lutions should be expected. For example, the D
IRECTED
FEEDBACK ARC SET PROBLEM [1] that is equivalent to the
first phase is not known to admit a nice parameterized al-
gorithm, see [2].
Experimental Resul t s
Suderman [10] reports on experiments with nearly all
problem variants discussed above, also see [11]forabet-
ter accessible presentation of some of the experimental re-
sults.
URL to Code
Suderman presents several JAVA applets related to the
problems discussed in this article, see http://cgm.cs.mcgill.
ca/~msuder/.
Cross References
Other parameterized search tree algorithms are explained
in the contribution Vertex Cover Search Trees by Chen,
Kanj, and Jia.
Recommended Reading
1.Chen,J.,Liu,Y.,Lu,S.,O’Sullivan,B.,Razgon,I.:AFixed-
Parameter Algorithm for the Directed Feedback Vertex Set
Problem. In: 40th ACM Symposium on Theory of Computing
STOC 2008, May 17–20, Victoria (BC), Canada (2008)
2. Downey, R.G., Fellows, M.R.: Parameterized Complexity.
Springer, Berlin (1999)
3. Dujmovi
´
c, V., Fellows, M.R., Hallett, M., Kitching, M., Liotta,
G.,McCartin,C.,Nishimura,N.,Ragde,P.,Rosamond,F.A.,
Suderman, M., Whitesides, S., Wood, D.R.: A fixed-parameter
approach to 2-layer planarization. Algorithmica 45, 159–182
(2006)
4. Dujmovi
´
c,V.,Fernau,H.,Kaufmann,M.:Fixedparameteral-
gorithms for one-sided crossing minimization revisited. In: Li-
otta G. (ed.) Graph Drawing, 11th International Symposium
GD 2003. LNCS, vol. 2912, pp. 332–344. Springer, Berlin (2004).
A journal version has been accepted to J. Discret. Algorithms,
see doi: 10.1016/j.jda.2006.12.008
5. Dujmovi
´
c, V., Whitesides, S.: An efficient fixed parameter
tractable algorithm for 1-sided crossing minimization. Algo-
rithmica 40, 15–32 (2004)
6. Eades, P., Wormald, N.C.: Edge crossings in drawings of bipar-
tite graphs. Algorithmica 11, 379–403 (1994)
7. Fernau, H.: Two-layer planarization: improving on parameter-
ized algorithmics. J. Graph Algorithms Appl. 9, 205–238 (2005)
8. Fernau,H.,Kaufmann,M.,Poths,M.:Comparingtreesviacross-
ing minimization. In: Ramanujam R., Sen S. (eds.) Foundations
of Software Technology and Theoretical Computer Science
FSTTCS 2005. LNCS, vol. 3821, pp. 457–469. Springer, Berlin
(2005)
9. Nagamochi, H.: An improved bound on the one-sided mini-
mum crossing number in two-layered drawings. Discret. Com-
put. Geom. 33, 569–591 (2005)
10. Suderman, M.: Layered Graph Drawing. Ph. D. thesis, McGill
University, Montréal (2005)
11. Suderman, M., Whitesides, S.: Experiments with the fixed-pa-
rameter approach for two-layer planarization. J. Graph Algo-
rithms Appl. 9 (1), 149–163 (2005)
12. Sugiyama, K., Tagawa, S., Toda, M.: Methods for visual under-
standing of hierarchical system structures. IEEE Trans. Syst.
Man Cybernet. 11(2), 109–125 (1981)
Parameterized Matching
1993; Baker
MOSHE LEWENSTEIN
Department of Computer Science, Bar-Ilan University,
Ramat-Gan, Israel
Problem Definition
Parameterized strings,orp-strings, are strings that con-
tain both ordinary symbols from an alphabet ˙ and pa-
rameter symbols from an alphabet ˘. Two equal-length
p-strings s and s
0
are a parameterized match, or p-match,
if one p-string can be transformed into the other by ap-
plying a one-to-one function that renames the parameter
symbols. The following example of a p-match is one with
both ordinary and parameter symbols. The ordinary sym-
bols are in lowercase and the parameter symbols are in up-
percase.
s = AbAbCAdbACdd
s
0
= DbDbEDdbDEdd
Insomeoftheproblemstobeconsidereditwillbesuf-
ficient to solve for p-strings in which all symbols are pa-
rametersymbols,asthisisthemoredifficultpartofthe
problem. In other words, the case in which ˙ = ;.Inthis
case the definition can be reformulated so that s and s
0
are
a p-match if there exists a bijection : ˘
s
! ˘
s
0
,such
that (s)=s
0
,where(s) is the renaming of each charac-
ter of s via .
The following problems will be considered. Param-
eterized matching – given a parameterized pattern p of
length m and parameterized text t, find all locations i of
a parameterized text t for which p p-matches t
i
t
i+m1
,
where m = jpj. The same problem is also considered in