TY - GEN
T1 - The complexity of aggregates over extractions by regular expressions
AU - Doleschal, Johannes
AU - Bratman, Noa
AU - Kimelfeld, Benny
AU - Martens, Wim
N1 - Publisher Copyright: © Johannes Doleschal, Noa Bratman, Benny Kimelfeld, and Wim Martens.
PY - 2021/3/1
Y1 - 2021/3/1
N2 - 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).
AB - 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).
KW - Aggregation functions
KW - Document spanners
KW - Information extraction
KW - Regular expressions
UR - http://www.scopus.com/inward/record.url?scp=85115242341&partnerID=8YFLogxK
U2 - https://doi.org/10.4230/LIPIcs.ICDT.2021.10
DO - https://doi.org/10.4230/LIPIcs.ICDT.2021.10
M3 - منشور من مؤتمر
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 24th International Conference on Database Theory, ICDT 2021
A2 - Yi, Ke
A2 - Wei, Zhewei
T2 - 24th International Conference on Database Theory, ICDT 2021
Y2 - 23 March 2021 through 26 March 2021
ER -