arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2609.14826v1 [math.PR] 13 Sep 2026

Variance of random greedy independent sets in triangle-free graphs

Mubin Shaikh Affiliation: Independent Researcher Email: shaikhmubin572@gmail.com Affiliation: ORCID: 0009-0005-1290-7114
September 13, 2026
Abstract

Inspect the vertices of a finite simple graph in uniformly random order, accepting each vertex if none of its neighbors has previously been accepted. Let XGX_{G} be the number of accepted vertices. For every triangle-free graph with n≥2n\geq 2 vertices and ee edges, we prove

Var⁡(XG)≤e​(n−2n)2,\operatorname{Var}(X_{G})\leq e\left(\frac{n-2}{n}\right)^{2},

with equality precisely for edgeless graphs and connected stars. In particular, among trees of a given order, the star uniquely maximizes the variance, with value (n−1)​(n−2)2/n2(n-1)(n-2)^{2}/n^{2}. Known expected vertex-deletion stability already yields the elementary baseline Var⁡(XG)≤e\operatorname{Var}(X_{G})\leq e. We obtain the sharp finite-order refinement by combining a stronger centered first-choice estimate with a triangle-free edge-count identity in the law of total variance.

1 Introduction

Random-order greedy acceptance produces a maximal independent set, but generally not a maximum independent set. Its cardinality is random even when the underlying graph is fixed. Equivalently, assign independent uniform arrival times in [0,1][0,1] to the vertices and occupy a vertex on arrival if no neighbor is already occupied. This is terminal blocking random sequential adsorption, as studied by Penrose and Sudbury [6].

We consider the variance of the accepted cardinality. Throughout, graphs are finite, simple, and undirected; they need not be connected. Let XGX_{G} denote the accepted count, and write e⁡(G)=|E⁡(G)|e(G)=|E(G)|.

Theorem 1.

If GG is triangle-free and n=|V⁡(G)|≥2n=|V(G)|\geq 2, then

Var⁡(XG)≤e⁡(G)​(n−2n)2.\operatorname{Var}(X_{G})\leq e(G)\left(\frac{n-2}{n}\right)^{2}. (1)

Equality holds if and only if GG is edgeless or G≅K1,n−1G\cong K_{1,n-1}.

Corollary 2.

For every nonempty tree TT of order nn,

Var⁡(XT)≤(n−1)​(n−2)2n2,\operatorname{Var}(X_{T})\leq\frac{(n-1)(n-2)^{2}}{n^{2}},

with equality if and only if T≅K1,n−1T\cong K_{1,n-1}. The singleton is included as K1,0K_{1,0}.

Gamarnik and Goldberg [3, Theorem 6, equation (9)] give Var⁡(XG)≤C⁡(r)​n\operatorname{Var}(X_{G})\leq C(r)n under a maximum-degree bound r≥3r\geq 3, without a girth restriction. Penrose and Sudbury [6, Section 2.7, discussion following Theorem 7] also note a linear variance upper bound in the uniformly bounded-degree setting, alongside their correlation and normal-approximation results. Krivelevich, Mészáros, Michaeli, and Shikhelman [4, Theorem 1.2] prove concentration under subfactorial path growth and local convergence. Their Theorem 1.4 makes the path mean-minimal among trees, while Section 8 makes the star uniquely mean-maximal. Corollary 2 gives the variance analogue of the latter extremal statement; a bound on the mean alone does not control the variance. In terms of average degree d¯=2​e​(G)/n\bar{d}=2e(G)/n, (1) reads

Var⁡(XG/n)≤d¯2​n​(1−2n)2.\operatorname{Var}(X_{G}/n)\leq\frac{\bar{d}}{2n}\left(1-\frac{2}{n}\right)^{2}.

Our bound imposes no restriction on the maximum degree.

The degree-free baseline Var⁡(XG)≤e⁡(G)\operatorname{Var}(X_{G})\leq e(G) is already an elementary consequence of the expected deletion stability of Censor-Hillel, Haramaty, and Karnin [1], together with first-choice conditioning and a triangle-free edge count; we give this deduction in Proposition 6. Related dynamic-MIS and sensitivity methods appear in [2, 8]. Thus the point of Theorem 1 is the sharp finite-order coefficient and equality classification, not the existence of a linear-in-edge-count variance bound. The refinement uses a stronger centered first-choice estimate. We include a proof of the needed deletion-stability statement for self-containment.

Sudbury [7, Theorem 1] compares single-vertex occupation probabilities on regular and branching-random trees. For a uniformly random labelled tree, Panholzer [5, Theorem 4] obtains an exact accepted-count distribution, variance n/16+O⁡(1)n/16+O(1), and a central limit theorem. These are averaged over the random tree as well as the arrival order; they do not by themselves give a variance bound for every fixed tree.

2 Deletion stability and first-choice means

Write I⁡(G,π)I(G,\pi) for the independent set obtained from an order π\pi, and put

μ⁡(G)=𝔼​XG,v⁡(G)=Var⁡(XG),μ⁡(∅)=v⁡(∅)=0.\mu(G)=\mathbb{E}X_{G},\qquad v(G)=\operatorname{Var}(X_{G}),\qquad\mu(\varnothing)=v(\varnothing)=0.

When comparing induced subgraphs, use the restrictions of the same uniform permutation. Let NG​(x)N_{G}(x) and NG​[x]N_{G}[x] be the open and closed neighborhoods, and let dG​(x)=|NG​(x)|d_{G}(x)=|N_{G}(x)|. For a nonempty graph set

Ru=G−NG​[u],au​(G)=1+μ⁡(Ru),bu​(G)=μ⁡(G)−au​(G).R_{u}=G-N_{G}[u],\qquad a_{u}(G)=1+\mu(R_{u}),\qquad b_{u}(G)=\mu(G)-a_{u}(G).

Conditional on uu being first, the remaining accepted count has the law of XRuX_{R_{u}}. Therefore, with n=|V⁡(G)|n=|V(G)|,

μ⁡(G)=1n​∑uau​(G),∑ubu​(G)=0.\mu(G)=\frac{1}{n}\sum_{u}a_{u}(G),\qquad\sum_{u}b_{u}(G)=0. (2)

Define c0=c1=0c_{0}=c_{1}=0 and cn=(n−2)/nc_{n}=(n-2)/n for n≥2n\geq 2. Then 0≤cn≤10\leq c_{n}\leq 1, and cnc_{n} is strictly increasing for n≥2n\geq 2.

Lemma 3 (Deletion stability, [1, Theorem 1]).

For any graph GG and fixed vertex x∈V⁡(G)x\in V(G),

𝔼​|I⁡(G,π)​△​I​(G−x,π)|≤1.\mathbb{E}|I(G,\pi)\triangle I(G-x,\pi)|\leq 1. (3)

Consequently |μ⁡(G)−μ⁡(G−x)|≤1|\mu(G)-\mu(G-x)|\leq 1, and for subsets A,B⊆V⁡(G)A,B\subseteq V(G),

|μ⁡(G⁡[A])−μ⁡(G⁡[B])|≤|A​△​B|.|\mu(G[A])-\mu(G[B])|\leq|A\triangle B|. (4)
Proof.

Induct on n=|V⁡(G)|n=|V(G)|, the singleton case being immediate. Fix xx, write d=dG​(x)d=d_{G}(x), and condition on the first vertex uu. The remaining relative order is uniform.

If u∈NG​(x)u\in N_{G}(x), both runs accept uu and thereafter reduce to the same graph RuR_{u}, so their discrepancy is zero. If u∉NG​[x]u\notin N_{G}[x], both runs accept uu and the discrepancy equals that for deleting xx from RuR_{u}. Its conditional expectation is at most one by induction.

If u=xu=x, the full run gives {x}∪I⁡(Rx,π)\{x\}\cup I(R_{x},\pi), whereas the deleted run gives I⁡(G−x,π)I(G-x,\pi). Delete the dd neighbors of xx successively from G−xG-x, in any fixed order. The triangle inequality bounds the symmetric difference by one plus the sum of these dd deletion discrepancies. Each intermediate graph is smaller than GG and has a uniform restricted order, so the conditional expectation is at most 1+d1+d. Averaging gives

𝔼​|I⁡(G,π)​△​I​(G−x,π)|≤d⋅0+(n−d−1)⋅1+(d+1)n=1.\mathbb{E}|I(G,\pi)\triangle I(G-x,\pi)|\leq\frac{d\cdot 0+(n-d-1)\cdot 1+(d+1)}{n}=1.

The mean assertion follows by bounding cardinality difference by symmetric difference. Telescoping deletions from AA and BB to A∩BA\cap B proves (4). ∎

Deleting the open neighborhood NG​(x)N_{G}(x) leaves xx isolated. Hence, for every graph GG and vertex xx, (4) gives the elementary centered estimate

|bx​(G)|=|μ⁡(G)−μ⁡(G−NG​(x))|≤dG​(x),μ⁡(G−NG​(x))=1+μ⁡(Rx).|b_{x}(G)|=|\mu(G)-\mu(G-N_{G}(x))|\leq d_{G}(x),\qquad\mu(G-N_{G}(x))=1+\mu(R_{x}). (5)

The next lemma sharpens this estimate for triangle-free graphs.

Lemma 4 (Centered first-choice estimate).

For every triangle-free graph GG of order n≥2n\geq 2 and every x∈V⁡(G)x\in V(G),

|bx​(G)|≤cn​dG​(x).|b_{x}(G)|\leq c_{n}d_{G}(x). (6)

For a singleton, bx​(G)=0b_{x}(G)=0. Hence, for a uniform vertex uu,

Varu⁡(au​(G))=1n​∑ubu​(G)2≤cn2n​∑udG​(u)2.\operatorname{Var}_{u}(a_{u}(G))=\frac{1}{n}\sum_{u}b_{u}(G)^{2}\leq\frac{c_{n}^{2}}{n}\sum_{u}d_{G}(u)^{2}. (7)
Proof.

The singleton case is immediate; assume n≥2n\geq 2.

Fix xx, put d=dG​(x)d=d_{G}(x), and let U=V⁡(G)∖NG​[x]U=V(G)\setminus N_{G}[x]. We first establish

n​bx​(G)=∑u∈NG​(x)(μ⁡(Ru)−μ⁡(Rx))+∑u∈Ubx​(Ru).nb_{x}(G)=\sum_{u\in N_{G}(x)}\bigl(\mu(R_{u})-\mu(R_{x})\bigr)+\sum_{u\in U}b_{x}(R_{u}). (8)

For u∈Uu\in U, deleting the two closed neighborhoods commutes:

Ru−NRu​[x]=G−(NG​[u]∪NG​[x])=Rx−NRx​[u].R_{u}-N_{R_{u}}[x]=G-(N_{G}[u]\cup N_{G}[x])=R_{x}-N_{R_{x}}[u].

Thus μ⁡(Ru)=1+μ⁡(Rx−NRx​[u])+bx​(Ru)\mu(R_{u})=1+\mu(R_{x}-N_{R_{x}}[u])+b_{x}(R_{u}). Sum over u∈U=V⁡(Rx)u\in U=V(R_{x}) and apply (2) to RxR_{x} to obtain

∑u∈Uμ⁡(Ru)=|U|​μ​(Rx)+∑u∈Ubx​(Ru).\sum_{u\in U}\mu(R_{u})=|U|\mu(R_{x})+\sum_{u\in U}b_{x}(R_{u}).

When U=∅U=\varnothing both sides are zero. Substitution into n​μ​(G)=n+∑uμ⁡(Ru)n\mu(G)=n+\sum_{u}\mu(R_{u}) gives (8).

If uu is adjacent to xx, triangle-freeness gives NG​[u]∩NG​[x]={u,x}N_{G}[u]\cap N_{G}[x]=\{u,x\}. By (4),

|μ⁡(Ru)−μ⁡(Rx)|≤dG​(u)+d−2.|\mu(R_{u})-\mu(R_{x})|\leq d_{G}(u)+d-2.

For u∈Uu\in U, apply (5) to RuR_{u} to get |bx​(Ru)|≤dRu​(x)|b_{x}(R_{u})|\leq d_{R_{u}}(x). A count of ordered pairs (u,w)(u,w), where w∈NG​(x)w\in N_{G}(x) is removed by deleting NG​[u]N_{G}[u], gives

∑u∈UdRu​(x)=(n−d−1)​d−∑w∈NG​(x)(dG​(w)−1).\sum_{u\in U}d_{R_{u}}(x)=(n-d-1)d-\sum_{w\in N_{G}(x)}(d_{G}(w)-1). (9)

Indeed, for each such ww, every vertex of NG​(w)∖{x}N_{G}(w)\setminus\{x\} lies in UU, because there are no triangles. The count allows different common neighbors, so it does not exclude four-cycles.

Taking absolute values in (8) now gives

n​|bx​(G)|\displaystyle n|b_{x}(G)| ≤∑u∈NG​(x)(dG​(u)+d−2)+(n−d−1)​d−∑w∈NG​(x)(dG​(w)−1)\displaystyle\leq\sum_{u\in N_{G}(x)}(d_{G}(u)+d-2)+(n-d-1)d-\sum_{w\in N_{G}(x)}(d_{G}(w)-1)
=d⁡(n−2).\displaystyle=d(n-2).

This proves (6), also for n=2n=2 and for isolated xx. Equation (7) follows from (2). ∎

3 Variance and equality

Lemma 5 (Edge loss).

For a nonempty triangle-free graph GG of order nn,

1n​∑ue⁡(Ru)+1n​∑udG​(u)2=e⁡(G).\frac{1}{n}\sum_{u}e(R_{u})+\frac{1}{n}\sum_{u}d_{G}(u)^{2}=e(G). (10)
Proof.

Every edge removed by deleting NG​[u]N_{G}[u] is incident to a neighbor of uu. No edge joins two such neighbors, so

e⁡(G)−e⁡(Ru)=∑w∈NG​(u)dG​(w).e(G)-e(R_{u})=\sum_{w\in N_{G}(u)}d_{G}(w).

Summing over uu proves (10). ∎

Proposition 6 (Elementary edge-count bound).

For every finite triangle-free graph GG, v⁡(G)≤e⁡(G)v(G)\leq e(G).

Proof.

Induct on the order, with v⁡(∅)=e⁡(∅)=0v(\varnothing)=e(\varnothing)=0. For a nonempty graph, condition on its first vertex. Using induction on the smaller residual graphs, (5), and Lemma 5,

v⁡(G)=1n​∑uv⁡(Ru)+1n​∑ubu​(G)2≤1n​∑ue⁡(Ru)+1n​∑udG​(u)2=e⁡(G).v(G)=\frac{1}{n}\sum_{u}v(R_{u})+\frac{1}{n}\sum_{u}b_{u}(G)^{2}\leq\frac{1}{n}\sum_{u}e(R_{u})+\frac{1}{n}\sum_{u}d_{G}(u)^{2}=e(G).

This argument uses the known deletion estimate, not Lemma 4 or Theorem 1. ∎

Proof of Theorem 1.

We first prove the bound by induction on the order over all triangle-free graphs. Counts are deterministic for orders zero, one, and two. For n≥3n\geq 3, the law of total variance, conditional on the first vertex, gives

v⁡(G)=1n​∑uv⁡(Ru)+1n​∑ubu​(G)2.v(G)=\frac{1}{n}\sum_{u}v(R_{u})+\frac{1}{n}\sum_{u}b_{u}(G)^{2}. (11)

The first term is the expected conditional variance; the second is the variance of the conditional mean. With su=|V⁡(Ru)|<ns_{u}=|V(R_{u})|<n, induction and monotonicity give v⁡(Ru)≤csu2​e​(Ru)≤cn2​e​(Ru)v(R_{u})\leq c_{s_{u}}^{2}e(R_{u})\leq c_{n}^{2}e(R_{u}), including empty residual graphs. Applying (7) and (10) to (11) yields

v⁡(G)≤cn2n​(∑ue⁡(Ru)+∑udG​(u)2)=cn2​e​(G).v(G)\leq\frac{c_{n}^{2}}{n}\left(\sum_{u}e(R_{u})+\sum_{u}d_{G}(u)^{2}\right)=c_{n}^{2}e(G).

For equality, edgeless graphs attain the zero bound. If e⁡(G)>0e(G)>0 and n=2n=2, then G=K1,1G=K_{1,1}. Suppose n≥3n\geq 3. If some RuR_{u} has an edge, then 2≤su<n2\leq s_{u}<n and csu<cnc_{s_{u}}<c_{n}, making the corresponding induction estimate strict. Thus equality requires every RuR_{u} to be edgeless.

Choose an edge x​yxy. Every other vertex must be adjacent to at least one of x,yx,y, since otherwise x​yxy survives in its residual graph; triangle-freeness prevents adjacency to both. Therefore A=NG​(y)A=N_{G}(y) and B=NG​(x)B=N_{G}(x) partition V⁡(G)V(G) into independent sets, with x∈Ax\in A and y∈By\in B. If z∈A∖{x}z\in A\setminus\{x\} and w∈Bw\in B were nonadjacent, then the edge x​wxw would survive in RzR_{z}, a contradiction. Hence G=Ka,bG=K_{a,b} for positive integers a=|A|a=|A|, b=|B|b=|B|.

The first vertex of Ka,bK_{a,b} determines the accepted part. Its count is aa with probability a/(a+b)a/(a+b) and bb with probability b/(a+b)b/(a+b), so

v⁡(Ka,b)=a​b​(a−b)2(a+b)2,e⁡(Ka,b)=a​b.v(K_{a,b})=\frac{ab(a-b)^{2}}{(a+b)^{2}},\qquad e(K_{a,b})=ab.

As a+b=na+b=n, equality in (1) is equivalent to |a−b|=n−2|a-b|=n-2, or min⁡(a,b)=1\min(a,b)=1. These are exactly the connected stars, and the same computation proves that they attain equality. ∎

Proof of Corollary 2.

A tree of order n≥2n\geq 2 is triangle-free and has n−1n-1 edges, so apply Theorem 1. For n=1n=1, the count is identically one and the bound is zero. ∎

4 Scope of the bound

Theorem 1 is sharp uniformly and gives the exact maximum over trees of each order. It does not give an attained maximum for every prescribed pair (n,e)(n,e). Nor does it assert a central limit theorem.

Relative to Proposition 6, the finite-order improvement is 4​e​(G)​(n−1)/n24e(G)(n-1)/n^{2}. For a tree it is

(n−1)−(n−1)​(n−2)2n2=4​(1−1n)2,(n-1)-\frac{(n-1)(n-2)^{2}}{n^{2}}=4\left(1-\frac{1}{n}\right)^{2},

which tends to four. The coefficient one in the baseline cannot be decreased uniformly in nn: the explicit star law gives v⁡(K1,n−1)/e⁡(K1,n−1)=(1−2/n)2→1v(K_{1,n-1})/e(K_{1,n-1})=(1-2/n)^{2}\to 1. The refinement supplies the exact finite-order tree maximum and its equality cases.

Triangle-freeness is used in both (9) and (10). If τ⁡(G)\tau(G) is the number of triangles in an arbitrary graph, the latter identity becomes

1n​∑ue⁡(Ru)+1n​∑udG​(u)2=e⁡(G)+3​τ​(G)n.\frac{1}{n}\sum_{u}e(R_{u})+\frac{1}{n}\sum_{u}d_{G}(u)^{2}=e(G)+\frac{3\tau(G)}{n}.

Indeed, the removed-edge count is ∑w∈NG​(u)dG​(w)−e⁡(G⁡[NG​(u)])\sum_{w\in N_{G}(u)}d_{G}(w)-e(G[N_{G}(u)]), and ∑ue⁡(G⁡[NG​(u)])=3​τ​(G)\sum_{u}e(G[N_{G}(u)])=3\tau(G). The argument above does not settle whether (1) continues to hold when triangles are present.

References

  • [1] K. Censor-Hillel, E. Haramaty, and Z. Karnin, Optimal dynamic distributed MIS, Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing (PODC), 2016, 217–226. doi:10.1145/2933057.2933083. arXiv:1507.04330.
  • [2] S. Chechik and T. Zhang, Fully dynamic maximal independent set in expected poly-log update time, Proceedings of the 60th IEEE Symposium on Foundations of Computer Science (FOCS), 2019, 370–381. doi:10.1109/FOCS.2019.00031. arXiv:1909.03445.
  • [3] D. Gamarnik and D. A. Goldberg, Randomized greedy algorithms for independent sets and matchings in regular graphs: Exact results and finite girth corrections, Combinatorics, Probability and Computing 19 (2010), 61–85. doi:10.1017/S0963548309990186.
  • [4] M. Krivelevich, T. Mészáros, P. Michaeli, and C. Shikhelman, Greedy maximal independent sets via local limits, Random Structures & Algorithms 64 (2024), 986–1015. doi:10.1002/rsa.21200.
  • [5] A. Panholzer, A combinatorial approach for discrete car parking on random labelled trees, Journal of Combinatorial Theory, Series A 173 (2020), 105233. doi:10.1016/j.jcta.2020.105233.
  • [6] M. D. Penrose and A. Sudbury, Exact and approximate results for deposition and annihilation processes on graphs, The Annals of Applied Probability 15 (2005), 853–889. doi:10.1214/105051604000000765.
  • [7] A. Sudbury, Random sequential adsorption on random trees, Journal of Statistical Physics 136 (2009), 51–58. doi:10.1007/s10955-009-9776-3.
  • [8] N. Varma and Y. Yoshida, Average sensitivity of graph algorithms, SIAM Journal on Computing 52 (2023), 1039–1081. doi:10.1137/21M1399592.