组合性的代价:一种高性能的字符串图组合实现
The Cost of Compositionality: A High-Performance Implementation of String Diagram Composition
摘要:
字符串图是一种越来越流行的代数语言,用于分析不同研究领域的图形计算模型。而字符串图已被彻底研究的语义结构,少得多的关注已给予他们的算法属性,和有效的实现图形推理几乎是一个未探索的主题。这项工作旨在为这一方向做出贡献。我们介绍了一种数据结构表示字符串图的邻接矩阵。这种编码的主要优点是为图的合成和张量积提供了简单有效的算法。我们证明了它的有效性,表明这两个操作的复杂性是线性的字符串图的大小。此外,由于我们的方法是基于基本的线性代数运算,我们可以利用高度优化的实现,我们使用它来衡量性能的字符串图形操作通过几个基准。
英文摘要:
String diagrams are an increasingly popular algebraic language for the analysis of graphical models of computations across different research fields. Whereas string diagrams have been thoroughly studied as semantic structures, much less attention has been given to their algorithmic properties, and efficient implementations of diagrammatic reasoning are almost an unexplored subject. This work intends to be a contribution in such a direction. We introduce a data structure representing string diagrams in terms of adjacency matrices. This encoding has the key advantage of providing simple and efficient algorithms for composition and tensor product of diagrams. We demonstrate its effectiveness by showing that the complexity of the two operations is linear in the size of string diagrams. Also, as our approach is based on basic linear algebraic operations, we can take advantage of heavily optimised implementations, which we use to measure performances of string diagrammatic operations via several benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。