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

关系数据库相似分组运算符的序无关语义

On Order-independent Semantics of the Similarity Group-By Relational Database Operator

Mingjie Tang, Ruby Y. Tahboub, Walid G. Aref, Qutaibah M. Malluhi, Mourad Ouzzani

摘要:

相似性分组(SGB,简称)已被提出作为一个关系数据库操作符,以满足新兴的数据库应用的需要。在文献中已经提出了许多扩展SQL的SGB运算符,例如,一维空间中的相似性算子。这些操作符具有各种语义。根据这些运算符的实现方式,某些实现可能会导致不同的数据分组。因此,如果SQL代码从一个数据库系统移植到另一个数据库系统,不能保证代码将产生相同的结果。在本文中,我们研究了多维空间中的关系相似度分组运算符的各种语义。我们定义了一类与顺序无关的SGB运算符,这些运算符产生相同的结果,而不管输入数据呈现给它们的顺序。使用从图论中借用的区间图的概念,我们证明了,对于某些SGB运营商,存在顺序独立的实现。对于这些操作符中的每一个,我们都提供了一个与顺序无关的示例算法。此外,我们证明了,对于其他SGB运营商,不存在一个顺序独立的实现,因此这些SGB运营商是不好定义的,不应该被采用的扩展SQL实现相似性分组。在本文中,我们介绍了一个SGB运营商,即SGB-All,分组多维数据使用相似性。SGB-All形成组,使得一个数据项(比如O)属于一个组(比如G),当且仅当O与G中的所有其他数据项在用户定义的阈值内。换句话说,SGB-All中的每个组在多维空间中形成附近数据项的集团。我们证明了SGB-All是阶无关的,即,对于每个选项存在至少一个算法,该算法独立于输入数据的呈现顺序。

英文摘要:

Similarity group-by (SGB, for short) has been proposed as a relational database operator to match the needs of emerging database applications. Many SGB operators that extend SQL have been proposed in the literature, e.g., similarity operators in the one-dimensional space. These operators have various semantics. Depending on how these operators are implemented, some of the implementations may lead to different groupings of the data. Hence, if SQL code is ported from one database system to another, it is not guaranteed that the code will produce the same results. In this paper, we investigate the various semantics for the relational similarity group-by operators in the multi-dimensional space. We define the class of order-independent SGB operators that produce the same results regardless of the order in which the input data is presented to them. Using the notion of interval graphs borrowed from graph theory, we prove that, for certain SGB operators, there exist order-independent implementations. For each of these operators, we provide a sample algorithm that is order-independent. Also, we prove that for other SGB operators, there does not exist an order-independent implementation for them, and hence these SGB operators are ill-defined and should not be adopted in extensions to SQL to realize similarity group-by. In this paper, we introduce an SGB operator, namely SGB-All, for grouping multi-dimensional data using similarity. SGB-All forms groups such that a data item, say O, belongs to a group, say G, if and only if O is within a user-defined threshold from all other data items in G. In other words, each group in SGB-All forms a clique of nearby data items in the multi-dimensional space. We prove that SGB-All are order-independent, i.e., there is at least one algorithm for each option that is independent of the presentation order of the input data.

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

↑