vix.ing · top · new · best · stats · spec

Parallel algorithm for pattern matching problems under substring consistent equivalence relations

2022/02/27 by Jargalsaikhan, Davaajav, Hendrian, Diptarama, Yoshinaka, Ryo +1
#Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences

paper · doi:10.48550/arxiv.2202.13284

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 ≈ is called a substring consistent equivalence relation (SCER), if for two strings X and Y, X ≈ Y implies |X| = |Y| and X[i:j] ≈ Y[i:j] for all 1 ≤ i ≤ j ≤ |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 m and a text of length n, our algorithm runs in O(ξmt log2 m) time and O(ξmw ⋅ n log2 m) work, with O(τnt + ξmt log2 m) time and O(τnw + ξmw ⋅ m log2 m) work preprocessing on the Priority Concurrent Read Concurrent Write Parallel Random-Access Machines (P-CRCW PRAM).

Related