English

Parallel algorithm for pattern matching problems under substring consistent equivalence relations

Data Structures and Algorithms 2022-07-28 v3

Abstract

Given a text and a pattern over an alphabet, the pattern matching problem searches for all occurrences of the pattern in the text. An equivalence relation \approx is called a substring consistent equivalence relation (SCER), if for two strings XX and YY, XYX \approx Y implies X=Y|X| = |Y| and X[i:j]Y[i:j]X[i:j] \approx Y[i:j] for all 1ijX1 \le i \le j \le |X|. In this paper, we propose an efficient parallel algorithm for pattern matching under any SCER using the"duel-and-sweep" paradigm. For a pattern of length mm and a text of length nn, our algorithm runs in O(ξmtlog2m)O(\xi_m^\mathrm{t} \log^2 m) time and O(ξmwnlog2m)O(\xi_m^\mathrm{w} \cdot n \log^2 m) work, with O(τnt+ξmtlog2m)O(\tau_n^\mathrm{t} + \xi_m^\mathrm{t} \log^2 m) time and O(τnw+ξmwmlog2m)O(\tau_n^\mathrm{w} + \xi_m^\mathrm{w} \cdot m \log^2 m) work preprocessing on the Priority Concurrent Read Concurrent Write Parallel Random-Access Machines (P-CRCW PRAM).

Keywords

Cite

@article{arxiv.2202.13284,
  title  = {Parallel algorithm for pattern matching problems under substring consistent equivalence relations},
  author = {Davaajav Jargalsaikhan and Diptarama Hendrian and Ryo Yoshinaka and Ayumi Shinohara},
  journal= {arXiv preprint arXiv:2202.13284},
  year   = {2022}
}