arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.00850cs.PLcs.DBcs.SC
收藏

代数程序设计

The Programming of Algebra

Fritz Henglein, Robin Kaarsgaard, Mikkel Kragh Mathiesen

摘要:

我们提出的模块理论和线性映射作为一个强大的通用和计算效率高的框架的关系数据模型,这是今天的关系数据库系统的基础。基于模块的通用结构,我们得到紧凑的和计算效率高的数据汇集对应的联合和删除,重复联合,笛卡尔积和键索引数据的数据结构。自由模自然会产生多集,它概括了多集,便于将数据库查询表示为多线性映射,并对多集构造函数进行渐近有效的评估。我们介绍紧凑的地图作为一种方式来表示无限(多)集建设从一个无限的基础集和它的元素的加法和减法。我们展示了自然连接如何推广到代数连接,而交集是由一种新的算法嵌套紧凑的地图,仔细避免访问部分的输入,不有助于最终的输出。我们的代数框架导致最坏情况下的循环关系查询,这是已知的是不可能使用教科书上的查询优化器,只对记录列表进行操作的最佳评估。

英文摘要:

We present module theory and linear maps as a powerful generalised and computationally efficient framework for the relational data model, which underpins today's relational database systems. Based on universal constructions of modules we obtain compact and computationally efficient data structures for data collections corresponding to union and deletion, repeated union, Cartesian product and key-indexed data. Free modules naturally give rise to polysets, which generalise multisets and facilitate expressing database queries as multilinear maps with asymptotically efficient evaluation on polyset constructors. We introduce compact maps as a way of representing infinite (poly)sets constructible from an infinite base set and its elements by addition and subtraction. We show how natural joins generalise to algebraic joins, while intersection is implemented by a novel algorithm on nested compact maps that carefully avoids visiting parts of the input that do not contribute to the eventual output. Our algebraic framework leads to a worst-case optimal evaluation of cyclic relational queries, which is known to be impossible using textbook query optimisers that operate on lists of records only.

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

↑