寻找合取查询的最小见证
Finding Smallest Witnesses for Conjunctive Queries
AI总结:
本文研究无自连接合取查询的最小见证问题,证明了其多项式可解的严格二分法定理,并基于head-domination性质刻画了近似难度,为不同查询结构设计了高效的近似算法。
摘要:
见证是保留原始数据库查询结果但规模小得多的子数据库。它在查询重写与调试、查询解释、IoT分析和多层网络路由等领域有广泛应用。本文研究无自连接的合取查询(CQ)类的最小见证问题(SWP)。我们首先建立了二分法定理:除非 P=NP,CQ的SWP可在多项式时间内计算当且仅当它具有head-cluster property。接着我们转向通过放宽见证最小规模限制的近似版本。我们惊讶地发现,为删除传播问题识别出的head-domination property也能精确刻画近似最小见证问题的难度。在多项式时间内,具有head-domination property的CQ的SWP可在常数因子内近似,而不具有该性质的任何CQ的SWP无法在对数因子内近似,除非 P=NP。我们进一步探讨了不具有head-domination property的CQ的高效近似算法:(1)我们展示了一个对一般CQ实现多项式大小近似比的平凡算法;(2)对于仅含一个非输出属性的CQ(如星型CQ),我们给出了对数近似比的贪婪算法;(3)对于包含至少两个非输出属性的线型CQ,我们将SWP问题与有向Steiner森林问题联系起来,其算法可直接应用于线型CQ。同时,我们建立了一个高得多的下界,比上述对数下界大指数级。缩小不具有head-domination property的CQ近似SWP下界与上界之间的差距仍是开放问题。
英文摘要:
A witness is a sub-database that preserves the query results of the original database but of much smaller size. It has wide applications in query rewriting and debugging, query explanation, IoT analytics, multi-layer network routing, etc. In this paper, we study the smallest witness problem (SWP) for the class of conjunctive queries (CQs) without self-joins. We first establish the dichotomy that SWP for a CQ can be computed in polynomial time if and only if it has {\em head-cluster property}, unless $\texttt{P} = \texttt{NP}$. We next turn to the approximated version by relaxing the size of a witness from being minimum. We surprisingly find that the {\em head-domination} property - that has been identified for the deletion propagation problem \cite{kimelfeld2012maximizing} - can also precisely capture the hardness of the approximated smallest witness problem. In polynomial time, SWP for any CQ with head-domination property can be approximated within a constant factor, while SWP for any CQ without such a property cannot be approximated within a logarithmic factor, unless $\texttt{P} = \texttt{NP}$. We further explore efficient approximation algorithms for CQs without head-domination property: (1) we show a trivial algorithm which achieves a polynomially large approximation ratio for general CQs; (2) for any CQ with only one non-output attribute, such as star CQs, we show a greedy algorithm with a logarithmic approximation ratio; (3) for line CQs, which contain at least two non-output attributes, we relate SWP problem to the directed steiner forest problem, whose algorithms can be applied to line CQs directly. Meanwhile, we establish a much higher lower bound, exponentially larger than the logarithmic lower bound obtained above. It remains open to close the gap between the lower and upper bound of the approximated SWP for CQs without head-domination property.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。