递归映射中完备集的单调性
Monotonic Properties of Completed Aggregates in Recursive Queries
摘要:
在递归中使用聚合可以有效和可扩展地支持广泛的BigData算法,包括在图形应用程序,KDD应用程序和ML应用程序中使用的算法,这些算法在支持Datasheet或SQL的BigData系统中难以有效表达和支持。这些语言和系统的问题在于,为了避免递归中的非单调结构所产生的语义和计算问题,它们只允许相对于否定和聚合分层的程序。现在,虽然这种削弱限制对于否定是合理的,但对于聚合来说,它经常是不合理的,因为(i)聚合在集合包含的标准格中通常是单调的,(ii)PreM性质保证了递归中具有极值的程序等价于分层程序,其中极值用作后约束,以及(iii)计算可预测基数的事实集合上的任何聚集的任何程序都相当于分层程序,其中集合的基数的预先计算之后是递归规则仅使用单调构造的层。与(i)和(ii)在以前的文件中,本文侧重于(iii)使用的例子,具有很大的实际意义。对于这样的例子,我们提供了一个正式的语义,这是有利于通过众所周知的技术,如目前支持的大多数数据库和SQL3系统的半天真的定点的高效和可扩展的实现。
英文摘要:
The use of aggregates in recursion enables efficient and scalable support for a wide range of BigData algorithms, including those used in graph applications, KDD applications, and ML applications, which have proven difficult to be expressed and supported efficiently in BigData systems supporting Datalog or SQL. The problem with these languages and systems is that, to avoid the semantic and computational issues created by non-monotonic constructs in recursion, they only allow programs that are stratified with respect to negation and aggregates. Now, while this crippling restriction is well-justified for negation, it is frequently unjustified for aggregates, since (i) aggregates are often monotonic in the standard lattice of set-containment, (ii) the PreM property guarantees that programs with extrema in recursion are equivalent to stratified programs where extrema are used as post-constraints, and (iii) any program computing any aggregates on sets of facts of predictable cardinality tantamounts to stratified programs where the precomputation of the cardinality of the set is followed by a stratum where recursive rules only use monotonic constructs. With (i) and (ii) covered in previous papers, this paper focuses on (iii) using examples of great practical interest. For such examples, we provide a formal semantics that is conducive to efficient and scalable implementations via well-known techniques such as semi-naive fixpoint currently supported by most Datalog and SQL3 systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。