一个快速计算最小生成树的图形程序
A Fast Graph Program for Computing Minimum Spanning Trees
摘要:
当使用图转换规则来实现图算法时,挑战是匹配传统语言中的程序的效率。为了帮助克服这一挑战,图形程序设计语言GP 2的特点是根规则,在温和的条件下,可以在恒定的时间内匹配有界度图。本文提出了一个计算最小生成树的GP2程序.我们提供经验的性能结果作为证据的程序的次二次复杂度有界度图。这是使用深度优先搜索以及有根图变换来实现的。该程序基于Boruvka的最小生成树算法。我们的性能结果表明,该计划的时间复杂度是一致的经典实现的Boruvka的算法,即O(m log n),其中m是边缘的数量和n的节点数。
英文摘要:
When using graph transformation rules to implement graph algorithms, a challenge is to match the efficiency of programs in conventional languages. To help overcome that challenge, the graph programming language GP 2 features rooted rules which, under mild conditions, can match in constant time on bounded degree graphs. In this paper, we present an efficient GP 2 program for computing minimum spanning trees. We provide empirical performance results as evidence for the program's subquadratic complexity on bounded degree graphs. This is achieved using depth-first search as well as rooted graph transformation. The program is based on Boruvka's algorithm for minimum spanning trees. Our performance results show that the program's time complexity is consistent with that of classical implementations of Boruvka's algorithm, namely O(m log n), where m is the number of edges and n the number of nodes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。