Next Article in Journal
Group Sparse Reconstruction of Multi-Dimensional Spectroscopic Imaging in Human Brain in vivo
Previous Article in Journal
Efficient Algorithms for Subgraph Listing
Open AccessArticle

A Faster Quick Search Algorithm

Faculty of Software, Fujian Normal University, Fuzhou 350108, China
Lane Department of Computer Science and Electrical Engineering, West Virginia University, Morgantown, WV 26506, USA
Author to whom correspondence should be addressed.
Algorithms 2014, 7(2), 253-275;
Received: 25 April 2014 / Revised: 30 May 2014 / Accepted: 4 June 2014 / Published: 23 June 2014
PDF [388 KB, uploaded 25 June 2014]


We present the FQS (faster quick search) algorithm, an improved variation of the quick search algorithm. The quick search (QS) exact pattern matching algorithm and its variants are among the fastest practical matching algorithms today. The FQS algorithm computes a statistically expected shift value, which allows maximal shifts and a smaller number of comparisons between the pattern and the text. Compared to the state-of-the-art QS variants of exact pattern matching algorithms, the proposed FQS algorithm is the fastest when lΣl ≤ 128, where lΣl is the alphabet size. FQS also has a competitive running time when lΣl > 128. Running on three practical text files, E. coli (lΣl = 4), Bible (lΣl = 63) and World192 (lΣl = 94), FQS resulted in the best performance in practice. Our FQS algorithm will have important applications in the domain of genomic database searching, involving DNA or RNA sequence databases with four symbols Σ = {A, C, G, T(/U)} or protein databases with lΣl = 20. View Full-Text
Keywords: exact pattern matching; quick search algorithm; maximum statistical expected shift exact pattern matching; quick search algorithm; maximum statistical expected shift
This is an open access article distributed under the Creative Commons Attribution License (CC BY 3.0).

Share & Cite This Article

MDPI and ACS Style

Lin, J.; Adjeroh, D.; Jiang, Y. A Faster Quick Search Algorithm. Algorithms 2014, 7, 253-275.

Show more citation formats Show less citations formats

Related Articles

Article Metrics

Article Access Statistics



[Return to top]
Algorithms EISSN 1999-4893 Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert
Back to Top