English

A Pivot Gray Code Listing for the Spanning Trees of the Fan Graph

Data Structures and Algorithms 2021-08-24 v1 Discrete Mathematics Combinatorics

Abstract

We use a greedy strategy to list the spanning trees of the fan graph, FnF_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)O(1)-amortized time using O(n)O(n) space. Additionally, we present O(n)O(n)-time algorithms for ranking and unranking the spanning trees for our listing; an improvement over the generic O(n3)O(n^3)-time algorithm for ranking and unranking spanning trees of an arbitrary graph.

Keywords

Cite

@article{arxiv.2108.09363,
  title  = {A Pivot Gray Code Listing for the Spanning Trees of the Fan Graph},
  author = {Ben Cameron and Aaron Grubb and Joe Sawada},
  journal= {arXiv preprint arXiv:2108.09363},
  year   = {2021}
}

Comments

Accepted for publication in International Computing and Combinatorics Conference (COCOON 2021)

R2 v1 2026-06-24T05:17:47.951Z