Skip to search boxSkip to navigationSkip to main content

Optimal packed string matching

  • Oren Ben-Kiki
    ,
  • Philip Bille
    ,
  • Dany Breslauer
    ,
  • Leszek Ga̧sieniec
    ,
  • Roberto Grossi
    ,
  • Oren Weimann
  • Intel
    ,
  • Technical University of Denmark
    ,
  • University of Haifa
    ,
  • University of Liverpool
    ,
  • University of Pisa
Scholary Output:
Chapter in Book/Report/Conference proceeding
Conference contribution

Related Event

Title

31st International Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2011

Event type

Conference

Date

12/12/2011 - 12/14/2011

Location

MumbaiIndia

Abstract

In the packed string matching problem, each machine word accommodates α characters, thus an n-character text occupies n/α memory words. We extend the Crochemore-Perrin constant-space O(n)-time string matching algorithm to run in optimal O(n/α) time and even in real-time, achieving a factor α speedup over traditional algorithms that examine each character individually. Our solution can be efficiently implemented, unlike prior theoretical packed string matching work. We adapt the standard RAM model and only use its AC0instructions (i.e., no multiplication) plus two specialized AC0packed string instructions. The main string-matching instruction is available in commodity processors (i.e., Intel's SSE4.2 and AVX Advanced String Operations); the other maximal-suffix instruction is only required during pattern preprocessing. In the absence of these two specialized instructions, we propose theoretically-efficient emulation using integer multiplication (not AC0) and table lookup.

Publication Information

Output type

Scholary Output:
Chapter in Book/Report/Conference proceeding
Conference contribution

Original language

English (US)

Pages from-to (Number of pages)

Pages 423-432 (10 pages)

Publication milestones

  • Published - 2011

Publication status

Published - 2011

Publication series

  • Publication series name: Leibniz International Proceedings in Informatics, LIPIcs
    ISSN (Print): 1868-8969
    Volume: 13
9783939897347

Publication IDs

  • Scopus: 84863112223

Host publication title

31st International Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2011

Publication metrics

Metrics

SciVal
citations
12
SciVal
FWCI
1.49
SciVal
Author count
6
SciVal
Paper percentile
68
Fractional count
1
Fractional count
0.17
Fractional count
5
Fractional count
0.83
Fractional count
1
Fractional count
1
Scopus
citations

PlumX, opens in new tab

Citation count
14
Captures
7

Funding Details

FundersFunding number
EC
-
FP7
208173