Archives / Vol. 7, No. 1 (January 2018)

Parallel Rabin-Karp Algorithm Implementation on GPU (preliminary version)

Bulletin of Networking, Computing, Systems, and Software, Vol. 7, No. 1, pp. 28–32, January 2018

Download PDF

Abstract

The task of finding strings that match to a given pat- tern is of interest in a variety of practical applications, including DNA sequencing and text searching. Owing to its importance, alternatives to accelerate the pattern matching task have been widely investigated in the literature. The main contribution of this work is to present a parallel version of the celebrated Rabin-Karp algorithm. Given a pattern P of size m and a text string T of size n, the Rabin-Karp algorithm finds all occurrences of the pattern P in T with high probability. The proposed scheme can compare k different patterns to the input text concurrently. The proposed, parallelized, version of the Rabin-Karp algorithm has been implemented on the GeForce GTX 960 GPU. The results obtained show that the proposed implementation provides acceleration, compared to a sequential (CPU) implementation, surpassing 140 times for k = m = 1024 and n = 2^22.

Keywords

Pattern matchingRabin-Karp algorithmparallel implementationGPUCUDA

How to Cite

Lucas S. N. Nunes, Jacir L. Bordim, Yasuaki Ito and Koji Nakano, "Parallel Rabin-Karp Algorithm Implementation on GPU (preliminary version)," Bulletin of Networking, Computing, Systems, and Software, vol. 7, no. 1, pp. 28–32, 2018.

BibTeX
@article{ijnc.v07n01p06,
  author  = {Lucas S. N. Nunes and Jacir L. Bordim and Yasuaki Ito and Koji Nakano},
  title   = {Parallel Rabin-Karp Algorithm Implementation on GPU (preliminary version)},
  journal = {Bulletin of Networking, Computing, Systems, and Software},
  volume  = {7},
  number  = {1},
  pages   = {28--32},
  year    = {2018},
  url     = {https://bncss-bulletin.github.io/articles/v07n01p06/}
}