The Complexity of Aggregates over Extractions by Regular Expressions

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Doleschal, Johannes, Kimelfeld, Benny, Martens, Wim
Natura: Preprint
Pubblicazione: 2020
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910327128457216
author Doleschal, Johannes
Kimelfeld, Benny
Martens, Wim
author_facet Doleschal, Johannes
Kimelfeld, Benny
Martens, Wim
contents Regular expressions with capture variables, also known as regex-formulas, extract relations of spans (intervals identified by their start and end indices) from text. In turn, the class of regular document spanners is the closure of the regex formulas under the Relational Algebra. We investigate the computational complexity of querying text by aggregate functions, such as sum, average, and quantile, on top of regular document spanners. To this end, we formally define aggregate functions over regular document spanners and analyze the computational complexity of exact and approximate computation. More precisely, we show that in a restricted case, all studied aggregate functions can be computed in polynomial time. In general, however, even though exact computation is intractable, some aggregates can still be approximated with fully polynomial-time randomized approximation schemes (FPRAS).
format Preprint
id arxiv_https___arxiv_org_abs_2002_08828
institution arXiv
publishDate 2020
record_format arxiv
spellingShingle The Complexity of Aggregates over Extractions by Regular Expressions
Doleschal, Johannes
Kimelfeld, Benny
Martens, Wim
Databases
Formal Languages and Automata Theory
Regular expressions with capture variables, also known as regex-formulas, extract relations of spans (intervals identified by their start and end indices) from text. In turn, the class of regular document spanners is the closure of the regex formulas under the Relational Algebra. We investigate the computational complexity of querying text by aggregate functions, such as sum, average, and quantile, on top of regular document spanners. To this end, we formally define aggregate functions over regular document spanners and analyze the computational complexity of exact and approximate computation. More precisely, we show that in a restricted case, all studied aggregate functions can be computed in polynomial time. In general, however, even though exact computation is intractable, some aggregates can still be approximated with fully polynomial-time randomized approximation schemes (FPRAS).
title The Complexity of Aggregates over Extractions by Regular Expressions
topic Databases
Formal Languages and Automata Theory
url https://arxiv.org/abs/2002.08828