Lune

SODA2026顶会

Generating pivot Gray codes for spanning trees of complete graphs in constant amortized time

Bowie Liu, Dennis Wong, Chan-Tong Lam, Sio-Kei Im

摘要

We present the first known pivot Gray code for spanning trees of complete graphs, listing all spanning trees such that consecutive trees differ by pivoting a single edge around a vertex. This pivot Gray code thus addresses an open problem posed by Knuth in The Art of Computer Programming, Volume 4 (Exercise 101, Section 7.2.1.6, [Knuth 2011]), rated at a difficulty level of 46 out of 50, and imposes stricter conditions than existing revolving-door or edge-exchange Gray codes for spanning trees of complete graphs. Our recursive algorithm generates each spanning tree in constant amortized time using O(n2)O(n^2) space. In addition, we provide a novel proof of Cayley’s formula, nn−2n^{n-2}, for the number of spanning trees in a complete graph, derived from our recursive approach. We extend the algorithm to generate edge-exchange Gray codes for general graphs with nn vertices, achieving O(n2)O(n^2) time per tree using O(n2)O(n^2) space. For specific graph classes, the algorithm can be optimized to generate edge-exchange Gray codes for spanning trees in constant amortized time per tree for complete bipartite graphs, O(n)O(n)-amortized time per tree for fan graphs, and O(n)O(n)-amortized time per tree for wheel graphs, all using O(n2)O(n^2) space.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper1

  1. Traversing combinatorial 0/1-polytopes via optimizationArturo Merino, Torsten MützeFOCS 2023 · 2 次引用

相关 Paper

  1. Efficient generation of elimination trees and graph associahedraJean Cardinal, Arturo Merino, Torsten MützeSODA 2022 · 9 次引用
  2. Combinatorial generation via permutation languagesElizabeth J. Hartung, Hung Phuc Hoang, Torsten Mütze, Aaron WilliamsSODA 2020 · 22 次引用
  3. Zigzagging through acyclic orientations of chordal graphs and hypergraphsJean Cardinal, Hung Phuc Hoang, Arturo Merino, Torsten MützeSODA 2023 · 3 次引用
  4. Faster (Δ+1)-Edge Coloring: Breaking the m√n Time BarrierSayan Bhattacharya, Din Carmon, Martín Costa, Shay Solomon 等FOCS 2024 · 5 次引用
  5. More Than Pivot for Maximal Clique EnumerationZhaoyi Zhong, Rui Zhou, Lu Chen, Xiaofan Li 等ICDE 2026
黄昏的海面,两侧是细线勾勒的悬崖