Skip to content
Preprint

Space-Efficient Hierholzer for Undirected Graphs

Aug 2026 · 0 citations · 8 references
Computer Science

Abstract

We present a simple linear-time algorithm that outputs an Eulerian tour of an undirected multigraph with $n$ vertices and $m$ edges, if one exists, in $O(m)$ time and using $O(n)$ words of working memory. The input is given as read-only adjacency lists, and the output is written to an append-only stream in traversal order. Our algorithm first finds a sparse spanning circuit (a skeleton), then traverses the circuit step-by-step, repeatedly outputting further circuits rooted at the current vertex. This solves a problem left open by Ismaili Alaoui, Plump, and Wild (SOSA 2026): their space-efficient variant of Hierholzer's algorithm handles general directed multigraphs, but it is unclear how to generalize it to general undirected multigraphs. Our result completes the picture in the read-only model for space-efficient output of Eulerian tours.

View source

Similar papers

Preprint Aug 2026

Instance-Optimality of Bidirectional Dijkstra on Simple Graphs

It is shown that bidirectional Dijkstra is still instance-optimal on simple undirected weighted graphs under the order-oblivious model, where incident edges are given in a random order, and under the order-dependent model, where bidirectional Dijkstra is not instance-optimal.

Christian Bertram, Mads Vestergaard Jensen, Mikkel Thorup et al. · 0 citations
Preprint Aug 2026

The Cayley Completion of a Graph

A finite connected graph is rarely a Cayley graph. We measure how far it is from being one: given $G$ with $n$ vertices and $m$ edges, how few edges must be added, or added and deleted, before the result is a Cayley graph of an abelian group of order $n$ on the same vertex set? This defines two invariants, the completion number $\gamma^{+}$ (additions only) and the Cayley edit distance $\gamma_{\triangle}$ (both), each normalized by $m$. We show that deciding the edit version is NP-complete already for a fixed cyclic host, by a reduction from Hamiltonian Cycle in which the edit cost of a labeling is $n+m-2k$ when it realizes a longest path with $k$ edges; the optimal cost is $m-n+2pp(G)$, bounded in polynomial time by the matching number. We prove that irregularity alone forces $\gamma^{+}(G)\ge n\Delta^{*}/(2m)-1$, where $\Delta^{*}$ is the least $d\ge\Delta$ with $nd$ even, computable in linear time from the degree sequence; we characterize equality exactly. It is attained on the star, where $\gamma^{+}(K_{1,q})=(q-1)/2$ and the star maximizes $\gamma^{+}$, while $\gamma_{\triangle}$ stays bounded by an absolute constant. We determine paths and grids exactly, $\gamma^{+}(P_n)=\gamma^{+}(P_n\,\square\,P_n)=1/(n-1)$, and show $\gamma_{\triangle}(K_{1,q})\to 2$, not the $3/2$ suggested by the additive case. We report an exhaustive certified census of all $995$ connected graphs on at most seven vertices. The degree bound is attained on $89.4\%$ and the two invariants separate strictly on $84.7\%$, though both rates vary sharply with order: attainment $100\%,100\%,84.8\%,89.7\%$ and separation $0\%,61.9\%,73.2\%,87.7\%$ for $n=4,5,6,7$, dominated by the $853$ graphs on seven vertices. The star uniquely maximizes both. Edit count and the bi-Lipschitz distortion of the completed host are independent, moving oppositely on stars and paths.Data and certificates at doi:10.5281/zenodo.21852006.

Rigobert Fokam Souop, Laurent Bitjoka · 2 citations · ⚡2
Preprint Aug 2026

Minimal-to-Maximal Conversion Search Is Not Output-Polynomial

It is proved that Minimal-to-Maximal Conversion Search is in fact not output-polynomial and the lower bound construction motivates a more detailed analysis of how certain heuristic choices in the algorithm design affect the running time.

Bennet Hörmann, Martin Schirneck · 0 citations
Preprint Aug 2026

A Linear-Time Approximation Scheme for the Densest Subgraph Problem

This paper provides the first truly linear-time approximation scheme for the Densest Subgraph Problem, and uses assignments arising from a flow-based formulation together with a structural carving lemma to progressively carve "sparse" parts of the graph while nearly preserving the densest subgraph.

Elena Grigorescu, Mehrshad Taziki · 0 citations
Open access Aug 2026

A novel approach for constructing a minimum spanning tree

It is proved that the classical cut property always produces a minimum spanning tree of a connected graph, and may be useful for large weighted networks such as communication networks, wiring connections, and transportation networks.

H. Bhapkar, Rezwan Ul Shaban, S. Mir et al. · 0 citations
Preprint Jul 2026

$\tilde{O}$ptimal Algorithm for 2-Approximate All Pair Shortest Paths -- almost

Given an undirected, unweighted graph $G$, we aim to compute a 2-approximation of all-pairs shortest paths (APSP). This problem admits a natural lower bound of $\Omega(n^2)$ since the output size is $\Theta(n^2)$. A central goal in this area is to achieve a running time of $O(n^2)$. Dor, Halperin, and Zwick (FOCS 1996, SICOMP 2001) designed an algorithm with a running time of $\tilde{O}(n^2)$ that guarantees a 2-approximation only for pairs at a distance of at least $O(\log n)$. Recently, Gupta (FOCS 2025) improved this bound, handling all pairs at a distance of at least $O(\log \log n)$. We nearly resolve this problem. We design a randomized algorithm that runs in $\tilde{O}(n^2)$ time and, with high probability, guarantees a 2-approximation for all pairs at distance at least $c$, where $c \ge 0$ is a constant. Unlike the above two results, which were purely combinatorial, our algorithm combines combinatorial techniques with fast matrix multiplication (FMM).

Manoj Gupta, Mrigankashekhar Shandilya · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.