arrow
返回

LsHASHq: A string matching algorithm exploiting longer q-gram shifting

delete2022-09-01
delete2
PRE
AI
A
Abdulrakeeb M. Al-Ssulami
A
Aqil M. Azmi *
H
Hassan Mathkour
H
Hatim Aboalsamh
DOI:10.1016/j.ipm.2022.103057delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
String matching is a classical computer science problem where we search for all the occurrences of a text string of size m, typically called pattern, in a string of size n, where both strings are drawn from the same alphabet. It is an essential task for many applications such as data mining, web search engines, bioinformatics, and natural language processing. Fast hash algorithms were developed to speed up the searching process. Here, we compare the hash value of strings (signature) instead of the letters. The hash function allows exploiting bitwise operations while considering the alphabet's and pattern's sizes. However, the efficiency of the hash algorithms calls for further improvements. The problem with q-gram hash algorithms is that the shift skips at most m-q+ 1 positions, where m is the same as before, and q is the length of hashed q-gram. For a fixed m, the number of skipped positions decreases as q increases. This paper presents a new variation of the q-gram hash algorithm, which elongates the shift by skipping at most m positions over text. Theoretically, the proposed hash algorithm, namely, Longer shift HASHq (LsHASHq), has a longer shift than the state-of-the-art hash algorithms. Experimentally, the new algorithm is the fastest among the following algorithms: BNDMq, BXSq, EPSM, FHASHq, FSBNDMq, HASHq, LWFRq, QLQS, SBNDMq, TWFRq, and WFRq on different natural language texts for m > 10. For human genome sequence the new algorithm was second fastest for short patterns of length 10.
Keyword:
String matching algorithms
Pattern matching
q-gram hashing
Online search
Sequence analysis

期刊

I
Information Processing and Management
IF:
6.9
论文数:
5.2K
被引数:
1.4W

机构

K
King Saud University
学者数:
3.4W
论文数: 3.8W
被引数: 815
T
Taiz University
学者数:
350
论文数: 351
被引数: 381
引用论文

引用论文

Diffusive Limit of Non-Markovian Quantum Jumps
err2020-10-09
err0
errOAAI
errKimmo Luoma; Walter T. Strunz; Jyrki Piilo
err分享
err收藏
RNA viruses and microRNAs: challenging discoveries for the 21st century
err2013-11-15
err0
errOAAI
errGokul Swaminathan; Julio Martin-Garcia; Sonia Navas-Martin
err分享
err收藏
A NEW APPROACH TO TEXT SEARCHING
err1992-10-01
err421
errOAAI
errBAEZAYATES, R; GONNET, GH
err分享
err收藏
Exact String Matching Algorithms: Survey, Issues, and Future Research Directions
err2019-01-01
err48
errOAAI
errHakak, Saqib Iqbal; Kamsin, Amirrudin; Shivakumara, Palaiahnakote; Gilkar, Gulshan Amin; Khan, Wazir Zada; Imran, Muhammad
err分享
err收藏
err分享
err收藏
学者 查看更多内容