Parallel Implementation of the Order-Preserving Multiple Pattern Matching Algorithm using the Karp-Rabin Algorithm 


Vol. 48,  No. 3, pp. 249-256, Mar.  2021
10.5626/JOK.2021.48.3.249


PDF

  Abstract

When two strings of the same length have the same relative orders, they are called order-isomorphic. Given a text T(|T|=n)and a set of patterns P̃={P₁,P₂,...,Pk}, the order-preserving multiple pattern matching problem is to find all substrings of T that are order-isomorphic to any pattern in P̃ . Let m be the length of the shortest pattern, m̅ be the length of the longest pattern, and M be the sum of lengths of all the patterns in P̃. When M is polynomial with respect to m, an order-preserving multiple pattern matching algorithm using the Karp-Rabin algorithm was presented whose searching step runs in O(n) time on average. In this paper, we implemented an order-preserving multiple pattern matching algorithm using the Karp-Rabin algorithm in parallel. It runs in O(m̅) time on average using O(M) threads in the preprocessing step and runs in O(m) time on average using O(n) threads in the searching step. The experimental results for random strings as input showed that our parallel implementation performed approximately 201.5 times faster than the existing sequential algorithm when n=1,000,000, k=1,000, m=5.


  Statistics
Cumulative Counts from November, 2022
Multiple requests among the same browser session are counted as one view. If you mouse over a chart, the values of data points will be shown.


  Cite this article

[IEEE Style]

K. B. Park, Y. Kim, J. S. Sim, "Parallel Implementation of the Order-Preserving Multiple Pattern Matching Algorithm using the Karp-Rabin Algorithm," Journal of KIISE, JOK, vol. 48, no. 3, pp. 249-256, 2021. DOI: 10.5626/JOK.2021.48.3.249.


[ACM Style]

Kyung Bin Park, Youngho Kim, and Jeong Seop Sim. 2021. Parallel Implementation of the Order-Preserving Multiple Pattern Matching Algorithm using the Karp-Rabin Algorithm. Journal of KIISE, JOK, 48, 3, (2021), 249-256. DOI: 10.5626/JOK.2021.48.3.249.


[KCI Style]

박경빈, 김영호, 심정섭, "Karp-Rabin 알고리즘을 이용한 순위다중패턴매칭 알고리즘의 병렬 구현," 한국정보과학회 논문지, 제48권, 제3호, 249~256쪽, 2021. DOI: 10.5626/JOK.2021.48.3.249.


[Endnote/Zotero/Mendeley (RIS)]  Download


[BibTeX]  Download



Search




Journal of KIISE

  • ISSN : 2383-630X(Print)
  • ISSN : 2383-6296(Electronic)
  • KCI Accredited Journal

Editorial Office

  • Tel. +82-2-588-9240
  • Fax. +82-2-521-1352
  • E-mail. chwoo@kiise.or.kr