English

New Variants of Pattern Matching with Constants and Variables

Data Structures and Algorithms 2017-05-29 v1

Abstract

Given a text and a pattern over two types of symbols called constants and variables, the parameterized pattern matching problem is to find all occurrences of substrings of the text that the pattern matches by substituting a variable in the text for each variable in the pattern, where the substitution should be injective. The function matching problem is a variant of it that lifts the injection constraint. In this paper, we discuss variants of those problems, where one can substitute a constant or a variable for each variable of the pattern. We give two kinds of algorithms for both problems, a convolution-based method and an extended KMP-based method, and analyze their complexity.

Keywords

Cite

@article{arxiv.1705.09504,
  title  = {New Variants of Pattern Matching with Constants and Variables},
  author = {Yuki Igarashi and Diptarama and Ryo Yoshinaka and Ayumi Shinohara},
  journal= {arXiv preprint arXiv:1705.09504},
  year   = {2017}
}

Comments

15 pages, 2 figures

R2 v1 2026-06-22T19:59:54.518Z