计算机科学 > 数据结构与算法
[提交于 2021年8月20日]
标题:A Pivot Gray Code Listing for the Spanning Trees of the Fan Graph
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We use a greedy strategy to list the spanning trees of the fan graph, $F_n$, such that successive trees differ by pivoting a single edge around a vertex. It is the first greedy algorithm for exhaustively generating spanning trees using such a minimal change operation. The resulting listing is then studied to find a recursive algorithm that produces the same listing in $O(1)$-amortized time using $O(n)$ space. Additionally, we present $O(n)$-time algorithms for ranking and unranking the spanning trees for our listing; an improvement over the generic $O(n^3)$-time algorithm for ranking and unranking spanning trees of an arbitrary graph.
提交历史
来自:Ben Cameron[v1] 2021年8月20日 星期五 20:45:51 UTC