paperbot · PL 论文追踪

全部论文 待读 收藏

P2 The Complexity of Aggregates over Extractions by Regular Expressions

正则表达式抽取结果上聚合操作的复杂度
LMCS vol.Volume 19, Issue 32023匹配度 2/10 · 该论文研究正则文档跨度器上聚合查询的精确与近似计算复杂度,属于数据库理论/形式语言与自动机方向;与用户核心关注的程序静态分析、Agentic/LLM 程序、浮点程序分析、贝叶斯程序分析及其与 LLM 的交叉均无直接关联,仅在形式化方法背景上有非常微弱的间接联系。引用 5 inbox
Johannes Doleschal, Benny Kimelfeld, Wim Martens
crossref: 2026-09-10

AI 速览

一句话:系统分析正则文档跨度器上聚合查询的精确与近似计算复杂度,并给出多项式时间与 FPRAS 边界。

带捕获变量的正则表达式(regex-formulas)可从文本中抽取由起止索引标识的跨度关系;正则文档跨度器(regular document spanners)是这类表达式在关系代数下的闭包。本文研究在正则文档跨度器上执行聚合查询(如 sum、average、quantile)的计算复杂度。作者形式化定义了作用于正则文档跨度器的聚合函数,并分析其精确计算与近似计算的复杂度:在受限情形下,所研究的聚合均可在多项式时间内计算;而在一般情况下,精确计算是难解的,但部分聚合函数仍可用全多项式时间随机近似方案(FPRAS)进行近似。该工作为文本信息抽取查询中的聚合操作提供了复杂度理论边界。

问题
如何对正则表达式抽取的跨度关系(regular document spanners)进行聚合查询(sum、average、quantile 等),其精确与近似计算复杂度如何?
方法
形式定义 regular document spanners 上的聚合函数,并分别分析受限情形与一般情形下精确计算和近似计算的复杂度。
评估
通过理论复杂度分析,证明受限情形多项式时间可计算,一般情形精确计算难解,并给出部分聚合的 FPRAS。
原文摘要(Abstract)

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).

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2198,
  title = {The Complexity of Aggregates over Extractions by Regular Expressions},
  author = {Johannes Doleschal and Benny Kimelfeld and Wim Martens},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 19, Issue 3},
  year = {2023},
  doi = {10.46298/lmcs-19(3:12)2023}
}