Disambiguation of Regular Expressions with Backreferences via Term Rewriting

In this paper we focus on regular expressions with acyclic backreferences and treat them as a semiring satisfying certain theorems of Kleene algebra. Using these theorems as term rewriting rules, we introduce an algorithm for memory disambiguation of regular expressions. Furthermore, we demonstrate that the class of regexes with acyclic backreferences is closed under language reversal, in contrast to the generic backref-regexes, and provide the reversal algorithm, based on the disambiguation procedure. The results of our experiments revealed that, in certain cases, the matching time was significantly reduced when using the reversed expressions compared to the initial ones.

Authors

Institutions

Publication Details

Journal
Modeling and Analysis of Information Systems
Published
2024-12-13
DOI
https://doi.org/10.18255/1818-1015-2024-4-426-445
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Disambiguation of Regular Expressions with Backreferences via Term Rewriting

Antonina Nepeivoda, Daria N. Ismagilova
Modeling and Analysis of Information Systems
Natural Language Processing Techniques
article

Disambiguation of Regular Expressions with Backreferences via Term Rewriting

Antonina Nepeivoda, Daria N. Ismagilova
article en

Abstract

In this paper we focus on regular expressions with acyclic backreferences and treat them as a semiring satisfying certain theorems of Kleene algebra. Using these theorems as term rewriting rules, we introduce an algorithm for memory disambiguation of regular expressions. Furthermore, we demonstrate that the class of regexes with acyclic backreferences is closed under language reversal, in contrast to the generic backref-regexes, and provide the reversal algorithm, based on the disambiguation procedure. The results of our experiments revealed that, in certain cases, the matching time was significantly reduced when using the reversed expressions compared to the initial ones.

Modeling and Analysis of Information SystemsVol. 31(4)
Bauman Moscow State Technical University (RU), Program Systems Institute of RAS (RU)
Openalex Percentile: Top 79%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Disambiguation of Regular Expressions with Backreferences via Term Rewriting — Antonina Nepeivoda, Daria N. Ismagilova · Modeling and Analysis of Information Systems (2024) | TGRS Research Map | TGRS