Arrow Research search
Back to I&C

I&C 2015

Pattern matching with variables: A multivariate complexity analysis

Journal Article journal-article Computer Science · Theoretical Computer Science

Abstract

A pattern α, i. e. , a string that contains variables and terminals, matches a terminal word w if w can be obtained by uniformly substituting the variables of α by terminal words. Deciding whether a given terminal word matches a given pattern is NP-complete and this holds for several natural variants of the problem that result from whether or not variables can be erased, whether or not the patterns are required to be terminal-free or whether or not the mapping of variables to terminal words must be injective. We consider numerous parameters of this problem (i. e. , number of variables, length of w, length of the words substituted for variables, number of occurrences per variable, cardinality of the terminal alphabet) and for all possible combinations of the parameters (and variants described above), we answer the question whether or not the problem is still NP-complete if these parameters are bounded by constants.

Authors

Keywords

  • Parameterised pattern matching
  • Function matching
  • NP-completeness
  • Membership problem for pattern languages
  • Morphisms

Context

Venue
Information and Computation
Archive span
1987-2026
Indexed papers
3021
Paper id
649377540316626695
v2026.09.13