arXiv:2610.09972cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.09972

A deterministic algorithm for signing bipartite graphs at the Ramanujan bound

Zhiqiang Xu

ZHIQIANG XU

ABSTRACT. We give a deterministic polynomial-time algorithm for the Bilu–Linial signing problem on bipartite graphs. For every finite simple bipartite graph of maximum degree at most an integer Δ≥3\Delta \geq 3, the algorithm assigns signs to its edges so that the signed adjacency matrix has operator norm strictly less than 2Δ−12\sqrt{\Delta - 1}. Our algorithm builds on the randomized recursive repair framework of Jadbabaie, Saberi, and Sra [3], with deterministic rules for sign selection and vertex deletion.

1. INTRODUCTION

1.1. The signing problem. All graphs in this paper are finite, undirected, and simple unless explicitly stated otherwise. For a graph G=(V,E)G = (V, E), where VV is its vertex set and EE its edge set, a signing is a map σ:E→{−1,1}\sigma: E \to \{-1, 1\}. The associated signed adjacency matrix Aσ\mathbf{A}_\sigma is indexed by VV and has entries

(Aσ)uv={σ({u,v}),{u,v}∈E,0,{u,v}∉E.(\mathbf{A}_{\sigma})_{u v}=\begin{cases}\sigma(\{u,v\}),&\{u,v\}\in E,\\ 0,&\{u,v\}\notin E.\end{cases}

We write ∥⋅∥\|\cdot\| for the operator norm induced by the Euclidean norm. For a real symmetric matrix, this is the largest absolute value of an eigenvalue. Matrices and vectors are denoted by bold letters; their indices and scalar coordinates are not bold. The superscript ⊤\top denotes transpose.

Bilu and Linial [1] connected graph signings with 2-lifts. A 2-lift replaces each vertex by two copies. A positive edge joins corresponding copies of its endpoints, and a negative edge joins opposite copies. The lift's eigenvalues consist, with multiplicity, of those of the original adjacency matrix and those of Aσ\mathbf{A}_{\sigma} [1, Lemma 3.1]. Thus choosing the edge signs controls the new eigenvalues of the lift.

Marcus, Spielman, and Srivastava used interlacing families to prove that every nonempty graph admits a signing whose largest eigenvalue is at most the largest root of its matching polynomial; see the proof of [4, Theorem 5.3]. Combined with the Heilmann–Lieb bound recalled in [4, Theorem 3.2], this gives an upper bound 2Δ−12\sqrt{\Delta - 1} when the maximum degree is at most an integer Δ≥3\Delta \geq 3. Graphs of maximum degree at most one satisfy this bound directly. For bipartite graphs, the signed spectrum is symmetric about zero, so the same signing satisfies the corresponding operator-norm bound. This raises the following computational question.

Question 1.1. Given a finite simple bipartite graph of maximum degree at most an integer Δ≥3\Delta \geq 3, can one find in deterministic polynomial time an edge signing whose signed adjacency matrix has operator norm at most 2Δ−12\sqrt{\Delta - 1}?

Zhiqiang Xu is supported by National Natural Science Foundation of China (Grant No. 12471361, 12288201).

ZHIQIANG XU

1.2. Main result. We answer Question 1.1 affirmatively. The algorithm works on the prescribed graph and attains a strict spectral inequality. The procedure maintains a signing on the subgraph induced by a temporary active vertex set. Insertions and deletions change only this set and its signing; the input graph remains fixed. Running time is measured in bit operations, with integers represented in binary.

Theorem 1.2. Let Δ≥3\Delta \geq 3 be an integer, and let G=(V,E)G = (V, E) be a finite simple bipartite graph with V={1,…,n}V = \{1, \ldots, n\}, n≥2n \geq 2, and maximum degree at most Δ\Delta. Algorithms 1 give a deterministic procedure that returns a signing σ:E→{−1,1}\sigma: E \to \{-1, 1\} satisfying

∥Aσ∥<2Δ−1.(1.1)\left\|\mathbf{A}_{\sigma}\right\|<2\sqrt{\Delta-1}. \tag{1.1}

The procedure makes fewer than 130n3130n^{3} vertex insertions and deletions in its temporary active set. It admits an exact rational implementation using

O(n10(log⁡(n+1)+log⁡(Δ+1))2)O\Big(n^{10}(\log(n+1)+\log(\Delta+1))^{2}\Big)

bit operations. The input consists of Δ\Delta in binary and either an explicit vertex list and edge list or an adjacency matrix.

No regularity or connectedness assumption is needed. If n≤1n \leq 1, the empty signing gives the conclusion immediately. The exponent in the bit bound comes from a direct implementation that recomputes the required matrix data; no optimality is claimed for that exponent.

For nonbipartite graphs, a signing satisfying the bound 2Δ−12\sqrt{\Delta-1} need not exist. Xu [5] constructed a finite connected simple 3-regular graph whose signed adjacency matrix has operator norm greater than 222\sqrt{2} for every edge signing. This obstruction motivates our focus on the signing problem for prescribed bipartite graphs.

1.3. Related algorithms and the proof strategy. Cohen [2] gives a deterministic algorithm that, given an even integer n≥2n \geq 2 and an integer Δ≥3\Delta \geq 3, constructs a Δ\Delta-regular bipartite Ramanujan multigraph on nn vertices in time polynomial in nn and Δ\Delta. The Ramanujan property means that all adjacency eigenvalues, apart from the two trivial eigenvalues ±Δ\pm \Delta, lie in [−2Δ−1,2Δ−1][-2\sqrt{\Delta - 1}, 2\sqrt{\Delta - 1}]. His construction selects Δ\Delta perfect matchings between two vertex classes of size n/2n/2 and takes their union, counting repeated edges with multiplicity. The choices are guided by conditional expected characteristic polynomials, which he computes efficiently within an interlacing family.

Our algorithm addresses a different input problem. It receives a prescribed simple bipartite graph G=(V,E)G = (V, E) of maximum degree at most Δ\Delta, with no regularity assumption, and assigns a sign to each edge in EE. The vertex set VV and edge set EE remain fixed, and the resulting signed adjacency matrix satisfies ∥Aσ∥<2Δ−1\|\mathbf{A}_\sigma\| < 2\sqrt{\Delta - 1}, with no eigenvalues excluded from the bound. Thus Cohen's algorithm constructs the graph itself, whereas ours finds a signing of a given graph; his construction does not supply an algorithm for this prescribed-graph signing problem.

Jadbabaie, Saberi, and Sra [3, Theorem 6.1] give a Las Vegas algorithm for a prescribed graph. On bipartite inputs with nn vertices, it terminates almost surely and returns a signing satisfying (1.1), with fewer than 100n3100n^{3} insertion attempts in expectation, an exponential tail bound, and expected polynomial bit complexity. It proposes random incident signs, accepts insertions using determinant ratios, and repairs rejections by randomly deleting and recursively restoring a neighbor [3, Sections 6.2 and 6.6]. They suggest conditional expectations as a possible derandomization route without developing it [3, Section 7].

Our algorithm builds on their recursive repair framework and local determinant identities. The depth weights adapt the finite recurrence used to count their repair histories [3, Section 6.5]. We replace random rejection and deletion by a deterministic deletion threshold, and random sign proposals by a greedy rule. A potential that includes both the current determinant and unfinished calls then gives a worst-case bound for the entire computation.

The underlying mechanism is as follows. We maintain a signing on an induced subgraph and keep a matrix encoding the spectral bound positive definite. Before adding a vertex, we check its active neighbors. A neighbor with a large inverse diagonal entry can be deleted at a sufficiently large determinant gain and then restored recursively. If no neighbor meets this threshold, the greedy rule guarantees an admissible insertion. The input graph is never changed; these operations revise only the temporary active signing.

1.4. Organization. Section 2 defines the state and states the local estimates, including the precise cost of the matrix computations. Section 3 gives the algorithm and proves the main theorem using those estimates. Section 4 supplies their proofs. All matrix identities and complexity bounds needed for the construction are proved here; no signing-existence theorem is used as an oracle.