Parallel algorithm for pattern matching problems under substring consistent equivalence relations

preprint2022arXivOpen access

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, X≈YX \approx Y implies ∣X∣=∣Y∣|X| = |Y| and X[i:j]≈Y[i:j]X[i:j] \approx Y[i:j] for all 1≤i≤j≤∣X∣1 \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(ξmtlog⁡2m)O(ξ_m^\mathrm{t} \log^2 m) time and O(ξmw⋅nlog⁡2m)O(ξ_m^\mathrm{w} \cdot n \log^2 m) work, with O(τnt+ξmtlog⁡2m)O(τ_n^\mathrm{t} + ξ_m^\mathrm{t} \log^2 m) time and O(τnw+ξmw⋅mlog⁡2m)O(τ_n^\mathrm{w} + ξ_m^\mathrm{w} \cdot m \log^2 m) work preprocessing on the Priority Concurrent Read Concurrent Write Parallel Random-Access Machines (P-CRCW PRAM).

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.