arrow
Return

Efficient Regular Expression Matching Based on Positional Inverted Index

delete2022-03-01
delete0
PRE
AI
T
Tao Qiu
X
Xiaochun Yang *
B
Bin Wang
W
Wei Wang
DOI:10.1109/TKDE.2020.2992295delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
We study the efficient regular expression (regex) matching problem. Existing algorithms are the scanning-based algorithms which typically use an equivalent automaton compiled from the regex query to verify a document. Although some works propose various strategies to quickly jump to candidate locations in a document where a query result may appear, they still need to utilize the scanning-based method to verify these candidate locations. These methods become inefficient when there are still many candidate locations needed to be verified. In this article, we propose a novel approach to efficiently compute all matching positions for a regex query purely based on a positional q-gram inverted index. We propose a gram-driven NFA to represent the language of a regex and show all regex matching locations can be obtained by finding positions on q-grams of GNFA that satisfy certain positional constraints. Then we propose several GNFA-based query plans to answer the query using the positional inverted index. In order to improve the query efficiency, we design the algorithm to build a tree-based query plan by carefully choosing a checking order for positional constraints. Experimental results on real-world datasets show that our method outperforms state-of-the-art methods by up to an order of magnitude in query efficiency.
Keywords:
Regular expression matching
positional inverted index
query plan
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Knowledge and Data Engineering cover
IEEE Transactions on Knowledge and Data Engineering
IF:
10.4
Papers:
6.9K
Citations:
3.2W

Organization

N
northeastern university - china
Scholars:
3.2W
Papers: 2.7W
Citations: 37
Cited Papers

Cited Papers

errShare
errSave
Inverted files for text search engines
err2006-07-25
err730
PREAI
errZobel, Justin; Moffat, Alistair
errShare
errSave
Changes in Tear Protein Pattern after Photorefractive Keratectomy
err2003-07-01
err0
PREAI
errÁ. Füst; A. Veres; P. Kiszel; Z.Z. Nagy; L. Cervenak; B. Csákány; E. Maka; I. Süveges; F.H. Grus
errShare
errSave
Topical and Subcutaneous ??-Interferon Fails to Suppress Corneal Neovascularization
err1995-03-01
err0
PREAI
errNgoc Nguyen; Marc Goldberg; Jose Pico; Wonsuck Kim; Richard L. Abbott; Brian Levy
errShare
errSave
errShare
errSave
researcher View more