Quantum leap pattern matching

B.W. Watson, D.G. Kourie, L. Cleophas

    Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

    3 Citations (Scopus)

    Abstract

    Quantum leap matching is introduced as a generic pattern matching strategy for the single keyword exact pattern matching problem, that can be used on top of existing Boyer-Moore-style string matching algorithms. The cost of the technique is minimal: an additional shift table (of one dimension, for shifts in the opposite direction to the parent algorithm’s shifts), and the replacement of a simple table lookup assignment statement in the original algorithm with a similar conditional assignment. Together with each of the conventional shift table lookups, the additional shift table is typically also indexed on the text character that is at a distance of z away from the current sliding window. Under conditions that are identified, the returned values from the two shift tables allow a “quantum leap” of distance more than the length of the keyword for the next matching attempt. If the conditions are not met, then there is a fall back is to the traditional shift. Quick Search (by Sunday) is used as a case study to illustrate the technique. The performance of the derived “Quantum Leap Quick Search” algorithm is compared against Quick Search. When searching for shorter patterns over natural language and genomic texts, the technique improves on Quick Search’s time for most values of z. Improvements are also sometimes seen for various values of z on larger patterns. Most interestingly, under best case conditions it performs, on average, at about three times faster than Quick Search.
    Original languageEnglish
    Title of host publicationProceedings of the Prague Stringology Conference 2015, Prague, Czech Republic, August 24-26, 2015
    EditorsJ. Holub, J. Žďárek
    Place of PublicationPrague
    PublisherPrague Stringology Club
    Pages104-117
    Number of pages14
    ISBN (Print)978-80-01-05787-2
    Publication statusPublished - 2015
    EventPrague Stringology Conference 2015 - Department of Theoretical Computer Science, Prague, Czech Republic
    Duration: 24 Aug 201526 Aug 2015

    Conference

    ConferencePrague Stringology Conference 2015
    Country/TerritoryCzech Republic
    CityPrague
    Period24/08/1526/08/15

    Fingerprint

    Dive into the research topics of 'Quantum leap pattern matching'. Together they form a unique fingerprint.

    Cite this