Sparse Regular Expression Matching

07/10/2019
by   Philip Bille, et al.
0

We present the first algorithm for regular expression matching that can take advantage of sparsity in the input instance. Our main result is a new algorithm that solves regular expression matching in O(Δnm/Δ + n + m) time, where m is the number of positions in the regular expression, n is the length of the string, and Δ is the density of the instance, defined as the total number of active states in a simulation of the position automaton. This measure is a lower bound on the total number of active states in simulations of all classic polynomial sized finite automata. Our bound improves the best known bounds for regular expression matching by almost a linear factor in the density of the problem. The key component in the result is a novel linear space representation of the position automaton that supports state-set transition computation in near-linear time in the size of the input and output state sets.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/09/2018

From Regular Expression Matching to Parsing

Given a regular expression R and a string Q the regular expression match...
research
08/20/2023

Real-time Regular Expression Matching

This paper is devoted to finite state automata, regular expression match...
research
08/09/2022

Co-lexicographically ordering automata and regular languages. Part I

In the present work, we lay out a new theory showing that all automata c...
research
07/15/2020

On Indexing and Compressing Finite Automata

An index for a finite automaton is a powerful data structure that suppor...
research
12/03/2021

Classical computation of quantum guesswork

The guesswork quantifies the minimum number of queries needed to guess t...
research
05/17/2019

Simulations in Rank-Based Büchi Automata Complementation

The long search for an optimal complementation construction for Büchi au...
research
01/12/2023

Incremental Dead State Detection in Logarithmic Time

Identifying live and dead states in an abstract transition system is a r...

Please sign up or login with your details

Forgot password? Click here to reset