Title :
Accelerating Rabin Karp on a Graphics Processing Unit (GPU) using Compute Unified Device Architecture (CUDA)
Author :
Dayarathne, Nayomi ; Ragel, Roshan
Abstract :
String matching or pattern matching algorithms are used in various applications. They are used to find the occurrences of a pattern in a given text or a pool of strings. They are widely used in text editors in computing machines, database queries, bio-informatics, chem-informatics, search engines and many more applications. String matching algorithms can be of two ways: single pattern matching and multiple pattern matching. Rabin Karp is a string searching algorithm that can act in both ways. Since these algorithms are working on large pool of data, achieving higher throughput on the implementation of the algorithm has always been a major concern. Parallel implementation of such algorithms can achieve the concerned objective. Parallelism could be achieved easily with the rapid development of GPU architectures. In this research, Rabin Karp algorithm is implemented in CUDA C. We have compared CUDA implementation of this algorithm against both its serial CPU implementation and parallel Pthread implementation on multi-core CPUs. Eventually, using the empirical results, we could conclude that the CUDA C implementation of Rabin Karp on the GPU can achieve much high throughput for a large pool of data in string matching.
Keywords :
graphics processing units; multiprocessing systems; parallel architectures; string matching; CUDA C; GPU architecture; Rabin Karp algorithm; bio-informatics; chem-informatics; compute unified device architecture; computing machine; database queries; graphics processing unit; multicore CPU; multiple pattern matching algorithm; parallel Pthread implementation; search engines; single pattern matching algorithm; string matching algorithm; string searching algorithm; Algorithm design and analysis; Computer architecture; Graphics processing units; Indexes; Instruction sets; Pattern matching; Throughput; CUDA; CUDA C; GPU; Pthread; Rabin Karp;
Conference_Titel :
Information and Automation for Sustainability (ICIAfS), 2014 7th International Conference on
DOI :
10.1109/ICIAFS.2014.7069589