On The Space Complexity of Partial Derivatives of Regular Expressions with Shuffle
Davide Ancona, Angelo Ferrando

TL;DR
This paper investigates the space complexity of partial derivatives of regular expressions extended with shuffle, revealing that their height increases minimally while their size grows quadratically, which is crucial for efficient runtime verification.
Contribution
The paper provides the first analysis of the size of the largest partial derivatives of regular expressions with shuffle, showing quadratic growth in size and minimal height increase.
Findings
Height of derivatives increases by at most one.
Size of derivatives is quadratic in the original expression size.
Results hold even when shuffle operator is included.
Abstract
Partial derivatives of regular expressions, introduced by Antimirov, define an elegant algorithm for generating equivalent non-deterministic finite automata (NFA) with a limited number of states. Here we focus on runtime verification (RV) of simple properties expressible with regular expressions. In this case, words are finite traces of monitorable events forming the language's alphabet, and the generated NFA may have an intractable number of states. This typically occurs when sub-traces of mutually independent events are allowed to interleave. To address this issue, regular expressions used for RV are extended with the shuffle operator to make specifications more compact and easier to read. Exploiting partial derivatives enables a rewriting-based approach to RV, where only one derivative is stored at each step, avoiding the construction of an intractably large automaton. This…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
