Abstract
AbstractThe importance of string matching is due to its applications in many fields, such as medicine and bioinformatics. Various string matching algorithms are developed to speed up the search. Especially, hash‐based exact string matching algorithms are among the most time‐efficient ones. The efficiency of hash‐based approaches depends on the hash function. Hence, perfect hashing plays an essential role in hash‐based string matching. In this study, two q‐frame hash comparison‐based exact string matching algorithms, Hq‐QF and HqBM‐QF, are proposed. We have used a collision‐free perfect hash function for DNA sequences in the proposed algorithms. In the first approach, after hash values match for the last qcharacters, the character comparisons in the Hash‐q algorithm are replaced with q‐frame hash comparison. In the second approach, we improved the first approach by utilizing the shift size indicated at the th entry in the good suffix shift table. Since the number of character comparisons is minimized, the worst‐case time complexity of the proposed algorithms is . In both approaches, q‐frame hash comparisons replace most character comparisons as a trade‐off. The results show that the proposed approaches are more efficient than the Hash‐q algorithm in terms of runtime efficiency and the number of character comparisons.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
More From: Concurrency and Computation: Practice and Experience
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.