arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.14307cs.DB
收藏

无自连接合取查询溯源的最小化因式分解

Minimally Factorizing the Provenance of Self-join Free Conjunctive Queries

Neha Makhija, Wolfgang Gatterbauer

AI总结:

该研究针对无自连接合取查询溯源的最小因式分解问题,证明其为NP完全问题,识别出更多多项式时间可解的查询类,并提出ILP精确算法和MFMC近似算法,二者均覆盖已知易处理情况且可求解难例。

摘要:

我们研究无自连接合取查询溯源的最小规模因式分解问题,即寻找一个能最小化变量重复次数的公式。该问题等价于在无自连接查询溯源公式的受限场景下求解基础布尔公式因式分解问题。虽然通用布尔公式最小化是$Σ^p_2$完全问题,但我们证明该问题在我们的场景下是NP完全(NP-C)的。此外,我们识别出一大类可在多项式时间(PTIME)内求解的查询,其范围超出了此前已知的一次读取公式和分层查询的易处理情况。\n我们阐述了因式分解、变量消元序(Variable Elimination Orders,VEOs)与最小查询计划之间的关联。我们利用这些见解构建了一个整数线性规划(Integer Linear Program,ILP),可精确求解最小因式分解问题。我们还提出了一种基于最大流最小割(Max-Flow Min-Cut,MFMC)的算法,可给出高效的近似解。重要的是,我们证明我们的ILP的线性规划(Linear Programming,LP)松弛,以及基于MFMC的算法,对于所有当前已知的PTIME情况始终是正确的。因此,我们提出了两种统一算法(ILP和MFMC),它们既能在PTIME内复现所有已知的PTIME情况,又能根据需求精确(ILP)或近似(MFMC)求解NP完全情况。

英文摘要:

We consider the problem of finding the minimal-size factorization of the provenance of self-join-free conjunctive queries, i.e., we want to find a formula that minimizes the number of variable repetitions. This problem is equivalent to solving the fundamental Boolean formula factorization problem for the restricted setting of the provenance formulas of self-join free queries. While general Boolean formula minimization is $Σ^p_2$-complete, we show that the problem is NP-C in our case. Additionally, we identify a large category of queries that can be solved in PTIME, expanding beyond the previously known tractable cases of read-once formulas and hierarchical queries. We describe connections between factorizations, Variable Elimination Orders (VEOs), and minimal query plans. We leverage these insights to create an Integer Linear Program (ILP) that can solve the minimal factorization problem exactly. We also propose a Max-Flow Min-Cut (MFMC) based algorithm that gives an efficient approximate solution. Importantly, we show that both the Linear Programming (LP) relaxation of our ILP, and our MFMC-based algorithm are always correct for all currently known PTIME cases. Thus, we present two unified algorithms (ILP and MFMC) that can both recover all known PTIME cases in PTIME, yet also solve NP-complete cases either exactly (ILP) or approximately (MFMC), as desired.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑