Introduction
The diameter of a metric space, defined as the maximum distance between two points, is a fundamental quantity. It has been a source of rich theoretical results, and has been studied both qualitatively and computationally for many metric spaces of interest to computer science: polytopes in R d \mathbb{R}^{d} R d [13], weighted and unweighted graphs [7 , 50 ] , flip/exchange graphs of various combinatorial and geometric objects: binary trees [54 ] , spanning trees [4 , 16 , 22 , 51 ] , matchings [52 , 57 ] and Hamiltonian cycles [40 ] , triangulations of point sets [25 , 48 ] , and solutions to CNF formulae [6 , 17 , 26 ] .
A related measure called dispersion , or diversity , generalizes diameter: given k ≥ 2 k \ge2 k ≥ 2 , we can consider k k k points in the metric space that maximize the minimum pairwise distance between them. For k = 2 k = 2 k = 2 this distance is the diameter. Owing to several applications, computing diverse solutions to optimization problems has also generated substantial recent interest [8 , 9 , 29 , 36 , 37 ] . Here the metric space of interest is the space of all ‘solutions’ to some optimization problem1 , and one wants algorithms that return k k k most-diverse solutions in this space. The classical theory of error-correcting codes can also be viewed as studying k k k most-diverse codewords (albeit with some structure) in the Hamming space { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n ; we elaborate more on this connection later on.
We will focus on matroids . A matroid M = ( E , I ) M = (E, \mathcal{I}) M = ( E , I ) is a tuple comprised of a finite ground set E E E and a down-closed family of subsets I ⊆ 2 E \mathcal{I} \subseteq2^{E} I ⊆ 2 E called independent sets satisfying the augmentation axiom.2 The maximal independent sets in M M M are called bases . We will denote n : = ∣ E ∣ n := |E| n := ∣ E ∣ .
Our metric space of interest is the basis-exchange graph G ( M ) \mathcal{G}(M) G ( M ) of M M M . Its vertices are the bases of a matroid and its edges correspond to single-element exchanges. In this graph, the distance between two bases B B B and B ′ B' B ′ is d ( B , B ′ ) = ∣ B ∖ B ′ ∣ = ∣ B ′ ∖ B ∣ d(B, B') = |B \setminus B'| = |B' \setminus B| d ( B , B ′ ) = ∣ B ∖ B ′ ∣ = ∣ B ′ ∖ B ∣ . We remark that if the size of the ground set E E E of the matroid M M M is n n n , typically the size of G ( M ) \mathcal{G}(M) G ( M ) could be exponential in n n n . We also study the special case of graphic matroids , where the input is a graph G G G , and we consider the diameter and diversity of the single-element exchange graph whose vertices correspond to spanning trees of G G G . If G G G is weighted, then the family of minimum-weight bases of the associated graphic matroid is the set of bases of another matroid. Consequently, all our results apply to the family of minimum spanning trees of a weighted graph.
Given a matroid M M M , computing the diameter of G ( M ) \mathcal{G}(M) G ( M ) is exactly a matroid intersection problem between M M M and its dual M ∗ M^{*} M ∗ [45 ] . This gives an easy polynomial-time algorithm to compute the diameter [35 , 51 ] . However, arguably the simplest thing one could do is to sample two bases of a matroid uniformly at random . The fundamental work of [2 ] shows how to sample a basis from a distribution (arbitrarily) close to uniform in polynomial time, and borrowing the analogy from coding theory, where random codes exhibit good rate-distance tradeoffs, perhaps just sampling two bases provides an approximation to the diameter . This is the first question we consider.
Question 1. How far are two random bases of a matroid?
In other words, what structure must a metric space possess, for the distance between two uniformly-random points in it to approximate its diameter? Clearly this cannot hold for the metric space consisting of n − 1 n - 1 n − 1 points in a small cluster and one point far away, or a clique with a chain attached to it; random sampling will sample in the cluster/clique whp. What about convex bodies in R n \mathbb{R}^{n} R n ? In [13 ] it was shown that while there is a PTAS for approximating the volume of a convex body using random sampling [21 ] , any reasonable approximation of the Euclidean diameter must require exponentially (in n n n ) many samples. In fact, this lower bound can also be shown to apply to approximating the combinatorial diameter (the distance on the edges) of a polytope. Does G ( M ) \mathcal{G}(M) G ( M ) , whose vertices can be identified with the vertices of the matroid polytope in R n \mathbb{R}^{n} R n , behave more like the convex bodies in [13 ] and their combinatorial counterparts, or like the Hamming cube?
Next, we consider the diversity problem: we want k ≥ 3 k \ge3 k ≥ 3 “most-diverse” bases in G ( M ) \mathcal{G}(M) G ( M ) , i.e., k k k bases that maximize the minimum pairwise distance between them.3 A classical result by Edmonds [22 ] characterizes which matroids achieve the best possible diversity of rank ( M ) \operatorname{rank}(M) rank ( M ) (i.e., disjoint bases, since rank ( M ) \operatorname{rank}(M) rank ( M ) is the size of a base), and polynomial time algorithms to find k k k -disjoint bases (if they exist) are known [51 ] . What if the matroid does not admit k k k disjoint bases, but we want to find the k k k most-diverse bases in G ( M ) \mathcal{G}(M) G ( M ) ?
Foundational work on finding the k k k most-diverse bases of a matroid was conducted by Fomin et al. [29 ] who gave a 2 O ( d k 2 log ( k ⋅ d ) ) poly ( n ) 2^{O(dk^{2}\log(k\cdot d))}\operatorname{poly}(n) 2 O ( d k 2 l o g ( k ⋅ d )) poly ( n ) exact algorithm: here d d d is the optimal distance between the k k k most-diverse bases. They also prove that the (decision) version of deciding if there exist k k k bases with distance at least d d d is NP-Hard, but only when k k k is given in binary; therefore, this does not rule out polynomial time algorithms that return the k k k most-diverse bases in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) . Recently, Golovach, Majumdar and Saurabh [32 ] consider FPT algorithms for the diverse-bases problem restricted to graphic matroids, and under additional parameters on the number of leaves and internal nodes of the spanning trees. As mentioned, our focus is on polynomial time approximation algorithms.
Another line of work studies k k k bases maximizing the average distance (as opposed to the minimum distance): this is generally considered an easier problem, and polynomial time approximation algorithms are known [30 , 35 ] . However, it has been observed that the solutions for this version may be clustered and therefore not diverse in the true sense: one may return the union of two clusters of size k / 2 k/2 k /2 each centered at the two diameter points and obtain an approximation [8 ] .
In this work, we will be concerned with the max-min version of returning the k k k most-diverse bases of a matroid. Unlike the diameter (k = 2 k = 2 k = 2 ), the tractability of this problem when k ≥ 3 k \ge3 k ≥ 3 is given as part of the input is famously open [12 , 29 , 30 , 37 ] - no hardness result, or even a polynomial-time O ( 1 ) O(1) O ( 1 ) -factor approximation algorithm, is known. This brings us to our second question.
Question 2. Is there a poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) -time (approximation) algorithm for finding k ≥ 3 k \ge3 k ≥ 3 diverse bases of a matroid, or finding k ≥ 3 k \ge3 k ≥ 3 Diverse Spanning Trees of a graph?
While NP-completeness of the max-min variant (when k k k is given in unary) is still open, the following observation hints at the difficulty of computing the exact solution: for partition matroids whose parts encode alphabet positions, the problem of finding the k k k most-diverse bases is closely related to the open problem in coding theory of computing the maximum number of binary codewords with pairwise distance at least d d d [44 ] . Therefore, we will focus on polynomial time approximation algorithms for returning k k k most-diverse bases.
Notation and Algorithmic Perspectives. Before we describe our results, we introduce some notation used throughout: M M M is the given matroid, G ( M ) \mathcal{G}(M) G ( M ) denotes its basis exchange graph on M M M , n n n denotes the number of elements of the matroid, B ( M ) \mathcal{B}(M) B ( M ) is the collection of all bases of M M M , U ( ⋅ ) U(\cdot) U ( ⋅ ) denotes the uniform distribution, diam 2 ( M ) \operatorname{diam}_{2}(M) diam 2 ( M ) is the diameter of G ( M ) \mathcal{G}(M) G ( M ) , and diam k ( M ) \operatorname{diam}_{k}(M) diam k ( M ) is the minimum of the ( k 2 ) \binom{k}{2} ( 2 k ) pairwise distances between the k k k most-diverse bases of M M M , also referred to as the k k k -diversity.
We remark that our algorithms assume only independence-oracle access to the underlying matroid: given a set S ⊆ E S \subseteq E S ⊆ E , the oracle decides whether S S S is independent in time poly ( n ) \operatorname{poly}(n) poly ( n ) .
Our Contributions
Our contributions are summarized in Table 1.1 .
Table 1.1. Summary of our approximation guarantees for diameter, farthest matroid basis (FMB), and Diverse Matroid Bases (DMB). All results are randomized and the results that depend on δ \delta δ succeed with probability at least 1 − δ 1-\delta 1 − δ . The column reference+proof indicates the precise statement referenced plus the section where the reader can find its proof.
Uniform Sampling. Our first result answers Question 1 with a structural result: we prove that, for every matroid, the distance between two random bases is a constant fraction of the matroid’s diameter in expectation.
Theorem 1.1. For every matroid M M M , we have
E B 1 , B 2 ∼ U ( B ( M ) ) [ d ( B 1 , B 2 ) ] ≥ 1 16 diam 2 ( M ) . \mathbb{E}_{B_1,B_2\sim\mathcal{U}(\mathcal{B}(M))}[d(B_1,B_2)] \ge\frac{1}{16}\operatorname{diam}_2(M). E B 1 , B 2 ∼ U ( B ( M )) [ d ( B 1 , B 2 )] ≥ 16 1 diam 2 ( M ) .
We also show a not-so-distant upper bound.
Theorem 1.2. For any ε > 0 \varepsilon> 0 ε > 0 , there exists a transversal matroid M = M ε M=M_\varepsilon M = M ε for which
E B 1 , B 2 ∼ U ( B ( M ε ) ) [ d ( B 1 , B 2 ) ] ≤ ( 4 9 + ε ) diam 2 ( M ε ) . \mathbb{E}_{B_1,B_2\sim\mathcal{U}(\mathcal{B}(M_\varepsilon))}[d(B_1,B_2)] \le\left(\frac{4}{9}+\varepsilon\right)\operatorname{diam}_2(M_\varepsilon). E B 1 , B 2 ∼ U ( B ( M ε )) [ d ( B 1 , B 2 )] ≤ ( 9 4 + ε ) diam 2 ( M ε ) .
The reader familiar with the groundbreaking results by Anari et al. [2 ] may expect that the first theorem above is a consequence of their resolution of the Mihail-Vazirani conjecture on edge expansion of basis exchange graphs of matroids: for any matroid M M M the edge expansion of G ( M ) \mathcal{G}(M) G ( M ) is at least one. Could it be that all graphs with high edge expansion have the property in Theorem 1.1? Surprisingly, we show that this intuition is misleading: there exists a family of graphs with high edge-expansion for which the distance between two uniformly random vertices is not a constant approximation to the graph diameter. In fact, it is easy to construct such a graph on N N N vertices with maximum degree Ω ( N ) \Omega(N) Ω ( N ) , but such a graph is not a representative basis-exchange graph: For an n n n -element matroid the basis-exchange graph has maximum degree at most O ( n 2 ) O(n^2) O ( n 2 ) and diameter at most O ( n ) O(n) O ( n ) . Thus, for matroid families with N = exp ( Ω ( n ) ) N = \exp(\Omega(n)) N = exp ( Ω ( n )) many bases, these quantities are O ( polylog ( N ) ) O(\operatorname{polylog}(N)) O ( polylog ( N )) . Can we build a graph with high edge expansion, logarithmic degree and diameter, for which Theorem 1.1 does not hold?
Let Δ ( G ) \Delta(G) Δ ( G ) denote the maximum degree of G G G , and let h ( G ) h(G) h ( G ) denote the edge expansion of G = ( V , E ) G = (V,E) G = ( V , E ) , i.e., h ( G ) : = min ∣ ∂ S ∣ / ∣ S ∣ h(G) := \min|\partial S|/|S| h ( G ) := min ∣ ∂ S ∣/∣ S ∣ among all S ⊆ V S \subseteq V S ⊆ V such that 0 < ∣ S ∣ ≤ ∣ V ∣ / 2 0 < |S| \leq|V|/2 0 < ∣ S ∣ ≤ ∣ V ∣/2 , where ∂ S \partial S ∂ S is the set of edges crossing the cut ( S , V ∖ S ) (S,V \setminus S) ( S , V ∖ S ) .
Theorem 1.3. For every constant c ≥ 1 c \geq1 c ≥ 1 , there exists an increasing sequence of simple connected graphs { G ℓ } ℓ ∈ N \{G_{\ell}\}_{\ell\in\mathbb{N}} { G ℓ } ℓ ∈ N such that for all ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N : Δ ( G ℓ ) = O ( log ∣ V ( G ℓ ) ∣ ) \Delta(G_{\ell}) = O(\log|V(G_{\ell})|) Δ ( G ℓ ) = O ( log ∣ V ( G ℓ ) ∣ ) , diam ( G ℓ ) = Θ ( log ∣ V ( G ℓ ) ∣ ) \operatorname{diam}(G_{\ell}) = \Theta(\log|V(G_{\ell})|) diam ( G ℓ ) = Θ ( log ∣ V ( G ℓ ) ∣ ) and h ( G ℓ ) ≥ 1 h(G_{\ell}) \geq1 h ( G ℓ ) ≥ 1 for which if x ℓ , y ℓ x_{\ell}, y_{\ell} x ℓ , y ℓ are vertices chosen uniformly at random from G ℓ G_{\ell} G ℓ , we have
P ( d ( x ℓ , y ℓ ) ≥ 1 c diam ( G ℓ ) ) → 0 as ℓ → ∞ . \mathbb{P}\left(d(x_{\ell},y_{\ell}) \geq\frac{1}{c}\operatorname{diam}(G_{\ell})\right) \to0 \quad\text{as } \ell\to\infty. P ( d ( x ℓ , y ℓ ) ≥ c 1 diam ( G ℓ ) ) → 0 as ℓ → ∞.
Diversity. Theorem 1.1 suggests a natural extension to address Question 2: just sample k k k bases uniformly at random. More formally, denote by avg k ( M ) \operatorname{avg}_k(M) avg k ( M ) the expected minimum distance between k k k bases sampled uniformly at random without replacement. We show that this gives a logarithmic approximation to diversity.
Theorem 1.4. If k ≥ 2 k \geq2 k ≥ 2 and M M M is a matroid with at least k k k bases, we have diam k ( M ) ≤ O ( log k ) avg k ( M ) \operatorname{diam}_k(M) \leq O(\log k)\operatorname{avg}_k(M) diam k ( M ) ≤ O ( log k ) avg k ( M ) .
The previous analysis is tight as shown by instances with hypercube structure.
Theorem 1.5. Let r r r be even, and let M = ⨁ i = 1 r U 1 , 2 M = \bigoplus_{i=1}^{r} U_{1,2} M = ⨁ i = 1 r U 1 , 2 be the direct sum of r r r parallel edges. If k = 2 r / 2 k = 2^{r/2} k = 2 r /2 , then
diam k ( M ) = Θ ( log k ) avg k ( M ) . \operatorname{diam}_k(M) = \Theta(\log k)\operatorname{avg}_k(M). diam k ( M ) = Θ ( log k ) avg k ( M ) .
Therefore, a different approach is indeed needed to obtain a O ( 1 ) O(1) O ( 1 ) approximation for k ≥ 3 k \geq3 k ≥ 3 . Given the limits of uniform sampling above, we consider a more “geometric” or distance-aware sampling4 , referred to as the greedy/farthest-first permutation [33 ] : Given a set of bases S ⊆ B ( M ) S \subseteq\mathcal{B}(M) S ⊆ B ( M ) , the Farthest Matroid Basis (FMB ) problem asks for a base B B B maximizing d ( B , S ) = min A ∈ S d ( B , A ) d(B,S) = \min_{A \in S} d(B,A) d ( B , S ) = min A ∈ S d ( B , A ) . Our main algorithmic guarantees are the following.
Theorem 1.6. Let M M M be a matroid, S ⊆ B ( M ) S \subseteq\mathcal{B}(M) S ⊆ B ( M ) be a set of k k k bases and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There is a randomized algorithm that returns a base B B B satisfying
d ( B , S ) ≥ 1 3 max B ′ ∈ B ( M ) d ( B ′ , S ) d(B,S) \geq\frac{1}{3}\max_{B' \in\mathcal{B}(M)} d(B',S) d ( B , S ) ≥ 3 1 B ′ ∈ B ( M ) max d ( B ′ , S ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) .
Combining this with the farthest-insertion paradigm due to Gonzalez [33 ] , which loses an extra factor of 2, gives our first constant-factor, a ( 1 / 6 ) (1/6) ( 1/6 ) -approximation for k k k -diversity on arbitrary matroids. This is the first polynomial time approximation algorithm for k k k -diversity on matroids (including graphic matroids); in fact, to the best of our knowledge, the only existing result of this type is on the diverse median string selection problem [14 ] .
What about improving the constant 1 / 6 1/6 1/6 ? Note that if one uses an algorithm for FMB to get k k k -diversity, the best approximation for k k k -diversity one can hope for is a 1 / 2 1/2 1/2 . For the k k k -diversity problem in general metric spaces, the best possible approximation guarantee is 1 / 2 1/2 1/2 , under P ≠ \ne = NP [49 ] . We also show how to achieve an approximation factor arbitrarily close to 1 / 2 1/2 1/2 in randomized quasi-polynomial-time for arbitrary matroids. These two results are combined into the following corollary.
Corollary 1.7. Let M M M be a matroid, δ , ε ∈ ( 0 , 1 ) \delta, \varepsilon\in(0,1) δ , ε ∈ ( 0 , 1 ) , and k ≥ 2 k \ge2 k ≥ 2 .
There is a randomized algorithm that returns a set of k k k bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k satisfying
min i < j d ( B i , B j ) ≥ 1 6 diam k ( M ) \min_{i<j} d(B_i,B_j) \ge\frac{1}{6}\operatorname{diam}_k(M) i < j min d ( B i , B j ) ≥ 6 1 diam k ( M ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) .
There is a randomized algorithm that returns a set of k k k bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k satisfying
min i < j d ( B i , B j ) ≥ 1 − ε 2 diam k ( M ) \min_{i<j} d(B_i,B_j) \ge\frac{1-\varepsilon}{2}\operatorname{diam}_k(M) i < j min d ( B i , B j ) ≥ 2 1 − ε diam k ( M ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) ⋅ n O ( ε − 2 log k ) \operatorname{poly}(n,k,\log(1/\delta)) \cdot n^{O(\varepsilon^{-2}\log k)} poly ( n , k , log ( 1/ δ )) ⋅ n O ( ε − 2 l o g k ) .
Special matroids. We also design algorithms that achieve improved approximation factors for classes of matroids with more structure. First, we note that if the basis-exchange graph is vertex transitive5 , a property satisfied, for example, by partition matroids , we can achieve an approximation factor of 1 / 2 1/2 1/2 using random sampling again. Another well-studied special case of the Diverse-Matroid Bases problem is the problem of finding Diverse Spanning Trees. We show that we can achieve an improved approximation factor of 1 / 4 1/4 1/4 if the graph in question has bounded arboricity. Bounded arboricity graphs include several well-studied classes of graphs such as planar graphs, graphs of bounded treewidth and graphs excluding a fixed minor [19 ] .
Theorem 1.8. For each 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exist randomized poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time algorithms that achieve, with success probability at least 1 − δ 1-\delta 1 − δ :
A 1 / 2 1/2 1/2 -approximation for the Diverse Matroid Bases problem for matroids with vertex-transitive basis exchange graphs.
A 1 / 4 1/4 1/4 -approximation for the Diverse Spanning Tree for graphs with constant arboricity.
Hardness of FMB. On the hardness side, we show that, even for graphic matroids, the problem of deciding whether or not there exists a spanning tree that is at distance at least d d d from a set of given spanning trees of a graph is W[1 ] -Hard when parametrized by d d d . To do this, we employ a two-step reduction. First, we show that the Farthest String Problem, in which we are given k k k strings of fixed length from a known alphabet and a target distance d d d and we want to decide whether or not there exists a string of the same length that is at Hamming distance at least d d d from all given strings, is W[1 ] -Hard when parametrized by d d d and the string length. This is shown by a reduction from k k k -Clique. Then, our result follows by reducing Farthest String to Farthest Spanning Tree.
Theorem 1.9. Decision Farthest Spanning Trees is W[1 ] -Hard parameterized by d d d . Moreover, Decision Farthest String over an unbounded alphabet is W[1 ] -Hard parameterized by d d d and the string length.
Technical Overview
We first discuss the proof of our main result, Theorem 1.1. The first idea is to transform the problem from a question about diameter to matroid intersection. Specifically, we express the diameter of G ( M ) G(M) G ( M ) as the maximum size of a common independent set of M M M and the dual matroid M ∗ M^{*} M ∗ [45 ] , and the average distance between two random bases as ∑ e p e ( 1 − p e ) \sum_{e}p_{e}(1-p_{e}) ∑ e p e ( 1 − p e ) , where p e p_{e} p e is the marginal probability that an element e e e belongs to a uniformly random basis. We then partition the elements into high-marginal and low-marginal sets called H H H and L L L , respectively. Using matroid intersection, the diameter is at most r M ( L ) + r M ∗ ( H ) r_{M}(L)+r_{M^{*}}(H) r M ( L ) + r M ∗ ( H ) and thus the goal is to show that the total marginal mass of L L L in M M M together with the total marginal mass of H H H in M ∗ M^{*} M ∗ approximates this sum. This follows easily from the dual rank formula when the two ranks are very unbalanced. The challenging case is when they are balanced. Here, we show that the total mass of L L L in M M M can’t be too small, as then the deficit t = r M ( L ) − ∣ B ∩ L ∣ t=r_{M}(L)-|B\cap L| t = r M ( L ) − ∣ B ∩ L ∣ would be large on average for a random basis B B B , and an exchange-counting argument of many missing L L L -elements gives an upper bound on E [ ( t j ) ] \mathbb{E}\left[\binom{t}{j}\right] E [ ( j t ) ] in terms of ( ∣ A ∩ B ∣ j ) \binom{|A\cap B|}{j} ( j ∣ A ∩ B ∣ ) , where j j j is a constant fraction of r M ( L ) r_{M}(L) r M ( L ) and A A A is a basis of L L L . On the other hand, the line of work by Anari et al. [2 , 3 ] showing that matroid-base-generating polynomials are ultra-log-concave has the following consequence: After symmetrizing the distribution of ∣ A ∩ B ∣ |A\cap B| ∣ A ∩ B ∣ , ultra-log-concavity yields an exchangeable random set whose coordinates are negatively associated. This translates to strong binomial-moment bounds for ∣ A ∩ B ∣ |A\cap B| ∣ A ∩ B ∣ . These upper bounds contradict the assumed large expected deficit, proving the 1 / 16 1/16 1/16 factor approximation.
For Theorem 1.2 , we build a sequence of transversal matroids whose elements are partitioned equally into elements which have marginal tending to 1 / 3 1/3 1/3 and those which have marginals tending to 2 / 3 2/3 2/3 , which makes the average distance tend to a 4 / 9 4/9 4/9 fraction of the diameter.
The starting intuition for Theorem 1.3 is a chain of cliques whose sizes double: almost all vertices lie near the largest layers, so two random vertices are close to each other even though the graph has many layers and hence large diameter. To make this compatible with the logarithmic degree and diameter behavior of basis-exchange graphs, we replace each clique layer by a sparse expander and add a ⌈ log n ⌉ \lceil\log n\rceil ⌈ log n ⌉ -ary tree on the same vertex set so that each layer still has small internal diameter. Consecutive layers are connected by a two-to-one map and the resulting graph has edge expansion at least one via an induction over prefixes of layers. The diameter remains Θ ( log n ) \Theta(\log n) Θ ( log n ) because any path from the first to the last layer crosses all layers, but the expected distance of two random vertices is only O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) , since their layer indices are concentrated within constant distance of the largest layer.
For Theorems 1.4 and 1.5, the upper bound starts from the two-point sampling theorem and adds a lower-tail estimate. If μ \mu μ is the expected distance between two random bases, then every fixed basis has expected distance at least μ / 2 \mu/2 μ /2 from a random basis. The same ULC moment bound used in the diameter proof implies a Chernoff-type lower tail for this distance, so a random pair is very unlikely to have distance much below μ \mu μ . We set a threshold τ = Θ ( μ / log k ) \tau=\Theta(\mu/\log k) τ = Θ ( μ / log k ) and union bound this bad event over the ( k 2 ) \binom{k}{2} ( 2 k ) sampled pairs; with constant probability all sampled pairs are at distance at least τ \tau τ , which gives avg k ( M ) = Ω ( μ / log k ) \operatorname{avg}_{k}(M)=\Omega(\mu/\log k) avg k ( M ) = Ω ( μ / log k ) . Since Theorem 1.1 gives diam k ( M ) ≤ diam 2 ( M ) = O ( μ ) \operatorname{diam}_{k}(M)\leq\operatorname{diam}_{2}(M)=O(\mu) diam k ( M ) ≤ diam 2 ( M ) = O ( μ ) , this is an O ( log k ) O(\log k) O ( log k ) guarantee. The tight example is the direct sum of r r r copies of U 1 , 2 U_{1,2} U 1 , 2 , whose bases are the vertices of the r r r -dimensional cube. For k = 2 r / 2 k=2^{r/2} k = 2 r /2 , a birthday-paradox calculation shows that a random sample has a pair at constant Hamming distance in expectation, while the Gilbert–Varshamov bound [55 ] supplies k k k cube vertices with pairwise distance Ω ( r ) = Ω ( log k ) \Omega(r)=\Omega(\log k) Ω ( r ) = Ω ( log k ) .
The proof of Theorem 1.6 follows by splitting into two regimes: low, when diam 2 ( M ) = O ( log k ) \operatorname{diam}_2(M)=O(\log k) diam 2 ( M ) = O ( log k ) and high, when diam 2 ( M ) = Ω ( log k ) \operatorname{diam}_2(M)=\Omega(\log k) diam 2 ( M ) = Ω ( log k ) . In the low diameter regime: Let B ∗ B^* B ∗ be an optimal farthest basis from the given set S S S , let d ∗ = d ( B ∗ , S ) d^*=d(B^*,S) d ∗ = d ( B ∗ , S ) , and set r = ⌈ d ∗ / 3 ⌉ r=\lceil d^*/3\rceil r = ⌈ d ∗ /3 ⌉ . Every base within distance d ∗ − r d^*-r d ∗ − r of B ∗ B^* B ∗ is good, because the triangle inequality leaves it at distance at least r r r from every base in S S S . Conversely, every bad base lies in a radius-( r − 1 ) (r-1) ( r − 1 ) ball around some member of S S S . This brings us to an interesting question: how different can the volumes of radius r r r balls centered at A A A and B B B be? The key lemma 4.11 says that for any two centers A , B A,B A , B , the ball Ball ( A , r − 1 ) \operatorname{Ball}(A,r-1) Ball ( A , r − 1 ) has size at most 4 diam 2 ( M ) ∣ Ball ( B , 2 ( r − 1 ) ) ∣ ≤ 4 diam 2 ( M ) ∣ Ball ( B , d ∗ − r ) ∣ 4^{\operatorname{diam}_2(M)}|\operatorname{Ball}(B,2(r-1))|\leq4^{\operatorname{diam}_2(M)}|\operatorname{Ball}(B,d^*-r)| 4 diam 2 ( M ) ∣ Ball ( B , 2 ( r − 1 )) ∣ ≤ 4 diam 2 ( M ) ∣ Ball ( B , d ∗ − r ) ∣ . This is proved by taking a base near A A A and using strong basis exchange to move the same deletions and insertions onto another basis around B B B . Applying this comparison to all centers in S S S shows that a uniformly random base is good with probability at least 1 / ( k 4 diam 2 ( M ) + 1 ) 1/(k4^{\operatorname{diam}_2(M)}+1) 1/ ( k 4 diam 2 ( M ) + 1 ) , so repeated sampling finds a 1 / 3 1/3 1/3 -approximate farthest basis.
For the high diameter regime, we solve a linear relaxation over the matroid base polytope and apply Chekuri, Vondrak, and Zenklusen’s swap rounding [15 ] . Every input basis gives a linear constraint, and the concentration given by the swap rounding ensures that, when the diameter is sufficiently large, all k k k constraints are simultaneously satisfied within a ( 1 − ε ) (1-\varepsilon) ( 1 − ε ) factor with high probability. Combining the two regimes yields the polynomial-time 1 / 3 1/3 1/3 -approximation of Theorem 1.6. If, in the small-diameter regime, we enumerate all bases instead of sampling we obtain a quasi-polynomial-time ( 1 − ε ) (1-\varepsilon) ( 1 − ε ) -approximation stated in Theorem 4.16 .
For Theorem 1.8, we first show that, given a matroid M M M , when G ( M ) G(M) G ( M ) is vertex-transitive, the size of a ball centered at a vertex in G ( M ) G(M) G ( M ) does not depend on the center. Since the balls around the optimal solutions of radius ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ \lfloor(\operatorname{diam}_k(M)-1)/2\rfloor ⌊( diam k ( M ) − 1 ) /2 ⌋ are disjoint of each other, k k k times the volume of any ball of radius ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ \lfloor(\operatorname{diam}_k(M)-1)/2\rfloor ⌊( diam k ( M ) − 1 ) /2 ⌋ is less than the total number of bases of M M M . Thus, given i i i bases, one can always sample a basis which is at distance at least ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ \lfloor(\operatorname{diam}_k(M)-1)/2\rfloor ⌊( diam k ( M ) − 1 ) /2 ⌋ from all of the given i i i bases with probability at least 1 / ( i + 1 ) 1/(i+1) 1/ ( i + 1 ) . This gives us a polynomial time 1 / 2 1/2 1/2 -approximation randomized algorithm for the Diverse Matroid Bases problem for M M M . As a corollary, we also show that the same algorithm applies to partition matroids. Using this corollary, in Section 5.2 we design a randomized polynomial-time 1 / 4 1/4 1/4 -approximation algorithm for the Diverse Spanning Tree problem on graphic matroids whose underlying graph has constant arboricity (Theorem 5.6 ). Let T ( G ) = G ( M ) T(G)=G(M) T ( G ) = G ( M ) where M M M is the graphic matroid defined by G G G . We first note that it is enough to consider diam 2 ( T ( G ) ) = O ( log k ) \operatorname{diam}_2(T(G))=O(\log k) diam 2 ( T ( G )) = O ( log k ) since in the complementary regime when diam 2 ( T ( G ) ) = Ω ( log k ) \operatorname{diam}_2(T(G))=\Omega(\log k) diam 2 ( T ( G )) = Ω ( log k ) , Lemma 4.15 yields a 1 / 4 1/4 1/4 -approximation for Diverse Spanning Trees via linear programming followed by Chekuri, Vondrak, and Zenklusen’s swap rounding [15 ] . The rest of the proof rests on a structural insight. The edges of G G G split into a highly structured part G ′ G' G ′ , consisting of all edges incident to a vertex of degree at most 2, and the remaining “core,” spanned by the vertices of degree at least 3. Since G ′ G' G ′ is a union of edge-disjoint paths and cycles, once we fix the spanning tree’s image on the contracted core, the set of extensions to a spanning tree of G G G forms a partition matroid. We then show that when G G G has bounded arboricity, this bound on the diameter forces the contracted core to have only O ( log k ) O(\log k) O ( log k ) edges, and hence only poly ( k ) \operatorname{poly}(k) poly ( k ) -many spanning trees. We enumerate all of them in poly ( k ) \operatorname{poly}(k) poly ( k ) time and, for each, exploit the partition-matroid structure of its extensions.
Finally, Theorem 1.9 is proved by two reductions. First, we reduce from k k k -CLIQUE to non-binary Farthest String. The string length is k k k , the target distance is k − 1 k-1 k − 1 , and the alphabet consists of the graph vertices together with one dummy symbol. For every pair of coordinates and every ordered pair of vertices ( u , v ) (u,v) ( u , v ) that is not an edge, we create a string that places u u u and v v v in those two coordinates and dummy symbols elsewhere. A string at distance at least k − 1 k-1 k − 1 from all constructed strings cannot use dummy symbols and cannot choose a non-edge in any coordinate pair; therefore it encodes a k k k -clique, and any clique gives such a string. Second, we reduce Farthest String to Farthest Spanning Tree by using a star-like graph with one bundle of parallel edges per coordinate and one edge in the bundle per alphabet symbol. Every spanning tree chooses exactly one edge from each bundle, so spanning trees are in bijection with strings and the tree distance is exactly the Hamming distance. This transfers the W [ 1 ] W[1] W [ 1 ] -hardness to Farthest Spanning Tree parameterized by the target distance.
Applicability of our results
We remark that matroids, and in particular their bases, provide a flexible abstraction for many natural combinatorial constraints. We recall a few of the most prominent examples. (1) Given a graph G G G , its graphic matroid has as independent sets the spanning forests of the graph. (2) A laminar family is a collection A ⊆ 2 E \mathcal{A} \subseteq2^E A ⊆ 2 E such that, for any two intersecting sets one is contained in the other. Given capacities c : A → N c:\mathcal{A} \to\mathbb{N} c : A → N , the associated laminar matroid has independent sets { I ⊆ E : ∣ A ∩ I ∣ ≤ c ( A ) , for all A ∈ A } \{I \subseteq E : |A \cap I| \le c(A),\ \text{for all } A \in\mathcal{A}\} { I ⊆ E : ∣ A ∩ I ∣ ≤ c ( A ) , for all A ∈ A } . (3) When the sets in the laminar family are pairwise disjoint this specializes to a partition matroid . (4) Given a bipartite graph G = ( L ∪ R , E ) G = (L \cup R, E) G = ( L ∪ R , E ) , the associated transversal matroid is the matroid on ground set L L L whose independent sets are precisely those subsets of L L L that can be matched to R R R . Note that these respectively model (1) acyclicity constraints, (2) hierarchical quota constraints, (3) group-cardinality constraints, (4) compatibility or assignment constraints. There are many other well-studied classes of matroids, such as gammoids, paving matroids, and regular matroids; we do not discuss them further here, and refer the reader to the classic text of Oxley [45 ] .
Another case of interest for us arises from optimal bases. Let M = ( E , I ) M = (E, \mathcal{I}) M = ( E , I ) be a matroid and let w : E → R w:E \to\mathbb{R} w : E → R be a weight function. It is a folklore fact that the family of w w w -optimal bases of M M M is itself the family of bases of another matroid on the same ground set; we denote this matroid by M w M_w M w (see, e.g., Proposition 2 in [5 ] ). Thus, our results also apply to the problem of finding a farthest w w w -optimal base from a prescribed collection of w w w -optimal bases, as well as to the problem of finding diverse collections of w w w -optimal bases.
We note that our results yield polynomial-time algorithms for all of the aforementioned settings in their standard presentations. This follows as all matroid families discussed above have independence oracles implementable in polynomial time in their standard presentation. Moreover, given independence-oracle access to M M M , one also obtains independence-oracle access to the optimal-base matroid M w M_w M w in polynomial time.
Future directions
We believe our results can be explored in several directions, and give rise to interesting open problems. First, we believe it should be possible to close the gap between the lower bound of 1 / 16 1/16 1/16 in Theorem 1.1 and the upper bound of 4 / 9 4/9 4/9 in Theorem 1.2 . As mentioned earlier, a major open problem is to investigate hardness for k k k -diversity for finding k k k optimally diverse bases of a matroid when k k k is given in unary.
Furthermore, our QPTAS in Theorem 4.16 strongly suggests the existence of a PTAS for Farthest Matroid Basis. Finally, while our results apply to the diverse optimal bases (minimum or maximum weight) of a matroid problem, another interesting variant, studied in [30 ] , is where we are given an approximation factor c ≥ 1 c \ge1 c ≥ 1 , and the task is to return k k k most diverse c c c -optimal bases.
Roadmap. § 2 introduces necessary preliminaries. § 3 relates the diameter of a matroid to the expected distance between random bases, constructs the transversal-matroid upper bound, and shows that edge expansion alone does not explain the sampling guarantee. § 4 studies direct sampling for k k k -diversity, develops the FMB approximation algorithms in the small- and large-diameter regimes, and derives the general diverse-basis guarantees. § 5 provides improved guarantees for partition and graphic matroids with bounded-arboricity. Section 6 proves parameterized hardness results for Farthest Matroid Basis.
Preliminaries
Matroids. A set system M = ( E , F ) M=(E,\mathcal{F}) M = ( E , F ) consists of a collection of subsets F ⊆ 2 E \mathcal{F}\subseteq2^E F ⊆ 2 E of a finite ground set of elements E = { e 1 , … , e n } E=\{e_1,\ldots,e_n\} E = { e 1 , … , e n } . A set system M = ( E , F ) M=(E,\mathcal{F}) M = ( E , F ) is called downwards-closed if A ∈ F ⟹ B ∈ F A\in\mathcal{F}\Longrightarrow B\in\mathcal{F} A ∈ F ⟹ B ∈ F for any B ⊆ A ⊆ E B\subseteq A\subseteq E B ⊆ A ⊆ E . A downwards-closed set system is also called a simplicial complex . A matroid is a downwards-closed set system M = ( E , I ) M=(E,\mathcal{I}) M = ( E , I ) , where I ⊆ 2 E \mathcal{I}\subseteq2^E I ⊆ 2 E denotes the set of independent sets of M M M and satisfies: (i) ∅ ∈ I \varnothing\in\mathcal{I} ∅ ∈ I , (ii) A ∈ I ⟹ B ∈ I A\in\mathcal{I}\Longrightarrow B\in\mathcal{I} A ∈ I ⟹ B ∈ I for all B ⊆ A B\subseteq A B ⊆ A , and (iii) for any A , B ∈ I A,B\in\mathcal{I} A , B ∈ I with ∣ A ∣ < ∣ B ∣ |A|<|B| ∣ A ∣ < ∣ B ∣ there exists e ∈ B ∖ A e\in B\setminus A e ∈ B ∖ A with A ∪ { e } ∈ I A\cup\{e\}\in\mathcal{I} A ∪ { e } ∈ I . The maximally feasible sets of M M M are called bases and we usually denote them by B ( M ) \mathcal{B}(M) B ( M ) . In matroids, all bases of M M M have the same cardinality, called the rank of M M M and denoted by r ( M ) r(M) r ( M ) . For S ⊆ E S\subseteq E S ⊆ E , we write r M ( S ) r_M(S) r M ( S ) for the maximum size of an independent subset of S S S .
For X ⊆ E X\subseteq E X ⊆ E , the deletion M ∖ X M\setminus X M ∖ X is the matroid on ground set E ∖ X E\setminus X E ∖ X whose independent sets are { I ∈ I ∣ I ∩ X = ∅ } \{I\in\mathcal{I}\mid I\cap X=\varnothing\} { I ∈ I ∣ I ∩ X = ∅ } . The contraction M / X M/X M / X of M M M by an independent set X X X is the matroid on E ∖ X E\setminus X E ∖ X whose independent sets are { I ⊆ E ∖ X ∣ I ∪ X ∈ I } \{I\subseteq E\setminus X\mid I\cup X\in\mathcal{I}\} { I ⊆ E ∖ X ∣ I ∪ X ∈ I } . A matroid obtained from M M M by a sequence of deletions and contractions is called a minor of M M M .
The dual matroid M ∗ M^* M ∗ of M M M has the same ground set E E E . Its set of bases is B ( M ∗ ) = { E ∖ B ∣ B ∈ B ( M ) } \mathcal{B}(M^*)=\{E\setminus B\mid B\in\mathcal{B}(M)\} B ( M ∗ ) = { E ∖ B ∣ B ∈ B ( M )} and its rank function is r M ∗ ( S ) = ∣ S ∣ − r ( M ) + r M ( E ∖ S ) r_{M^*}(S)=|S|-r(M)+r_M(E\setminus S) r M ∗ ( S ) = ∣ S ∣ − r ( M ) + r M ( E ∖ S ) . The matroid intersection theorem of Edmonds [23 ] implies that if M 1 , M 2 M_1,M_2 M 1 , M 2 are matroids on the same ground set E E E , then
max { ∣ I ∣ : I is independent in both M 1 and M 2 } = min U ⊆ E { r M 1 ( U ) + r M 2 ( E ∖ U ) } . \max\{|I|: I\text{ is independent in both }M_1\text{ and }M_2\}=\min_{U\subseteq E}\{r_{M_1}(U)+r_{M_2}(E\setminus U)\}. max { ∣ I ∣ : I is independent in both M 1 and M 2 } = U ⊆ E min { r M 1 ( U ) + r M 2 ( E ∖ U )} .
A special subclass of matroids that is of interest to us are graphic matroids . For a given graph G = ( V , E ) G=(V,E) G = ( V , E ) , the graphic matroid M ( G ) = ( E , I ) M(G)=(E,\mathcal{I}) M ( G ) = ( E , I ) associated with G G G is the matroid on the ground set of edges E E E , where I \mathcal{I} I denotes the set of all forests of G G G . In other words, a set I I I is independent in M ( G ) M(G) M ( G ) if and only if it is acyclic. The bases of M ( G ) M(G) M ( G ) are the spanning trees of G G G and its rank r ( M ( G ) ) r(M(G)) r ( M ( G )) is ∣ V ∣ − 1 |V|-1 ∣ V ∣ − 1 .
We use 1 A \mathbf{1}_A 1 A to denote the indicator vector of a set A A A , i.e. the vector where the i i i -th position is 1 if e i ∈ A e_i\in A e i ∈ A and 0 otherwise, and A △ B A\triangle B A △ B to denote the symmetric difference of A A A and B B B , i.e. A △ B = { e ∈ E ∣ e ∈ A ∖ B or e ∈ B ∖ A } A\triangle B=\{e\in E\mid e\in A\setminus B\text{ or }e\in B\setminus A\} A △ B = { e ∈ E ∣ e ∈ A ∖ B or e ∈ B ∖ A } . For brevity, we use A + e A+e A + e and A − e A-e A − e to denote A ∪ { e } A\cup\{e\} A ∪ { e } and A ∖ { e } A\setminus\{e\} A ∖ { e } , respectively.
Diameter and Diversity
Given a graph G = ( V , E ) G=(V,E) G = ( V , E ) , the diameter of G G G is the maximal shortest-path distance between any two vertices in G G G . In this paper, we focus on a special case of graphs G G G , namely basis-exchange graphs . An undirected graph G = ( V ( G ) , E ( G ) ) G=(V(G),E(G)) G = ( V ( G ) , E ( G )) is a basis-exchange graph of a matroid M = ( E , I ) M=(E,\mathcal{I}) M = ( E , I ) with bases B \mathcal{B} B if there exists a bijection π : B → V ( G ) \pi:\mathcal{B}\to V(G) π : B → V ( G ) such that, for any two distinct bases A , B ∈ B A,B\in\mathcal{B} A , B ∈ B , there exists an edge between π ( A ) \pi(A) π ( A ) and π ( B ) \pi(B) π ( B ) if and only if there exist elements e ∈ A e\in A e ∈ A , f ∈ B f\in B f ∈ B such that B = A − e + f B=A-e+f B = A − e + f , i.e. if B B B can be obtained from A A A via an exchange swap.
The (combinatorial) distance between two bases A , B ∈ B ( M ) A,B\in\mathcal{B}(M) A , B ∈ B ( M ) of a matroid M M M is defined as
d ( A , B ) : = ∣ A ∖ B ∣ = ∣ B ∖ A ∣ = 1 2 ∣ A △ B ∣ . d(A,B):=|A\setminus B|=|B\setminus A|=\frac{1}{2}|A\triangle B|. d ( A , B ) := ∣ A ∖ B ∣ = ∣ B ∖ A ∣ = 2 1 ∣ A △ B ∣.
Notice that d ( A , B ) d(A,B) d ( A , B ) is the shortest-path distance between the vertices corresponding to A A A and B B B in the basis-exchange graph of M M M .
The main object of study of this paper is the k k k -diversity, or simply the diversity .
Definition 2.1 (Diversity). For a matroid M M M with a set of bases B ( M ) \mathcal{B}(M) B ( M ) , let diam k \operatorname{diam}_{k} diam k be the smallest pairwise distance between the k k k farthest bases; i.e.,
diam k ( M ) : = max B 1 , … , B k ∈ B ( M ) min i ≠ j : i , j ∈ [ k ] d ( B i , B j ) . \operatorname{diam}_{k}(M) := \max_{B_{1},\ldots,B_{k}\in\mathcal{B}(M)}\min_{i\ne j:\,i,j\in[k]} d(B_{i},B_{j}). diam k ( M ) := B 1 , … , B k ∈ B ( M ) max i = j : i , j ∈ [ k ] min d ( B i , B j ) .
We use diam 2 ( M ) \operatorname{diam}_{2}(M) diam 2 ( M ) to refer to the (combinatorial) diameter of a matroid M M M , which is the diameter of the basis-exchange graph of M M M . Note that the diversity generalizes the diameter for matroids, and that diam k ( M ) ≤ diam ℓ ( M ) \operatorname{diam}_{k}(M) \le\operatorname{diam}_{\ell}(M) diam k ( M ) ≤ diam ℓ ( M ) for k ≥ ℓ k \ge\ell k ≥ ℓ .
A lot of our results rely on sampling bases of M M M uniformly at random and comparing their expected combinatorial distance to diam k ( M ) \operatorname{diam}_{k}(M) diam k ( M ) . This motivates the following definition.
Definition 2.2 (Average Distance). For a matroid M M M with a set of bases B ( M ) \mathcal{B}(M) B ( M ) , let U ( B ( M ) ) U(\mathcal{B}(M)) U ( B ( M )) denote the uniform distribution on B ( M ) \mathcal{B}(M) B ( M ) . The average minimum pairwise distance between k k k uniformly random bases avg k \operatorname{avg}_{k} avg k is defined as
avg k ( M ) : = E B 1 , … , B k ∼ U ( B ( M ) ) [ min i ≠ j : i , j ∈ [ k ] 1 2 ∣ B i △ B j ∣ ] . \operatorname{avg}_{k}(M) := \mathbb{E}_{B_{1},\ldots,B_{k}\sim U(\mathcal{B}(M))}\left[\min_{i\ne j:\,i,j\in[k]} \frac{1}{2}\lvert B_{i}\mathbin{\triangle}B_{j}\rvert\right]. avg k ( M ) := E B 1 , … , B k ∼ U ( B ( M )) [ i = j : i , j ∈ [ k ] min 2 1 ∣ B i △ B j ∣ ] .
Here, we assume the sampling is done without replacement. Let B ∼ μ B\sim\mu B ∼ μ , and X e : = 1 [ e ∈ B ] X_{e}:=\mathbb{1}\lbrack e\in B\rbrack X e := 1 [ e ∈ B ] and p e : = Pr B ∼ μ [ e ∈ B ] p_{e}:=\Pr_{B\sim\mu}\lbrack e\in B\rbrack p e := Pr B ∼ μ [ e ∈ B ] denote the indicator of the event e ∈ B e\in B e ∈ B and its probability, respectively, for e ∈ E e\in E e ∈ E . For a subset S ⊆ E S\subseteq E S ⊆ E , let p ( S ) : = ∑ e ∈ S p e p(S):=\sum_{e\in S}p_{e} p ( S ) := ∑ e ∈ S p e and ( 1 − p ) ( S ) : = ∑ e ∈ S ( 1 − p e ) (1-p)(S):=\sum_{e\in S}(1-p_{e}) ( 1 − p ) ( S ) := ∑ e ∈ S ( 1 − p e ) .
Negative Correlation
In some of our results, we make use of the following definition of Negative Association (NA) .
Definition 2.3 (Negative Association (NA)) [38 , 39 ] . A set of random variables X 1 , X 2 , … , X n X_{1},X_{2},\ldots,X_{n} X 1 , X 2 , … , X n is said to be negatively associated (NA) if for any two disjoint index sets I , J ⊆ [ n ] I,J\subseteq[n] I , J ⊆ [ n ] and two functions f , g f,g f , g that are both monotone increasing or both monotone decreasing, we have
E [ f ( X i : i ∈ I ) ⋅ g ( X j : j ∈ J ) ] ≤ E [ f ( X i : i ∈ I ) ] ⋅ E [ g ( X j : j ∈ J ) ] . \mathbb{E}\left[f(X_{i}:i\in I)\cdot g(X_{j}:j\in J)\right]\le\mathbb{E}\left[f(X_{i}:i\in I)\right]\cdot\mathbb{E}\left[g(X_{j}:j\in J)\right]. E [ f ( X i : i ∈ I ) ⋅ g ( X j : j ∈ J ) ] ≤ E [ f ( X i : i ∈ I ) ] ⋅ E [ g ( X j : j ∈ J ) ] .
Diameter in Matroids
In this section, we study how well the distance between two uniformly random bases approximates the diameter of the basis-exchange graph of a matroid. Our main positive result shows that, for every matroid M M M , avg 2 ( M ) ≥ ( 1 / 16 ) diam 2 ( M ) \operatorname{avg}_{2}(M)\ge(1/16)\operatorname{diam}_{2}(M) avg 2 ( M ) ≥ ( 1/16 ) diam 2 ( M ) . We complement this with an example of a matroid M M M with avg 2 ( M ) ≤ ( 4 / 9 ) diam 2 ( M ) \operatorname{avg}_{2}(M)\le(4/9)\operatorname{diam}_{2}(M) avg 2 ( M ) ≤ ( 4/9 ) diam 2 ( M ) . Our final result indicates that the matroid structure is essential for such a guarantee. Indeed, high edge-expansion by itself is not enough, which we show by constructing an expander graph with edge expansion at least 1 for which the distance between two uniformly random vertices is not a constant-factor approximation to the diameter.
A Constant-Factor Approximation via Random Sampling
Here, we show the following theorem.
Theorem 1.1. For every matroid M M M , we have
E B 1 , B 2 ∼ U ( B ( M ) ) [ d ( B 1 , B 2 ) ] ≥ 1 16 diam 2 ( M ) . \mathbb{E}_{B_{1},B_{2}\sim U(\mathcal{B}(M))}[d(B_{1},B_{2})]\ge\frac{1}{16}\operatorname{diam}_{2}(M). E B 1 , B 2 ∼ U ( B ( M )) [ d ( B 1 , B 2 )] ≥ 16 1 diam 2 ( M ) . :::`
The proof of Theorem 1.1 follows from the following three ideas. First, we replace the distance between two bases in M M M by the intersection of a basis of M M M with an independently drawn basis of M ∗ M^{*} M ∗ . Second, we partition the ground set into elements e e e with marginal p e ≤ 1 / 2 p_e \le1/2 p e ≤ 1/2 and those with marginal p e > 1 / 2 p_e > 1/2 p e > 1/2 . The idea then is that, if the elements with low marginals also have too little total marginal mass, then this forces many exchanges from a fixed low-marginal basis into a uniformly random basis B B B . Third, the size sequence of the intersection S S S of a fixed set and a uniformly random basis of a matroid is ultra-log-concave (ULC ), as shown in the seminal work of Anari, Liu, Oveis Gharan, and Vinzant [3 ] . We then tweak the distribution to make it exchangeable and, combined with the fact that it is ULC, Pemantle’s work on negative dependence [46 ] implies that S S S satisfies negative association (NA ); this prevents those exchanges from overlapping too much. The precise constant we prove is a little better (≈ 1 / 15.02 \approx1/15.02 ≈ 1/15.02 ) but we present the weaker constant for clarity of exposition.
We start by rewriting the expected distance in a useful form.
Lemma 3.1. For every matroid M M M ,
E ( d ( A , B ) ) = ∑ e ∈ E p e ( 1 − p e ) = ∑ e ∈ E Var ( X e ) . \mathbb{E}(d(A,B))=\sum_{e\in E}p_e(1-p_e)=\sum_{e\in E}\operatorname{Var}(X_e). E ( d ( A , B )) = e ∈ E ∑ p e ( 1 − p e ) = e ∈ E ∑ Var ( X e ) .
Proof. Let B B B , B ′ B^{\prime} B ′ be bases of M M M drawn independently from U ( B ( M ) ) \mathcal{U}(\mathcal{B}(M)) U ( B ( M )) and let X e ′ = 1 { e ∈ B ′ } X^{\prime}_e=1\{e\in B^{\prime}\} X e ′ = 1 { e ∈ B ′ } . For each element e e e ,
Pr [ X e ≠ X e ′ ] = p e ( 1 − p e ) + ( 1 − p e ) p e = 2 p e ( 1 − p e ) . \Pr[X_e\ne X^{\prime}_e]=p_e(1-p_e)+(1-p_e)p_e=2p_e(1-p_e). Pr [ X e = X e ′ ] = p e ( 1 − p e ) + ( 1 − p e ) p e = 2 p e ( 1 − p e ) .
Also
∣ B △ B ′ ∣ = ∑ e ∈ E 1 { X e ≠ X e ′ } . |B\mathbin{\triangle}B^{\prime}|=\sum_{e\in E}1\{X_e\ne X^{\prime}_e\}. ∣ B △ B ′ ∣ = e ∈ E ∑ 1 { X e = X e ′ } .
The first equality follows by linearity of expectation along with the fact that all bases of M M M have the same size, implying ∣ B ∖ B ′ ∣ = ∣ B ′ ∖ B ∣ = ∣ B △ B ′ ∣ / 2 |B\setminus B^{\prime}|=|B^{\prime}\setminus B|=|B\mathbin{\triangle}B^{\prime}|/2 ∣ B ∖ B ′ ∣ = ∣ B ′ ∖ B ∣ = ∣ B △ B ′ ∣/2 . The second equality is the usual identity Var ( X e ) = p e ( 1 − p e ) \operatorname{Var}(X_e)=p_e(1-p_e) Var ( X e ) = p e ( 1 − p e ) for an indicator. □
Our first idea is to reformulate the problem into a question about matroid intersection, using the dual matroid.
Lemma 3.2. For every matroid M M M ,
avg 2 ( M ) = E B , C [ ∣ B ∩ C ∣ ] , \operatorname{avg}_2(M)=\mathbb{E}_{B,C}[|B\cap C|], avg 2 ( M ) = E B , C [ ∣ B ∩ C ∣ ] , where B B B and C C C are sampled independently and uniformly from B ( M ) \mathcal{B}(M) B ( M ) and B ( M ∗ ) \mathcal{B}(M^{*}) B ( M ∗ ) . Moreover,
diam 2 ( M ) = max { ∣ I ∣ ∣ I is independent in both M and M ∗ } . \operatorname{diam}_2(M)=\max\{|I|\mid I\text{ is independent in both }M\text{ and }M^{*}\}. diam 2 ( M ) = max { ∣ I ∣ ∣ I is independent in both M and M ∗ } .
Proof. If B B B and B ′ B^{\prime} B ′ are bases of M M M drawn independently and uniformly at random, then C = E ∖ B ′ C=E\setminus B^{\prime} C = E ∖ B ′ is a basis of M ∗ M^{*} M ∗ drawn independently from B B B and uniformly at random from B ( M ∗ ) \mathcal{B}(M^{*}) B ( M ∗ ) . Hence
E B , C [ ∣ B ∩ C ∣ ] = E B , B ′ [ ∣ B ∖ B ′ ∣ ] = avg 2 ( M ) . \mathbb{E}_{B,C}[|B\cap C|]=\mathbb{E}_{B,B^{\prime}}[|B\setminus B^{\prime}|]=\operatorname{avg}_2(M). E B , C [ ∣ B ∩ C ∣ ] = E B , B ′ [ ∣ B ∖ B ′ ∣ ] = avg 2 ( M ) .
If P , Q P,Q P , Q are bases of M M M , then P ∖ Q P\setminus Q P ∖ Q is contained in the basis P P P of M M M and in the dual basis E ∖ Q E\setminus Q E ∖ Q of M ∗ M^{*} M ∗ . Thus P ∖ Q P\setminus Q P ∖ Q is a common independent set of M M M and M ∗ M^{*} M ∗ , and the maximum common independent set has size at least diam 2 ( M ) \operatorname{diam}_2(M) diam 2 ( M ) . Conversely, let I I I be independent in both M M M and M ∗ M^{*} M ∗ . Extend I I I to a basis P P P of M M M and to a basis C C C of M ∗ M^{*} M ∗ . Since C = E ∖ Q C=E\setminus Q C = E ∖ Q for some basis Q Q Q of M M M , we have I ⊆ P ∖ Q I\subseteq P\setminus Q I ⊆ P ∖ Q . Hence ∣ I ∣ ≤ diam 2 ( M ) |I|\le\operatorname{diam}_2(M) ∣ I ∣ ≤ diam 2 ( M ) . □
Fix a set A ⊆ E A \subseteq E A ⊆ E , and let B ∼ U ( B ( M ) ) B \sim U(\mathcal{B}(M)) B ∼ U ( B ( M )) , Z = ∣ A ∩ B ∣ Z = |A \cap B| Z = ∣ A ∩ B ∣ and r = r ( M ) r = r(M) r = r ( M ) denote the rank of M M M . The polynomial g U ( x ) = ∑ B ∈ B ( M ) ∏ i ∈ B x i g_U(x) = \sum_{B \in\mathcal{B}(M)} \prod_{i \in B} x_i g U ( x ) = ∑ B ∈ B ( M ) ∏ i ∈ B x i is called the generating polynomial of the uniform distribution U ( B ( M ) ) U(\mathcal{B}(M)) U ( B ( M )) . By the work of Anari, Liu, Oveis Gharan and Vinzant, g U g_U g U is an ULC polynomial ([3 ] , Theorem 4.1). For a fixed set A A A , we can symmetrize g U g_U g U by substituting x i x_i x i with y y y for i ∈ A i \in A i ∈ A and x i x_i x i with z z z for i ∉ A i \notin A i ∈ / A , to obtain
q A ( y , z ) = ∑ B ∈ B ( M ) y ∣ A ∩ B ∣ z r − ∣ A ∩ B ∣ = ∣ B ( M ) ∣ ∑ i = 0 ∣ A ∣ ζ i y i z r − i , q_A(y,z) = \sum_{B \in\mathcal{B}(M)} y^{|A \cap B|}z^{r-|A \cap B|} = |\mathcal{B}(M)| \sum_{i=0}^{|A|} \zeta_i y^i z^{r-i}, q A ( y , z ) = B ∈ B ( M ) ∑ y ∣ A ∩ B ∣ z r − ∣ A ∩ B ∣ = ∣ B ( M ) ∣ i = 0 ∑ ∣ A ∣ ζ i y i z r − i ,
where ζ i = Pr [ Z = i ] \zeta_i = \Pr[Z = i] ζ i = Pr [ Z = i ] and the last equality follows since B B B is drawn uniformly from the bases of M M M . Let
p A ( y , z ) : = q A ( y , z ) ∣ B ( M ) ∣ = ∑ i = 0 ∣ A ∣ ζ i y i z r − i . p_A(y,z) := \frac{q_A(y,z)}{|\mathcal{B}(M)|} = \sum_{i=0}^{|A|} \zeta_i y^i z^{r-i}. p A ( y , z ) := ∣ B ( M ) ∣ q A ( y , z ) = i = 0 ∑ ∣ A ∣ ζ i y i z r − i .
By ([3 ] , Lemma 2.2), ULC polynomials are closed under affine transformations, and since g U g_U g U is ULC it follows that p A p_A p A is also ULC. Furthermore, using Gurvits’ machinery ([34 ] , Proposition 2.7), it follows that the coefficient sequence of p A ( y , z ) p_A(y,z) p A ( y , z ) is a ULC sequence, i.e. for all 1 ≤ i ≤ r − 1 1 \leq i \leq r - 1 1 ≤ i ≤ r − 1 ,
( ζ i ( r i ) ) 2 ≥ ζ i − 1 ( r i − 1 ) ⋅ ζ i + 1 ( r i + 1 ) . \left(\frac{\zeta_i}{\binom{r}{i}}\right)^2 \geq\frac{\zeta_{i-1}}{\binom{r}{i-1}} \cdot\frac{\zeta_{i+1}}{\binom{r}{i+1}}. ( ( i r ) ζ i ) 2 ≥ ( i − 1 r ) ζ i − 1 ⋅ ( i + 1 r ) ζ i + 1 .
Next, we will turn the distribution of A ∩ B A \cap B A ∩ B into an exchangeable distribution. Consider a random set S S S distributed as follows: first draw a random variable K K K distributed exactly as Z = ∣ A ∩ B ∣ Z = |A \cap B| Z = ∣ A ∩ B ∣ and then, conditioned on K = i K = i K = i , draw S S S uniformly at random from the subsets of { 1 , … , r } \{1,\ldots,r\} { 1 , … , r } of size i i i . Since B ∼ U ( B ( M ) ) B \sim U(\mathcal{B}(M)) B ∼ U ( B ( M )) , it follows that ∣ S ∣ |S| ∣ S ∣ has the same distribution as Z Z Z . Furthermore, for all T ⊆ { 1 , … , r } T \subseteq\{1,\ldots,r\} T ⊆ { 1 , … , r } ,
Pr [ S = T ] = ζ ∣ T ∣ ( r ∣ T ∣ ) . \Pr[S = T] = \frac{\zeta_{|T|}}{\binom{r}{|T|}}. Pr [ S = T ] = ( ∣ T ∣ r ) ζ ∣ T ∣ .
For i ∈ [ r ] i \in[r] i ∈ [ r ] , let X i = 1 [ i ∈ S ] X_i = \mathbb{1}[i \in S] X i = 1 [ i ∈ S ] . Notice that the X i X_i X i ’s are exchangeable random variables, i.e. their joint distribution is invariant to permutations of { 1 , … , r } \{1,\ldots,r\} { 1 , … , r } . Indeed, for any x ∈ { 0 , 1 } r x \in\{0,1\}^r x ∈ { 0 , 1 } r where the number of 1’s in x x x is i i i , we have
Pr [ ( X 1 , … , X r ) = x ] = ζ i ( r i ) . \Pr[(X_1,\ldots,X_r) = x] = \frac{\zeta_i}{\binom{r}{i}}. Pr [( X 1 , … , X r ) = x ] = ( i r ) ζ i .
Also, ∑ i = 1 r X i = ∣ S ∣ = K \sum_{i=1}^{r} X_i = |S| = K ∑ i = 1 r X i = ∣ S ∣ = K , and so Pr [ ∑ j = 1 r X j = i ] = ζ i \Pr\left[\sum_{j=1}^{r} X_j = i\right] = \zeta_i Pr [ ∑ j = 1 r X j = i ] = ζ i , for all i ∈ [ r ] i \in[r] i ∈ [ r ] . Furthermore,
E [ X i ] = Pr [ i ∈ S ] = ∑ j = 0 r Pr [ K = j ] Pr [ i ∈ S ∣ K = j ] = ∑ j = 0 r ζ j ( r − 1 j − 1 ) ( r j ) = ∑ j = 0 r ζ j j r = E [ K ] r = E [ Z ] r . \begin{aligned}
\mathbb{E}[X_i] &= \Pr[i \in S] = \sum_{j=0}^{r} \Pr[K = j]\Pr[i \in S \mid K = j] \\
&= \sum_{j=0}^{r} \zeta_j \frac{\binom{r-1}{j-1}}{\binom{r}{j}}
= \sum_{j=0}^{r} \zeta_j \frac{j}{r}
= \frac{\mathbb{E}[K]}{r} \\
&= \frac{\mathbb{E}[Z]}{r}.
\end{aligned} E [ X i ] = Pr [ i ∈ S ] = j = 0 ∑ r Pr [ K = j ] Pr [ i ∈ S ∣ K = j ] = j = 0 ∑ r ζ j ( j r ) ( j − 1 r − 1 ) = j = 0 ∑ r ζ j r j = r E [ K ] = r E [ Z ] .
The exchangeability of the X i X_i X i ’s together with the ultra-log-concavity of the ζ i \zeta_i ζ i ’s imply that the X i X_i X i ’s satisfy negative association (NA) ([46 ] , Theorem 2.7). The following lemma is a straightforward application of a well-known property of negatively associated random variables.
Lemma 3.3. For any R ⊆ { 1 , … , r } R \subseteq\{1,\ldots,r\} R ⊆ { 1 , … , r } , we have
Pr [ S ⊇ R ] ≤ ∏ i ∈ R Pr [ i ∈ S ] = ( E [ Z ] r ) ∣ R ∣ . \Pr[S \supseteq R] \le\prod_{i\in R}\Pr[i\in S] = \left(\frac{\mathbb{E}[Z]}{r}\right)^{|R|}. Pr [ S ⊇ R ] ≤ i ∈ R ∏ Pr [ i ∈ S ] = ( r E [ Z ] ) ∣ R ∣ .
Proof. We have that Pr [ S ⊇ R ] = E [ ∏ i ∈ R X i ] \Pr[S \supseteq R]=\mathbb{E}\left[\prod_{i\in R}X_i\right] Pr [ S ⊇ R ] = E [ ∏ i ∈ R X i ] . Let R = { e 1 , … , e ∣ R ∣ } R=\{e_1,\ldots,e_{|R|}\} R = { e 1 , … , e ∣ R ∣ } , f ( X ) = ∏ j = 1 ∣ R ∣ − 1 X e j f(X)=\prod_{j=1}^{|R|-1}X_{e_j} f ( X ) = ∏ j = 1 ∣ R ∣ − 1 X e j and g ( X ) = X e ∣ R ∣ g(X)=X_{e_{|R|}} g ( X ) = X e ∣ R ∣ . Applying the NA condition on f f f and g g g yields
E [ f ( X ) g ( X ) ] ≤ E [ f ( X ) ] E [ g ( X ) ] = E [ ∏ j = 1 ∣ R ∣ − 1 X e j ] E [ X e ∣ R ∣ ] . \mathbb{E}[f(X)g(X)]\le\mathbb{E}[f(X)]\mathbb{E}[g(X)]=\mathbb{E}\left[\prod_{j=1}^{|R|-1}X_{e_j}\right]\mathbb{E}[X_{e_{|R|}}]. E [ f ( X ) g ( X )] ≤ E [ f ( X )] E [ g ( X )] = E j = 1 ∏ ∣ R ∣ − 1 X e j E [ X e ∣ R ∣ ] .
The claim then follows by induction and the fact that E [ X i ] = E [ Z ] / r \mathbb{E}[X_i]=\mathbb{E}[Z]/r E [ X i ] = E [ Z ] / r for all i ∈ [ r ] i\in[r] i ∈ [ r ] .
Using Lemma 3.3, we can show the following strong moment bound for Z Z Z .
Lemma 3.4. Let B ∼ U ( B ( M ) ) B\sim U(\mathcal{B}(M)) B ∼ U ( B ( M )) and consider a fixed set A ⊆ E A\subseteq E A ⊆ E . Also, let Z = ∣ A ∩ B ∣ Z=|A\cap B| Z = ∣ A ∩ B ∣ with z = E [ Z ] z=\mathbb{E}[Z] z = E [ Z ] . Then, for every j ≥ 1 j\ge1 j ≥ 1 ,
E [ ( Z j ) ] ≤ ( r j ) ( z r ) j ≤ z j j ! . \mathbb{E}\left[\binom{Z}{j}\right]\le\binom{r}{j}\left(\frac{z}{r}\right)^j\le\frac{z^j}{j!}. E [ ( j Z ) ] ≤ ( j r ) ( r z ) j ≤ j ! z j .
Proof. If j > r j>r j > r , then the left-hand side is zero, so let 1 ≤ j ≤ r 1\le j\le r 1 ≤ j ≤ r . Notice that ( Z j ) \binom{Z}{j} ( j Z ) counts how many subsets of A A A of size j j j are contained in A ∩ B A\cap B A ∩ B and is identically distributed to ( ∣ S ∣ j ) \binom{|S|}{j} ( j ∣ S ∣ ) . Thus, for Ω = { 1 , … , r } \Omega=\{1,\ldots,r\} Ω = { 1 , … , r } ,
( Z j ) = ( ∣ S ∣ j ) = ∑ R ⊆ Ω ∣ R ∣ = j 1 [ S ⊇ R ] . \binom{Z}{j}=\binom{|S|}{j}=\sum_{\substack{R\subseteq\Omega\\|R|=j}}\mathbf{1}[S\supseteq R]. ( j Z ) = ( j ∣ S ∣ ) = R ⊆ Ω ∣ R ∣ = j ∑ 1 [ S ⊇ R ] .
Taking expectations and using Lemma 3.3, we get that
E [ ( Z j ) ] = ∑ R ⊆ Ω ∣ R ∣ = j Pr [ S ⊇ R ] ≤ ( r j ) ( z r ) j = r ! j ! ( r − j ) ! ⋅ z j r j = z j j ! ∏ ℓ = 0 j − 1 r − ℓ r ≤ z j j ! . \mathbb{E}\left[\binom{Z}{j}\right]=\sum_{\substack{R\subseteq\Omega\\|R|=j}}\Pr[S\supseteq R]\le\binom{r}{j}\left(\frac{z}{r}\right)^j=\frac{r!}{j!(r-j)!}\cdot\frac{z^j}{r^j}=\frac{z^j}{j!}\prod_{\ell=0}^{j-1}\frac{r-\ell}{r}\le\frac{z^j}{j!}. E [ ( j Z ) ] = R ⊆ Ω ∣ R ∣ = j ∑ Pr [ S ⊇ R ] ≤ ( j r ) ( r z ) j = j ! ( r − j )! r ! ⋅ r j z j = j ! z j ℓ = 0 ∏ j − 1 r r − ℓ ≤ j ! z j .
Intuitively, E [ ( Z j ) ] \mathbb{E}\left[\binom{Z}{j}\right] E [ ( j Z ) ] is the expected number of fixed subsets of A A A of size j j j captured by the random basis. If the elements of the symmetrized model were independent with density z / r z/r z / r , each fixed subset of size j j j would appear with probability exactly ( z / r ) j (z/r)^j ( z / r ) j . The inequality of Lemma 3.3 implied by NA essentially says that, under an exchangeable ultra-log-concave distribution, each such fixed subset is no more likely to appear than in that independent model.
Next, recall that avg 2 ( M ) = ∑ e p e ( 1 − p e ) \operatorname{avg}_2(M)=\sum_e p_e(1-p_e) avg 2 ( M ) = ∑ e p e ( 1 − p e ) . We lower bound each term by
p e ( 1 − p e ) ≥ 1 2 min ( p e , 1 − p e ) . (1) p_e(1-p_e)\ge\frac{1}{2}\min(p_e,1-p_e). \tag*{(1)} p e ( 1 − p e ) ≥ 2 1 min ( p e , 1 − p e ) . (1)
Let E = L ⊔ H E=L\sqcup H E = L ⊔ H be any partition of the elements such that p e ≤ 1 / 2 p_e\le1/2 p e ≤ 1/2 for all e ∈ L e\in L e ∈ L and p e ≥ 1 / 2 p_e\ge1/2 p e ≥ 1/2 for all e ∈ H e\in H e ∈ H . Combining Lemma 3.1 and (3.1) we get
avg 2 ( M ) ≥ 1 2 ∑ e min ( p e , 1 − p e ) = 1 2 ( ∑ e ∈ L p e + ∑ e ∈ H ( 1 − p e ) ) = p ( L ) + p ˉ ( H ) 2 . (2) \operatorname{avg}_2(M)\ge\frac{1}{2}\sum_e\min(p_e,1-p_e)=\frac{1}{2}\left(\sum_{e\in L}p_e+\sum_{e\in H}(1-p_e)\right)=\frac{p(L)+\bar p(H)}{2}. \tag*{(2)} avg 2 ( M ) ≥ 2 1 e ∑ min ( p e , 1 − p e ) = 2 1 ( e ∈ L ∑ p e + e ∈ H ∑ ( 1 − p e ) ) = 2 p ( L ) + p ˉ ( H ) . (2)
where we use p ( S ) = ∑ e ∈ S p e p(S)=\sum_{e\in S}p_e p ( S ) = ∑ e ∈ S p e and p ˉ ( S ) = ∑ e ∈ S ( 1 − p e ) \bar{p}(S)=\sum_{e\in S}(1-p_e) p ˉ ( S ) = ∑ e ∈ S ( 1 − p e ) for brevity. Furthermore, notice that, by Lemma 3.2, diam 2 ( M ) \operatorname{diam}_2(M) diam 2 ( M ) is the maximum size of a common independent set of M M M and M ∗ M^* M ∗ . By Edmonds’ matroid intersection theorem, we have that
diam 2 ( M ) = min U ⊆ E { r M ( U ) + r M ∗ ( E ∖ U ) } . \operatorname{diam}_2(M)=\min_{U\subseteq E}\left\{r_M(U)+r_{M^*}(E\setminus U)\right\}. diam 2 ( M ) = U ⊆ E min { r M ( U ) + r M ∗ ( E ∖ U ) } .
Thus, if we choose U = L U=L U = L in the above equation, we get
diam 2 ( M ) ≤ r M ( L ) + r M ∗ ( H ) (3) \operatorname{diam}_2(M)\leq r_M(L)+r_{M^*}(H) \tag*{(3)} diam 2 ( M ) ≤ r M ( L ) + r M ∗ ( H ) (3)
Given (3.2) and (3.3), to complete the proof of Theorem 1.1 it suffices to show that
p ( L ) + p ˉ ( H ) ≥ r M ( L ) + r M ∗ ( H ) 8 . (4) p(L)+\bar{p}(H)\geq\frac{r_M(L)+r_{M^*}(H)}{8}. \tag*{(4)} p ( L ) + p ˉ ( H ) ≥ 8 r M ( L ) + r M ∗ ( H ) . (4)
First, notice that, if r M ∗ ( H ) ≥ ( 9 / 7 ) r M ( L ) r_{M^*}(H)\geq(9/7)r_M(L) r M ∗ ( H ) ≥ ( 9/7 ) r M ( L ) or r M ( L ) ≥ ( 9 / 7 ) r M ∗ ( H ) r_M(L)\geq(9/7)r_{M^*}(H) r M ( L ) ≥ ( 9/7 ) r M ∗ ( H ) , then a simple argument shows (3.4).
Claim 3.5. If r M ∗ ( H ) ≥ ( 9 / 7 ) r M ( L ) r_{M^*}(H)\geq(9/7)r_M(L) r M ∗ ( H ) ≥ ( 9/7 ) r M ( L ) or r M ( L ) ≥ ( 9 / 7 ) r M ∗ ( H ) r_M(L)\geq(9/7)r_{M^*}(H) r M ( L ) ≥ ( 9/7 ) r M ∗ ( H ) , then
p ( L ) + p ˉ ( H ) ≥ r M ( L ) + r M ∗ ( H ) 8 . p(L)+\bar{p}(H)\geq\frac{r_M(L)+r_{M^*}(H)}{8}. p ( L ) + p ˉ ( H ) ≥ 8 r M ( L ) + r M ∗ ( H ) .
Proof. First, assume that r M ∗ ( H ) ≥ ( 9 / 7 ) r M ( L ) r_{M^*}(H)\geq(9/7)r_M(L) r M ∗ ( H ) ≥ ( 9/7 ) r M ( L ) . Then,
p ( L ) + p ˉ ( H ) = p ( L ) + ∣ H ∣ − p ( H ) = p ( L ) + ∣ H ∣ − ( r − p ( L ) ) = 2 p ( L ) + ∣ H ∣ − r , p(L)+\bar{p}(H)=p(L)+|H|-p(H)=p(L)+|H|-(r-p(L))=2p(L)+|H|-r, p ( L ) + p ˉ ( H ) = p ( L ) + ∣ H ∣ − p ( H ) = p ( L ) + ∣ H ∣ − ( r − p ( L )) = 2 p ( L ) + ∣ H ∣ − r ,
and the dual rank formula gives
r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) ⟺ ∣ H ∣ − r = r M ∗ ( H ) − r M ( L ) . r_{M^*}(H)=|H|-r+r_M(L)\Longleftrightarrow|H|-r=r_{M^*}(H)-r_M(L). r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) ⟺ ∣ H ∣ − r = r M ∗ ( H ) − r M ( L ) .
Combining the two equalities, we get that
p ( L ) + p ˉ ( H ) = 2 p ( L ) + r M ∗ ( H ) − r M ( L ) ≥ r M ∗ ( H ) − r M ( L ) , p(L)+\bar{p}(H)=2p(L)+r_{M^*}(H)-r_M(L)\geq r_{M^*}(H)-r_M(L), p ( L ) + p ˉ ( H ) = 2 p ( L ) + r M ∗ ( H ) − r M ( L ) ≥ r M ∗ ( H ) − r M ( L ) ,
and since
r M ∗ ( H ) ≥ ( 9 / 7 ) r M ( L ) ⟺ 7 r M ∗ ( H ) ≥ 9 r M ( L ) ⟺ 8 r M ∗ ( H ) − 8 r M ( L ) ≥ r M ( L ) + r M ∗ ( H ) ⟺ r M ∗ ( H ) − r M ( L ) ≥ r M ( L ) + r M ∗ ( H ) 8 , \begin{aligned}
r_{M^*}(H)&\geq(9/7)r_M(L) &&\Longleftrightarrow\\
7r_{M^*}(H)&\geq9r_M(L) &&\Longleftrightarrow\\
8r_{M^*}(H)-8r_M(L)&\geq r_M(L)+r_{M^*}(H) &&\Longleftrightarrow\\
r_{M^*}(H)-r_M(L)&\geq\frac{r_M(L)+r_{M^*}(H)}{8},
\end{aligned} r M ∗ ( H ) 7 r M ∗ ( H ) 8 r M ∗ ( H ) − 8 r M ( L ) r M ∗ ( H ) − r M ( L ) ≥ ( 9/7 ) r M ( L ) ≥ 9 r M ( L ) ≥ r M ( L ) + r M ∗ ( H ) ≥ 8 r M ( L ) + r M ∗ ( H ) , ⟺ ⟺ ⟺
the claim follows.
Next, assume that r M ( L ) ≥ ( 9 / 7 ) r M ∗ ( H ) r_M(L)\geq(9/7)r_{M^*}(H) r M ( L ) ≥ ( 9/7 ) r M ∗ ( H ) . Then,
p ( L ) + p ˉ ( H ) = r − p ( H ) + p ˉ ( H ) = r − ∣ H ∣ + 2 p ˉ ( H ) , p(L)+\bar{p}(H)=r-p(H)+\bar{p}(H)=r-|H|+2\bar{p}(H), p ( L ) + p ˉ ( H ) = r − p ( H ) + p ˉ ( H ) = r − ∣ H ∣ + 2 p ˉ ( H ) ,
and the dual rank formula gives
r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) ⟺ r − ∣ H ∣ = r M ( L ) − r M ∗ ( H ) . r_{M^*}(H)=|H|-r+r_M(L)\Longleftrightarrow r-|H|=r_M(L)-r_{M^*}(H). r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) ⟺ r − ∣ H ∣ = r M ( L ) − r M ∗ ( H ) .
Combining the two equalities, we get that
p ( L ) + p ‾ ( H ) = r M ( L ) − r M ∗ ( H ) + 2 p ‾ ( H ) ≥ r M ( L ) − r M ∗ ( H ) , p(L) + \overline{p}(H) = r_M(L) - r_{M^*}(H) + 2\overline{p}(H) \ge r_M(L) - r_{M^*}(H), p ( L ) + p ( H ) = r M ( L ) − r M ∗ ( H ) + 2 p ( H ) ≥ r M ( L ) − r M ∗ ( H ) ,
and since
r M ( L ) ≥ ( 9 / 7 ) r M ∗ ( H ) ⟺ 7 r M ( L ) ≥ 9 r M ∗ ( H ) ⟺ 8 r M ( L ) − 8 r M ∗ ( H ) ≥ r M ( L ) + r M ∗ ( H ) ⟺ r M ( L ) − r M ∗ ( H ) ≥ r M ( L ) + r M ∗ ( H ) 8 , \begin{aligned}
r_M(L) &\ge(9/7)r_{M^*}(H) &&\Longleftrightarrow\\
7r_M(L) &\ge9r_{M^*}(H) &&\Longleftrightarrow\\
8r_M(L)-8r_{M^*}(H) &\ge r_M(L)+r_{M^*}(H) &&\Longleftrightarrow\\
r_M(L)-r_{M^*}(H) &\ge\frac{r_M(L)+r_{M^*}(H)}{8},
\end{aligned} r M ( L ) 7 r M ( L ) 8 r M ( L ) − 8 r M ∗ ( H ) r M ( L ) − r M ∗ ( H ) ≥ ( 9/7 ) r M ∗ ( H ) ≥ 9 r M ∗ ( H ) ≥ r M ( L ) + r M ∗ ( H ) ≥ 8 r M ( L ) + r M ∗ ( H ) , ⟺ ⟺ ⟺
the claim follows. □ \square □
Thus, we can assume that 7 r M ∗ ( H ) < 9 r M ( L ) 7r_{M^*}(H)<9r_M(L) 7 r M ∗ ( H ) < 9 r M ( L ) and 7 r M ( L ) < 9 r M ∗ ( H ) 7r_M(L)<9r_{M^*}(H) 7 r M ( L ) < 9 r M ∗ ( H ) . Next, suppose that we could prove p ( L ) ≥ r M ( L ) / 8 p(L)\ge r_M(L)/8 p ( L ) ≥ r M ( L ) /8 . In this case, p ‾ ( H ) ≥ r M ∗ ( H ) / 8 \overline{p}(H)\ge r_{M^*}(H)/8 p ( H ) ≥ r M ∗ ( H ) /8 would follow by duality.
Lemma 3.6. Let E = L ⊔ H E=L\sqcup H E = L ⊔ H be any partition of the elements such that p e ≤ 1 / 2 p_e\le1/2 p e ≤ 1/2 for all e ∈ L e\in L e ∈ L and p e ≥ 1 / 2 p_e\ge1/2 p e ≥ 1/2 for all e ∈ H e\in H e ∈ H . If, for every matroid M M M on E E E with rank function r M r_M r M and dual matroid M ∗ M^* M ∗ such that 7 r M ∗ ( H ) < 9 r M ( L ) 7r_{M^*}(H)<9r_M(L) 7 r M ∗ ( H ) < 9 r M ( L ) and 7 r M ( L ) < 9 r M ∗ ( H ) 7r_M(L)<9r_{M^*}(H) 7 r M ( L ) < 9 r M ∗ ( H ) , we have
p ( L ) ≥ r M ( L ) 8 , p(L)\ge\frac{r_M(L)}{8}, p ( L ) ≥ 8 r M ( L ) , where p ( L ) = ∑ e ∈ L p e p(L)=\sum_{e\in L}p_e p ( L ) = ∑ e ∈ L p e , then
p ( L ) + p ‾ ( H ) ≥ r M ( L ) + r M ∗ ( H ) 8 . p(L)+\overline{p}(H)\ge\frac{r_M(L)+r_{M^*}(H)}{8}. p ( L ) + p ( H ) ≥ 8 r M ( L ) + r M ∗ ( H ) . Proof. If B B B is a uniformly random basis of M M M , then E ∖ B E\setminus B E ∖ B is a uniformly random basis of M ∗ M^* M ∗ . This implies that, if the marginal of an element e e e in U ( B ( M ) ) \mathcal{U}(\mathcal{B}(M)) U ( B ( M )) is p e = Pr [ e ∈ B ] p_e=\Pr[e\in B] p e = Pr [ e ∈ B ] , then if we draw B ∗ = E ∖ B B^*=E\setminus B B ∗ = E ∖ B uniformly at random from B ( M ∗ ) \mathcal{B}(M^*) B ( M ∗ ) , we have p e ∗ = Pr [ e ∈ B ∗ ] = Pr [ e ∉ B ] = 1 − p e p_e^*=\Pr[e\in B^*]=\Pr[e\notin B]=1-p_e p e ∗ = Pr [ e ∈ B ∗ ] = Pr [ e ∈ / B ] = 1 − p e . Let L ∗ = H L^*=H L ∗ = H and H ∗ = L H^*=L H ∗ = L , since p e ∗ ≤ 1 / 2 ⟹ p e ≥ 1 / 2 p_e^*\le1/2\Longrightarrow p_e\ge1/2 p e ∗ ≤ 1/2 ⟹ p e ≥ 1/2 . Therefore, the same argument applied to the dual matroid M ∗ M^* M ∗ would yield
p ∗ ( L ∗ ) ≥ r M ∗ ( L ∗ ) 8 ⟺ p ‾ ( H ) ≥ r M ∗ ( H ) 8 . p^*(L^*)\ge\frac{r_{M^*}(L^*)}{8}\Longleftrightarrow\overline{p}(H)\ge\frac{r_{M^*}(H)}{8}. p ∗ ( L ∗ ) ≥ 8 r M ∗ ( L ∗ ) ⟺ p ( H ) ≥ 8 r M ∗ ( H ) . □ \square □
Therefore, it remains to show
p ( L ) ≥ r M ( L ) 8 , (5) p(L)\ge\frac{r_M(L)}{8}, \tag*{(5)} p ( L ) ≥ 8 r M ( L ) , (5)
under the assumption
7 r M ∗ ( H ) < 9 r M ( L ) and 7 r M ( L ) < 9 r M ∗ ( H ) ⟺ 7 9 r M ( L ) < r M ∗ ( H ) < 9 7 r M ( L ) , (6) 7r_{M^*}(H)<9r_M(L)\quad\text{and}\quad7r_M(L)<9r_{M^*}(H)\Longleftrightarrow\frac{7}{9}r_M(L)<r_{M^*}(H)<\frac{9}{7}r_M(L), \tag*{(6)} 7 r M ∗ ( H ) < 9 r M ( L ) and 7 r M ( L ) < 9 r M ∗ ( H ) ⟺ 9 7 r M ( L ) < r M ∗ ( H ) < 7 9 r M ( L ) , (6)
since then (3.4) follows by Lemma 3.6. We prove (3.5) under the assumption of (3.6) via contradiction. First, we present the following lemma, which essentially lower-bounds the expected rank of B B B inside L L L and is the main tool we use for our proof.
Lemma 3.7. Let B ∼ U ( B ( M ) ) B \sim U(\mathcal{B}(M)) B ∼ U ( B ( M )) and E = L ⊔ H E = L \sqcup H E = L ⊔ H be any partition of the elements such that p e ≤ 1 / 2 p_e \le1/2 p e ≤ 1/2 for all e ∈ L e \in L e ∈ L and p e ≥ 1 / 2 p_e \ge1/2 p e ≥ 1/2 for all e ∈ H e \in H e ∈ H . Also, let A A A be a basis of M ∣ L = M ∖ ( E ∖ L ) M|_L = M \setminus(E \setminus L) M ∣ L = M ∖ ( E ∖ L ) and t = r M ( L ) − ∣ B ∩ L ∣ t = r_M(L) - |B \cap L| t = r M ( L ) − ∣ B ∩ L ∣ . Then, for every j ≥ 1 j \ge1 j ≥ 1 ,
E [ ( t j ) ] ≤ E [ ( ∣ A ∩ B ∣ j ) ( ∣ H ∖ B ∣ j ) ] \mathbb{E}\left[\binom{t}{j}\right] \le\mathbb{E}\left[\binom{|A \cap B|}{j}\binom{|H \setminus B|}{j}\right] E [ ( j t ) ] ≤ E [ ( j ∣ A ∩ B ∣ ) ( j ∣ H ∖ B ∣ ) ] Proof. If H = ∅ H = \varnothing H = ∅ , then L = E L = E L = E and r M ( L ) = r r_M(L) = r r M ( L ) = r . Hence, every basis B ∈ B ( M ) B \in\mathcal{B}(M) B ∈ B ( M ) satisfies ∣ B ∩ L ∣ = r M ( L ) |B \cap L| = r_M(L) ∣ B ∩ L ∣ = r M ( L ) , and thus t = 0 t = 0 t = 0 . Also, ∣ H ∖ B ∣ = 0 |H \setminus B| = 0 ∣ H ∖ B ∣ = 0 . Since j ≥ 1 j \ge1 j ≥ 1 , both sides of the inequality are zero.
Assume that H ≠ ∅ H \ne\varnothing H = ∅ and fix a realization of B B B . Let M ′ M' M ′ denote the minor of M ∣ L M|_L M ∣ L where we have contracted B ∩ L B \cap L B ∩ L , i.e. M ′ = ( M ∖ H ) / ( B ∩ L ) M' = (M \setminus H)/(B \cap L) M ′ = ( M ∖ H ) / ( B ∩ L ) . The idea is to count the ways that we can exchange j j j new elements from a fixed basis A ′ A' A ′ of M ′ M' M ′ into an arbitrary basis B B B .
Since A A A spans M ∣ L M|_L M ∣ L , the set A ∖ ( B ∩ L ) A \setminus(B \cap L) A ∖ ( B ∩ L ) spans M ′ M' M ′ and thus contains a basis A ′ A' A ′ of M ′ M' M ′ . Furthermore, the rank of A ′ A' A ′ is exactly r M ( L ) − ∣ B ∩ L ∣ = t r_M(L) - |B \cap L| = t r M ( L ) − ∣ B ∩ L ∣ = t . In other words, A ′ A' A ′ is a basis of M ′ M' M ′ of size t t t and therefore contains at least ( t j ) \binom{t}{j} ( j t ) independent subsets R R R of size j j j .
For each such independent set R ⊆ A ′ R \subseteq A' R ⊆ A ′ of size j j j , the set B R = ( B ∩ L ) ∪ R B_R = (B \cap L) \cup R B R = ( B ∩ L ) ∪ R is independent in M M M and we can further extend it to a basis of M M M using elements of B ∖ B R B \setminus B_R B ∖ B R , by the exchange axiom for matroids. Recall that B ∩ L B \cap L B ∩ L and B ∩ H B \cap H B ∩ H partition B B B . Since B ∩ L ⊆ B B \cap L \subseteq B B ∩ L ⊆ B and R ∩ ( B ∩ L ) = ∅ R \cap(B \cap L) = \varnothing R ∩ ( B ∩ L ) = ∅ , this extension uses exactly ∣ B ∩ H ∣ − j |B \cap H| - j ∣ B ∩ H ∣ − j elements of B ∩ H B \cap H B ∩ H ; the remaining j j j elements are the elements in R R R . In other words, there exists a set J ⊆ B ∩ H J \subseteq B \cap H J ⊆ B ∩ H of size j j j such that B ′ = ( B ∖ J ) ∪ R B' = (B \setminus J) \cup R B ′ = ( B ∖ J ) ∪ R is a basis of M M M . For each pair ( B , R ) (B,R) ( B , R ) , we choose one such J J J , and define the map
Φ ( B , R ) = ( B ′ , R , J ) , \Phi(B,R) = (B',R,J), Φ ( B , R ) = ( B ′ , R , J ) , where B ′ = ( B ∖ J ) ∪ R B' = (B \setminus J) \cup R B ′ = ( B ∖ J ) ∪ R . The domain of Φ \Phi Φ is
D = { ( B , R ) ∣ B is a basis of M and R ⊆ A ′ } . \mathcal{D} = \{(B,R) \mid B \text{ is a basis of } M \text{ and } R \subseteq A'\}. D = {( B , R ) ∣ B is a basis of M and R ⊆ A ′ } . See Figure 3.1 for a visual representation of all the sets.
Figure 3.1. E E E is partitioned into L L L and H H H . B B B and B ′ = ( B ∖ J ) ∪ R B' = (B \setminus J) \cup R B ′ = ( B ∖ J ) ∪ R are bases of M M M . A ⊆ L A \subseteq L A ⊆ L is a basis of M ∣ L M|_L M ∣ L . R R R is a subset of A ′ = A ∖ ( B ∩ L ) A' = A \setminus(B \cap L) A ′ = A ∖ ( B ∩ L ) . Both J ⊆ B ∩ H J \subseteq B \cap H J ⊆ B ∩ H and R ⊆ A ′ R \subseteq A' R ⊆ A ′ have size j j j .
Note that Φ \Phi Φ is injective since, from a triple ( B ′ , R , J ) (B',R,J) ( B ′ , R , J ) we recover B B B as B = ( B ′ ∖ R ) ∪ J B = (B' \setminus R) \cup J B = ( B ′ ∖ R ) ∪ J . Next, we uncondition our fixed choice of B B B . We can count all subsets of A ∖ B A \setminus B A ∖ B of size j j j , which correspond to possible sets R R R , by counting all possible pairs ( B ′ , J ) (B',J) ( B ′ , J ) that, together with a choice of R R R , yield a basis B B B of M M M via the map Φ \Phi Φ . In other words, if we denote the image of Φ \Phi Φ by Im ( Φ ) \operatorname{Im}(\Phi) Im ( Φ ) , we have
∑ B ∈ B ( M ) ( t j ) ≤ ∣ Im ( Φ ) ∣ . \sum_{B \in\mathcal{B}(M)} \binom{t}{j} \le|\operatorname{Im}(\Phi)|. B ∈ B ( M ) ∑ ( j t ) ≤ ∣ Im ( Φ ) ∣. It remains to bound the size of the image of Φ \Phi Φ , by summing over the target bases B ′ B' B ′ . Fix a target basis B ′ B' B ′ . For an triple ( B ′ , R , J ) (B',R,J) ( B ′ , R , J ) in the image of Φ \Phi Φ , we have
R ⊆ A ∩ B ′ R \subseteq A \cap B' R ⊆ A ∩ B ′ , since R R R is chosen from the subsets of A A A and also R ⊆ B ′ R \subseteq B' R ⊆ B ′ ,
J ⊆ H ∖ B ′ J \subseteq H \setminus B' J ⊆ H ∖ B ′ , since J J J was removed from B ′ B' B ′ , and
∣ R ∣ = ∣ J ∣ = j |R| = |J| = j ∣ R ∣ = ∣ J ∣ = j .
Hence, for this fixed target basis B ′ B' B ′ , the number of possible pairs ( R , J ) (R,J) ( R , J ) such that ( B ′ , R , J ) ∈ Im ( Φ ) (B',R,J) \in\operatorname{Im}(\Phi) ( B ′ , R , J ) ∈ Im ( Φ ) is at most
( ∣ A ∩ B ′ ∣ j ) ( ∣ H ∖ B ′ ∣ j ) . \binom{|A \cap B'|}{j}\binom{|H \setminus B'|}{j}. ( j ∣ A ∩ B ′ ∣ ) ( j ∣ H ∖ B ′ ∣ ) .
Finally, summing over all target bases B ′ B' B ′ gives
∑ B ∈ B ( M ) ( t j ) ≤ ∑ B ′ ∈ B ( M ) ( ∣ A ∩ B ′ ∣ j ) ( ∣ H ∖ B ′ ∣ j ) . \sum_{B \in\mathcal{B}(M)} \binom{t}{j}
\leq
\sum_{B' \in\mathcal{B}(M)}
\binom{|A \cap B'|}{j}
\binom{|H \setminus B'|}{j}. B ∈ B ( M ) ∑ ( j t ) ≤ B ′ ∈ B ( M ) ∑ ( j ∣ A ∩ B ′ ∣ ) ( j ∣ H ∖ B ′ ∣ ) .
and if we divide both sides by ∣ B ( M ) ∣ |\mathcal{B}(M)| ∣ B ( M ) ∣ , we obtain that
E [ ( t j ) ] ≤ E [ ( ∣ A ∩ B ∣ j ) ( ∣ H ∖ B ∣ j ) ] . \mathbb{E}\left[\binom{t}{j}\right]
\leq
\mathbb{E}\left[
\binom{|A \cap B|}{j}
\binom{|H \setminus B|}{j}
\right]. E [ ( j t ) ] ≤ E [ ( j ∣ A ∩ B ∣ ) ( j ∣ H ∖ B ∣ ) ] .
We will also need the following lemma which follows by applying Jensen’s inequality to an appropriate convex extension of the binomial function.
Lemma 3.8. Let W W W be an integer-valued random variable in { 0 , … , s } \{0,\ldots,s\} { 0 , … , s } . For any j ≥ 1 j \geq1 j ≥ 1 and w ≥ j − 1 w \geq j-1 w ≥ j − 1 , if E [ W ] ≥ w \mathbb{E}[W] \geq w E [ W ] ≥ w , then
E [ ( W j ) ] ≥ ( w j ) . \mathbb{E}\left[\binom{W}{j}\right] \geq\binom{w}{j}. E [ ( j W ) ] ≥ ( j w ) .
Proof. The idea is to extend the binomial function from the integers to the reals by linear interpolation. Specifically, let f ( k ) = ( k j ) f(k) = \binom{k}{j} f ( k ) = ( j k ) and ϕ \phi ϕ be the piecewise-linear interpolation of f f f between the integer values. In other words,
ϕ ( x ) = ( ⌊ x ⌋ + 1 − x ) ( ⌊ x ⌋ j ) + ( x − ⌊ x ⌋ ) ( ⌈ x ⌉ j ) . \phi(x) = (\lfloor x \rfloor+ 1 - x)\binom{\lfloor x \rfloor}{j}
+ (x-\lfloor x \rfloor)\binom{\lceil x \rceil}{j}. ϕ ( x ) = (⌊ x ⌋ + 1 − x ) ( j ⌊ x ⌋ ) + ( x − ⌊ x ⌋) ( j ⌈ x ⌉ ) .
Since ϕ \phi ϕ is piece-wise linear, ⌊ x ⌋ \lfloor x \rfloor ⌊ x ⌋ and ⌈ x ⌉ \lceil x \rceil ⌈ x ⌉ do not change between consecutive integers, and also it is differentiable in R ∖ Z \mathbb{R} \setminus\mathbb{Z} R ∖ Z . Therefore, its derivative is
ϕ ′ ( x ) = ( ⌊ x ⌋ j ) − ( ⌈ x ⌉ j ) = ( ⌊ x ⌋ j − 1 ) , \phi'(x) =
\binom{\lfloor x \rfloor}{j}
-
\binom{\lceil x \rceil}{j}
=
\binom{\lfloor x \rfloor}{j-1}, ϕ ′ ( x ) = ( j ⌊ x ⌋ ) − ( j ⌈ x ⌉ ) = ( j − 1 ⌊ x ⌋ ) ,
which is non-decreasing in x x x . Thus, ϕ \phi ϕ is convex. By Jensen’s inequality, we have
E [ ( W j ) ] = E [ ϕ ( W ) ] ≥ ϕ ( E [ W ] ) . \mathbb{E}\left[\binom{W}{j}\right]
=
\mathbb{E}[\phi(W)]
\geq
\phi(\mathbb{E}[W]). E [ ( j W ) ] = E [ ϕ ( W )] ≥ ϕ ( E [ W ]) .
Also, since ϕ ′ ( x ) ≥ 0 \phi'(x) \geq0 ϕ ′ ( x ) ≥ 0 , ϕ \phi ϕ is non-decreasing, and thus ϕ ( E [ W ] ) ≥ ϕ ( w ) \phi(\mathbb{E}[W]) \geq\phi(w) ϕ ( E [ W ]) ≥ ϕ ( w ) . Finally, the polynomial ( w j ) \binom{w}{j} ( j w ) is convex in w w w and since ϕ \phi ϕ is the linear interpolation between the integer points, we get that
ϕ ( w ) ≥ ( w j ) . \phi(w) \geq\binom{w}{j}. ϕ ( w ) ≥ ( j w ) .
We are finally ready to prove Theorem 1.1.
Proof of Theorem 1.1. Combining Claim 3.5 with (2) and (3) yields the theorem when r M ∗ ( H ) ≥ ( 9 / 7 ) r M ( L ) r_{M^*}(H) \ge(9/7)r_M(L) r M ∗ ( H ) ≥ ( 9/7 ) r M ( L ) or r M ( L ) ≥ ( 9 / 7 ) r M ∗ ( H ) r_M(L) \ge(9/7)r_{M^*}(H) r M ( L ) ≥ ( 9/7 ) r M ∗ ( H ) . Assume that ( 7 / 9 ) r M ( L ) < r M ∗ ( H ) < ( 9 / 7 ) r M ( L ) (7/9)r_M(L) < r_{M^*}(H) < (9/7)r_M(L) ( 7/9 ) r M ( L ) < r M ∗ ( H ) < ( 9/7 ) r M ( L ) . We show that p ( L ) ≥ ( 1 / 8 ) r M ( L ) p(L) \ge(1/8)r_M(L) p ( L ) ≥ ( 1/8 ) r M ( L ) . The theorem then follows from Lemma 3.6 , again combined with (2) and (3) .
First, note that, if r M ( L ) = 0 r_M(L)=0 r M ( L ) = 0 the inequality holds trivially. Also, if 1 ≤ r M ( L ) ≤ 3 1 \le r_M(L) \le3 1 ≤ r M ( L ) ≤ 3 then, since r M ( L ) r_M(L) r M ( L ) is an integer, by our assumption, ( 7 / 9 ) r M ( L ) < r M ∗ ( H ) < ( 9 / 7 ) r M ( L ) (7/9)r_M(L) < r_{M^*}(H) < (9/7)r_M(L) ( 7/9 ) r M ( L ) < r M ∗ ( H ) < ( 9/7 ) r M ( L ) , we obtain that max { 1 , r M ( L ) } ≤ r M ∗ ( H ) ≤ min { 3 , r M ( L ) } \max\{1,r_M(L)\} \le r_{M^*}(H) \le\min\{3,r_M(L)\} max { 1 , r M ( L )} ≤ r M ∗ ( H ) ≤ min { 3 , r M ( L )} . By Lemma 3.7 for j = 1 j=1 j = 1 , we have
E [ t ] = r M ( L ) − p ( L ) ≤ E [ Z ⋅ ∣ H ∖ B ∣ ] . \mathbb{E}[t]=r_M(L)-p(L)\le\mathbb{E}[Z\cdot\lvert H\setminus B\rvert]. E [ t ] = r M ( L ) − p ( L ) ≤ E [ Z ⋅ ∣ H ∖ B ∣] .
Furthermore, by the definition of the dual rank function,
r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) , (7) r_{M^*}(H)=\lvert H\rvert-r+r_M(L), \tag*{(7)} r M ∗ ( H ) = ∣ H ∣ − r + r M ( L ) , (7)
where r = r ( M ) r=r(M) r = r ( M ) is the rank of M M M . Also,
∣ H ∖ B ∣ = ∣ H ∣ − ∣ B ∩ H ∣ = ∣ H ∣ − ( r − ∣ B ∩ L ∣ ) ⟺ ∣ H ∖ B ∣ − ∣ B ∩ L ∣ = ∣ H ∣ − r . (8) \lvert H\setminus B\rvert=\lvert H\rvert-\lvert B\cap H\rvert=\lvert H\rvert-(r-\lvert B\cap L\rvert)\Longleftrightarrow\lvert H\setminus B\rvert-\lvert B\cap L\rvert=\lvert H\rvert-r. \tag*{(8)} ∣ H ∖ B ∣ = ∣ H ∣ − ∣ B ∩ H ∣ = ∣ H ∣ − ( r − ∣ B ∩ L ∣) ⟺ ∣ H ∖ B ∣ − ∣ B ∩ L ∣ = ∣ H ∣ − r . (8)
By the above two equations, we get that ∣ H ∖ B ∣ = ∣ B ∩ L ∣ + r M ∗ ( H ) − r M ( L ) ≤ ∣ B ∩ L ∣ \lvert H\setminus B\rvert=\lvert B\cap L\rvert+r_{M^*}(H)-r_M(L)\le\lvert B\cap L\rvert ∣ H ∖ B ∣ = ∣ B ∩ L ∣ + r M ∗ ( H ) − r M ( L ) ≤ ∣ B ∩ L ∣ , where the inequality follows from r M ∗ ( H ) ≤ r M ( L ) r_{M^*}(H)\le r_M(L) r M ∗ ( H ) ≤ r M ( L ) . Since this inequality holds point-wise for all B B B , we obtain
E [ t ] = r M ( L ) − p ( L ) ≤ E [ Z ⋅ ∣ B ∩ L ∣ ] ≤ r M ( L ) E [ Z ] ≤ r M ( L ) p ( L ) . \mathbb{E}[t]=r_M(L)-p(L)\le\mathbb{E}[Z\cdot\lvert B\cap L\rvert]\le r_M(L)\mathbb{E}[Z]\le r_M(L)p(L). E [ t ] = r M ( L ) − p ( L ) ≤ E [ Z ⋅ ∣ B ∩ L ∣] ≤ r M ( L ) E [ Z ] ≤ r M ( L ) p ( L ) .
Re-arranging the above inequality, we obtain
p ( L ) ≥ r M ( L ) 1 + r M ( L ) > r M ( L ) 8 , p(L)\ge\frac{r_M(L)}{1+r_M(L)}>\frac{r_M(L)}{8}, p ( L ) ≥ 1 + r M ( L ) r M ( L ) > 8 r M ( L ) ,
for all r M ( L ) ∈ { 1 , 2 , 3 } r_M(L)\in\{1,2,3\} r M ( L ) ∈ { 1 , 2 , 3 } .
Next, we assume that r M ( L ) ≥ 4 r_M(L)\ge4 r M ( L ) ≥ 4 . Fix a constant λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] to be decided later. Assume, towards contradiction, that p ( L ) < λ r M ( L ) p(L)<\lambda r_M(L) p ( L ) < λ r M ( L ) , and let A A A be a basis of M ∣ L = M ∖ H M|_L=M\setminus H M ∣ L = M ∖ H that minimizes p ( A ) p(A) p ( A ) . Also let Z = ∣ A ∩ B ∣ Z=\lvert A\cap B\rvert Z = ∣ A ∩ B ∣ and z = E [ Z ] z=\mathbb{E}[Z] z = E [ Z ] . Then,
z = E [ ∣ A ∩ B ∣ ] = ∑ e ∈ A p e ≤ ∑ e ∈ L p e = p ( L ) < λ r M ( L ) , z=\mathbb{E}[\lvert A\cap B\rvert]=\sum_{e\in A}p_e\le\sum_{e\in L}p_e=p(L)<\lambda r_M(L), z = E [∣ A ∩ B ∣] = e ∈ A ∑ p e ≤ e ∈ L ∑ p e = p ( L ) < λ r M ( L ) ,
where the last inequality follows from our assumption. Let j = ⌈ ( 3 / 4 ) r M ( L ) ⌉ j=\lceil(3/4)r_M(L)\rceil j = ⌈( 3/4 ) r M ( L )⌉ and note that j ≥ 1 j\ge1 j ≥ 1 . Also, let t : = r M ( L ) − ∣ B ∩ L ∣ t:=r_M(L)-\lvert B\cap L\rvert t := r M ( L ) − ∣ B ∩ L ∣ , with E [ t ] = r M ( L ) − p ( L ) > ( 1 − λ ) r M ( L ) \mathbb{E}[t]=r_M(L)-p(L)>(1-\lambda)r_M(L) E [ t ] = r M ( L ) − p ( L ) > ( 1 − λ ) r M ( L ) . Thus, by Lemma 3.8 , we have
E [ ( t j ) ] > ( ⌊ ( 1 − λ ) r M ( L ) ⌋ j ) , (9) \mathbb{E}\left[\binom{t}{j}\right]>\binom{\lfloor(1-\lambda)r_M(L)\rfloor}{j}, \tag*{(9)} E [ ( j t ) ] > ( j ⌊( 1 − λ ) r M ( L )⌋ ) , (9)
for ⌊ ( 1 − λ ) r M ( L ) ⌋ ≥ j − 1 = ⌈ ( 3 / 4 ) r M ( L ) ⌉ − 1 \lfloor(1-\lambda)r_M(L)\rfloor\ge j-1=\lceil(3/4)r_M(L)\rceil-1 ⌊( 1 − λ ) r M ( L )⌋ ≥ j − 1 = ⌈( 3/4 ) r M ( L )⌉ − 1 , which holds for r M ( L ) ≥ 4 r_M(L)\ge4 r M ( L ) ≥ 4 if λ ≤ 1 / 2 \lambda\le1/2 λ ≤ 1/2 . The inequality is strict, because E [ t ] > ⌊ ( 1 − λ ) r M ( L ) ⌋ \mathbb{E}[t]>\lfloor(1-\lambda)r_M(L)\rfloor E [ t ] > ⌊( 1 − λ ) r M ( L )⌋ and the interpolation is strictly increasing beyond j − 1 j-1 j − 1 . We show that (9) contradicts Lemma 3.7 , which says that
E [ ( t j ) ] ≤ E [ ( Z j ) ( ∣ H ∖ B ∣ j ) ] . \mathbb{E}\left[\binom{t}{j}\right]\le\mathbb{E}\left[\binom{Z}{j}\binom{\lvert H\setminus B\rvert}{j}\right]. E [ ( j t ) ] ≤ E [ ( j Z ) ( j ∣ H ∖ B ∣ ) ] .
First, we deal with ∣ H ∖ B ∣ \lvert H\setminus B\rvert ∣ H ∖ B ∣ . Since B ∈ B ( M ) B\in\mathcal{B}(M) B ∈ B ( M ) , we have that E ∖ B ∈ B ( M ∗ ) E\setminus B\in\mathcal{B}(M^*) E ∖ B ∈ B ( M ∗ ) , which implies that H ∖ B H\setminus B H ∖ B is an independent set of M ∗ M^* M ∗ . Thus, ∣ H ∖ B ∣ = r M ∗ ( H ∖ B ) ≤ r M ∗ ( H ) \lvert H\setminus B\rvert=r_{M^*}(H\setminus B)\le r_{M^*}(H) ∣ H ∖ B ∣ = r M ∗ ( H ∖ B ) ≤ r M ∗ ( H ) . By (8) and (7) we obtain that
r M ∗ ( H ) − r M ( L ) = ∣ H ∖ B ∣ − ∣ B ∩ L ∣ = p ‾ ( H ) − p ( L ) . r_{M^*}(H)-r_M(L)=\lvert H\setminus B\rvert-\lvert B\cap L\rvert=\overline{p}(H)-p(L). r M ∗ ( H ) − r M ( L ) = ∣ H ∖ B ∣ − ∣ B ∩ L ∣ = p ( H ) − p ( L ) .
By our assumption, we have that r M ( L ) > ( 7 / 9 ) r M ∗ ( H ) r_M(L) > (7/9)r_{M^*}(H) r M ( L ) > ( 7/9 ) r M ∗ ( H ) . Since ∣ H ∖ B ∣ ≤ r M ∗ ( H ) ≤ ( 9 / 7 ) r M ( L ) |H \setminus B| \le r_{M^*}(H) \le(9/7)r_M(L) ∣ H ∖ B ∣ ≤ r M ∗ ( H ) ≤ ( 9/7 ) r M ( L ) and the function f ( x ) = ( x j ) f(x) = \binom{x}{j} f ( x ) = ( j x ) is increasing in x x x for x ∈ [ j − 1 , + ∞ ) x \in[j-1,+\infty) x ∈ [ j − 1 , + ∞ ) , we obtain that
( ∣ H ∖ B ∣ j ) ≤ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) . \binom{|H \setminus B|}{j} \le\binom{\lceil(9/7)r_M(L)\rceil}{j}. ( j ∣ H ∖ B ∣ ) ≤ ( j ⌈( 9/7 ) r M ( L )⌉ ) .
where the inequality holds point-wise for any ∣ H ∖ B ∣ |H \setminus B| ∣ H ∖ B ∣ . Thus,
E [ ( Z j ) ( ∣ H ∖ B ∣ j ) ] ≤ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) E [ ( Z j ) ] . \mathbb{E}\left[\binom{Z}{j}\binom{|H \setminus B|}{j}\right] \le\binom{\lceil(9/7)r_M(L)\rceil}{j}\mathbb{E}\left[\binom{Z}{j}\right]. E [ ( j Z ) ( j ∣ H ∖ B ∣ ) ] ≤ ( j ⌈( 9/7 ) r M ( L )⌉ ) E [ ( j Z ) ] .
Next, we deal with E [ ( Z j ) ] \mathbb{E}\left[\binom{Z}{j}\right] E [ ( j Z ) ] . Recall that z = E [ Z ] < λ r M ( L ) z = \mathbb{E}[Z] < \lambda r_M(L) z = E [ Z ] < λ r M ( L ) . Using Lemma 3.4, we get that
E [ ( Z j ) ( ∣ H ∖ B ∣ j ) ] ≤ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) z j j ! ≤ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) ( λ r M ( L ) ) j j ! . \mathbb{E}\left[\binom{Z}{j}\binom{|H \setminus B|}{j}\right] \le\binom{\lceil(9/7)r_M(L)\rceil}{j}\frac{z^j}{j!} \le\binom{\lceil(9/7)r_M(L)\rceil}{j}\frac{(\lambda r_M(L))^j}{j!}. E [ ( j Z ) ( j ∣ H ∖ B ∣ ) ] ≤ ( j ⌈( 9/7 ) r M ( L )⌉ ) j ! z j ≤ ( j ⌈( 9/7 ) r M ( L )⌉ ) j ! ( λ r M ( L ) ) j .
Note that, by Lemma 3.7, this implies that
E [ ( t j ) ] ≤ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) ( λ r M ( L ) ) j j ! . (10) \mathbb{E}\left[\binom{t}{j}\right] \le\binom{\lceil(9/7)r_M(L)\rceil}{j}\frac{(\lambda r_M(L))^j}{j!}. \tag*{(10)} E [ ( j t ) ] ≤ ( j ⌈( 9/7 ) r M ( L )⌉ ) j ! ( λ r M ( L ) ) j . (10)
We claim that (3.9) contradicts (3.10). In other words, we claim that, for an appropriate choice of λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) ,
( ⌊ ( 1 − λ ) r M ( L ) ⌋ j ) ≥ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) ( λ r M ( L ) ) j j ! . (11) \binom{\lfloor(1-\lambda)r_M(L)\rfloor}{j} \ge\binom{\lceil(9/7)r_M(L)\rceil}{j}\frac{(\lambda r_M(L))^j}{j!}. \tag*{(11)} ( j ⌊( 1 − λ ) r M ( L )⌋ ) ≥ ( j ⌈( 9/7 ) r M ( L )⌉ ) j ! ( λ r M ( L ) ) j . (11)
First, we simplify (3.11).
( ⌊ ( 1 − λ ) r M ( L ) ⌋ j ) ≥ ( ⌈ ( 9 / 7 ) r M ( L ) ⌉ j ) ( λ r M ( L ) ) j j ! ∏ k = 0 j − 1 ⌊ ( 1 − λ ) r M ( L ) − k ⌋ ≥ ( λ r M ( L ) ) j j ! ∏ k = 0 j − 1 ⌈ ( 9 / 7 ) r M ( L ) − k ⌉ ∏ k = 0 j − 1 ⌊ ( 1 − λ ) r M ( L ) − k ⌋ ⌈ ( 9 / 7 ) r M ( L ) − k ⌉ ≥ ( λ r M ( L ) ) j j ! . (12) \begin{aligned}
\binom{\lfloor(1-\lambda)r_M(L)\rfloor}{j}
&\ge\binom{\lceil(9/7)r_M(L)\rceil}{j}\frac{(\lambda r_M(L))^j}{j!}
\\
\prod_{k=0}^{j-1}\lfloor(1-\lambda)r_M(L)-k\rfloor
&\ge\frac{(\lambda r_M(L))^j}{j!}\prod_{k=0}^{j-1}\lceil(9/7)r_M(L)-k\rceil
\\
\prod_{k=0}^{j-1}\frac{\lfloor(1-\lambda)r_M(L)-k\rfloor}{\lceil(9/7)r_M(L)-k\rceil}
&\ge\frac{(\lambda r_M(L))^j}{j!}. \tag*{(12)}
\end{aligned} ( j ⌊( 1 − λ ) r M ( L )⌋ ) k = 0 ∏ j − 1 ⌊( 1 − λ ) r M ( L ) − k ⌋ k = 0 ∏ j − 1 ⌈( 9/7 ) r M ( L ) − k ⌉ ⌊( 1 − λ ) r M ( L ) − k ⌋ ≥ ( j ⌈( 9/7 ) r M ( L )⌉ ) j ! ( λ r M ( L ) ) j ≥ j ! ( λ r M ( L ) ) j k = 0 ∏ j − 1 ⌈( 9/7 ) r M ( L ) − k ⌉ ≥ j ! ( λ r M ( L ) ) j . (12)
For the factors above to be all positive, we need that ⌈ ( 9 / 7 ) r M ( L ) − j + 1 ⌉ > 0 \lceil(9/7)r_M(L)-j+1\rceil> 0 ⌈( 9/7 ) r M ( L ) − j + 1 ⌉ > 0 which is true for r M ( L ) ≥ 4 r_M(L) \ge4 r M ( L ) ≥ 4 , and ⌊ ( 1 − λ ) r M ( L ) − ( j − 1 ) ⌋ > 0 ⟺ ⌊ ( 1 − λ ) r M ( L ) − ⌈ ( 3 / 4 ) r M ( L ) ⌉ + 1 ⌋ > 0 \lfloor(1-\lambda)r_M(L)-(j-1)\rfloor> 0 \Longleftrightarrow\lfloor(1-\lambda)r_M(L)-\lceil(3/4)r_M(L)\rceil+1\rfloor> 0 ⌊( 1 − λ ) r M ( L ) − ( j − 1 )⌋ > 0 ⟺ ⌊( 1 − λ ) r M ( L ) − ⌈( 3/4 ) r M ( L )⌉ + 1 ⌋ > 0 . The latter implies
( 1 − λ ) r M ( L ) − ⌈ ( 3 / 4 ) r M ( L ) ⌉ + 1 ≥ 1 ⟺ ( 1 − λ ) r M ( L ) ≥ ⌈ ( 3 / 4 ) r M ( L ) ⌉ ⟺ λ ≤ 1 − ⌈ ( 3 / 4 ) r M ( L ) ⌉ r M ( L ) , (1-\lambda)r_M(L)-\lceil(3/4)r_M(L)\rceil+1 \ge1 \Longleftrightarrow(1-\lambda)r_M(L) \ge\lceil(3/4)r_M(L)\rceil\Longleftrightarrow\lambda\le1-\frac{\lceil(3/4)r_M(L)\rceil}{r_M(L)}, ( 1 − λ ) r M ( L ) − ⌈( 3/4 ) r M ( L )⌉ + 1 ≥ 1 ⟺ ( 1 − λ ) r M ( L ) ≥ ⌈( 3/4 ) r M ( L )⌉ ⟺ λ ≤ 1 − r M ( L ) ⌈( 3/4 ) r M ( L )⌉ ,
and since r M ( L ) − ⌈ ( 3 / 4 ) r M ( L ) ⌉ = ⌊ ( 1 / 4 ) r M ( L ) ⌋ r_M(L)-\lceil(3/4)r_M(L)\rceil=\lfloor(1/4)r_M(L)\rfloor r M ( L ) − ⌈( 3/4 ) r M ( L )⌉ = ⌊( 1/4 ) r M ( L )⌋ , we get λ ≤ ⌊ ( 1 / 4 ) r M ( L ) ⌋ / r M ( L ) \lambda\le\lfloor(1/4)r_M(L)\rfloor/r_M(L) λ ≤ ⌊( 1/4 ) r M ( L )⌋ / r M ( L ) . Since λ > 0 \lambda> 0 λ > 0 , this implies r M ( L ) ≥ 4 r_M(L) \ge4 r M ( L ) ≥ 4 , which is true; thus all terms of (3.12) are positive. Also, the left-hand side is decreasing in λ \lambda λ , while the right-hand side in increasing in λ \lambda λ . Furthermore, note that, for λ \lambda λ close to 0 0 0 , the left-hand side is positive, while the right-hand side tends to 0 0 0 . Thus, there exists a λ ∗ ∈ ( 0 , 1 ) \lambda^* \in(0,1) λ ∗ ∈ ( 0 , 1 ) such that (3.12) holds for λ ∈ ( 0 , λ ∗ ) \lambda\in(0,\lambda^*) λ ∈ ( 0 , λ ∗ ) . The proof of the following claim can be found in Appendix A.
Claim 3.9. Let
F ( λ ) = ( 1 − λ ) log ( 1 − λ ) − ( 1 4 − λ ) log ( 1 4 − λ ) − 9 7 log 9 7 + 15 28 log 15 28 + 3 4 log 3 4 − 3 4 , F(\lambda)=(1-\lambda)\log(1-\lambda)-\left(\frac{1}{4}-\lambda\right)\log\left(\frac{1}{4}-\lambda\right)-\frac{9}{7}\log\frac{9}{7}+\frac{15}{28}\log\frac{15}{28}+\frac{3}{4}\log\frac{3}{4}-\frac{3}{4}, F ( λ ) = ( 1 − λ ) log ( 1 − λ ) − ( 4 1 − λ ) log ( 4 1 − λ ) − 7 9 log 7 9 + 28 15 log 28 15 + 4 3 log 4 3 − 4 3 ,
λ F ≈ 0.13525 \lambda_F\approx0.13525 λ F ≈ 0.13525 be the unique root of F F F in ( 0 , 1 / 4 ) (0,1/4) ( 0 , 1/4 ) and λ ∗ = 2 15 < λ F \lambda^*=\frac{2}{15}<\lambda_F λ ∗ = 15 2 < λ F . Then, for every λ ∈ ( 0 , λ ∗ ) \lambda\in(0,\lambda^*) λ ∈ ( 0 , λ ∗ ) and every integer ℓ ≥ 4 \ell\ge4 ℓ ≥ 4 , if j = ⌈ 3 ℓ / 4 ⌉ j=\lceil3\ell/4\rceil j = ⌈ 3 ℓ /4 ⌉ , then
∏ k = 0 j − 1 ⌊ ( 1 − λ ) ℓ − k ⌋ ⌈ ( 9 / 7 ) ℓ − k ⌉ ≥ ( λ ℓ ) j j ! . \prod_{k=0}^{j-1}\frac{\lfloor(1-\lambda)\ell-k\rfloor}{\lceil(9/7)\ell-k\rceil}\ge\frac{(\lambda\ell)^j}{j!}. k = 0 ∏ j − 1 ⌈( 9/7 ) ℓ − k ⌉ ⌊( 1 − λ ) ℓ − k ⌋ ≥ j ! ( λ ℓ ) j .
:::
Choose λ = 1 / 8 ∈ ( 0 , λ ∗ ) \lambda=1/8\in(0,\lambda^*) λ = 1/8 ∈ ( 0 , λ ∗ ) in the above claim. We conclude that (3.12) holds, contradicting our assumption that p ( L ) < ( 1 / 8 ) r M ( L ) p(L)<(1/8)r_M(L) p ( L ) < ( 1/8 ) r M ( L ) . Therefore,
p ( L ) ≥ r M ( L ) 8 , p(L)\ge\frac{r_M(L)}{8}, p ( L ) ≥ 8 r M ( L ) ,
and the theorem follows.
Remark 3.10. It is possible to optimize the constants further to obtain that
avg 2 ( M ) ≥ diam 2 ( M ) c , \operatorname{avg}_2(M)\ge\frac{\operatorname{diam}_2(M)}{c}, avg 2 ( M ) ≥ c diam 2 ( M ) ,
for c ≈ 15.02 c\approx15.02 c ≈ 15.02 , but we choose to present a cleaner number for the sake of clarity and to avoid further complicated calculations.
A Transversal Upper Bound
Here, we show the following 4 / 9 4/9 4/9 upper bound on the approximation obtained by sampling bases at random.
Theorem 1.2. For any ε > 0 \varepsilon>0 ε > 0 , there exists a transversal matroid M = M ε M=M_\varepsilon M = M ε for which
E B 1 , B 2 ∼ U ( B ( M ε ) ) [ d ( B 1 , B 2 ) ] ≤ ( 4 9 + ε ) diam 2 ( M ε ) . \mathbb{E}_{B_1,B_2\sim U(B(M_\varepsilon))}[d(B_1,B_2)]\le\left(\frac{4}{9}+\varepsilon\right)\operatorname{diam}_2(M_\varepsilon). E B 1 , B 2 ∼ U ( B ( M ε )) [ d ( B 1 , B 2 )] ≤ ( 9 4 + ε ) diam 2 ( M ε ) .
To show the above theorem, we construct a sequence of transversal matroids { F n } n ≥ 1 \{F_n\}_{n\ge1} { F n } n ≥ 1 . The construction is defined below.
Definition 3.11 (The transversal matroid F n F_n F n ). Let n ≥ 1 n\ge1 n ≥ 1 . We define a matroid F n = ( E , F ) F_n=(E,\mathcal{F}) F n = ( E , F ) as follows. The ground set E E E consists of four n n n -element sets A F A_F A F , A R A_R A R , D F D_F D F and D R D_R D R , where
A F = { a i F } , A R = { a i R } , D F = { d i F } , D R = { d i R } . A_F=\{a_i^F\},\qquad A_R=\{a_i^R\},\qquad D_F=\{d_i^F\},\qquad D_R=\{d_i^R\}. A F = { a i F } , A R = { a i R } , D F = { d i F } , D R = { d i R } . A bipartite representation of F n F_n F n consists of a bipartite graph G = ( E ∪ O , A ) G=(E\cup O,A) G = ( E ∪ O , A ) where O = { f 1 , … , f n } ∪ { r 1 , … , r n } O=\{f_1,\ldots,f_n\}\cup\{r_1,\ldots,r_n\} O = { f 1 , … , f n } ∪ { r 1 , … , r n } , and the edge set A A A consists of the edges
A = ( ⋃ i = 1 n { a i F , f i } ) ∪ ( ⋃ i = 1 n { a i R , r i } ) ∪ ( ⋃ i = 1 n { d i F , f i } ) ∪ ( ⋃ i = 1 n { d i R , r i } ) ∪ ( ⋃ i , j = 1 n { d i R , f j } ) . A=\left(\bigcup_{i=1}^{n}\{a_i^F,f_i\}\right)\cup\left(\bigcup_{i=1}^{n}\{a_i^R,r_i\}\right)\cup\left(\bigcup_{i=1}^{n}\{d_i^F,f_i\}\right)\cup\left(\bigcup_{i=1}^{n}\{d_i^R,r_i\}\right)\cup\left(\bigcup_{i,j=1}^{n}\{d_i^R,f_j\}\right). A = ( i = 1 ⋃ n { a i F , f i } ) ∪ ( i = 1 ⋃ n { a i R , r i } ) ∪ ( i = 1 ⋃ n { d i F , f i } ) ∪ ( i = 1 ⋃ n { d i R , r i } ) ∪ ( i , j = 1 ⋃ n { d i R , f j } ) . The independent sets F \mathcal{F} F of F n F_n F n are the subsets of E E E that admit a perfect matching in G G G .
Observe that the sets A F ∪ A R A_F\cup A_R A F ∪ A R and D F ∪ D R D_F\cup D_R D F ∪ D R are disjoint bases, since the former can be matched to O O O using the n n n { a i F , f i } \{a_i^F,f_i\} { a i F , f i } and n n n { a i R , r i } \{a_i^R,r_i\} { a i R , r i } edges, while the latter via the n n n { d i F , f i } \{d_i^F,f_i\} { d i F , f i } and n n n { d i R , r i } \{d_i^R,r_i\} { d i R , r i } edges. Hence F n F_n F n has rank 2 n 2n 2 n and diam 2 ( F n ) = 2 n \operatorname{diam}_2(F_n)=2n diam 2 ( F n ) = 2 n .
Lemma 3.12. The marginal p L ( n ) p_L(n) p L ( n ) of every element of A F ∪ D F A_F \cup D_F A F ∪ D F with respect to U ( B ( M ) ) U(\mathcal{B}(M)) U ( B ( M )) and the marginal p H ( n ) p_H(n) p H ( n ) of every element of A R ∪ D R A_R \cup D_R A R ∪ D R satisfy
lim n → ∞ p L ( n ) = 1 3 and lim n → ∞ p H ( n ) = 2 3 . \lim_{n\to\infty} p_L(n) = \frac{1}{3}
\qquad\text{and}\qquad
\lim_{n\to\infty} p_H(n) = \frac{2}{3}. n → ∞ lim p L ( n ) = 3 1 and n → ∞ lim p H ( n ) = 3 2 . Proof. We first count the number of bases of F n F_n F n via a generating function method. For a polynomial P ( z ) P(z) P ( z ) we write [ z 0 ] P ( z ) [z_0]P(z) [ z 0 ] P ( z ) for the coefficient of z 0 z_0 z 0 in P ( z ) P(z) P ( z ) . Fix a basis B B B . For a vertex f i ∈ O f_i \in O f i ∈ O , there are three possibilities: it is matched to either a i F a_i^F a i F , d i F d_i^F d i F , or to some element of D R D_R D R . The first two choices fill f i f_i f i locally and the third leaves f i f_i f i open, to be filled by some element of D R D_R D R later on, so we denote the third case by z z z . Thus, the local generating function for the F F F side at index i i i is 2 + z 2+z 2 + z . Similarly, for a vertex r i ∈ O r_i \in O r i ∈ O , we either match it to d i R d_i^R d i R , or to a i R a_i^R a i R and let d i R d_i^R d i R be unmatched, or we match r i r_i r i to a i R a_i^R a i R while matching d i R d_i^R d i R to some f j f_j f j . The first two choices fill r i r_i r i locally and the third fills r i r_i r i by a i R a_i^R a i R and leaves d i R d_i^R d i R matched to some f j f_j f j , so we mark this extra element of D R D_R D R by z − 1 z^{-1} z − 1 . Thus, the local generating function for the R R R side at index i i i is 2 + z − 1 2+z^{-1} 2 + z − 1 . Note that we have n n n independent terms for each case, so we multiply them and expand both factors. We have
( 2 + z ) n = ∑ k = 0 n ( n k ) 2 n − k z k , (2+z)^n=\sum_{k=0}^{n}\binom{n}{k}2^{n-k}z^k, ( 2 + z ) n = k = 0 ∑ n ( k n ) 2 n − k z k , where k k k denotes the number of locally-unfilled vertices f i f_i f i , and
( 2 + z − 1 ) n = ∑ ℓ = 0 n ( n ℓ ) 2 n − ℓ z − ℓ , (2+z^{-1})^n=\sum_{\ell=0}^{n}\binom{n}{\ell}2^{n-\ell}z^{-\ell}, ( 2 + z − 1 ) n = ℓ = 0 ∑ n ( ℓ n ) 2 n − ℓ z − ℓ , where ℓ \ell ℓ denotes the number of extra vertices of D R D_R D R to be matched to some f j f_j f j . Multiplying both yields
( 2 + z ) n ( 2 + z − 1 ) n = ∑ k , ℓ = 0 n ( n k ) ( n ℓ ) 2 2 n − k − ℓ z k − ℓ . (2+z)^n(2+z^{-1})^n=\sum_{k,\ell=0}^{n}\binom{n}{k}\binom{n}{\ell}2^{2n-k-\ell}z^{k-\ell}. ( 2 + z ) n ( 2 + z − 1 ) n = k , ℓ = 0 ∑ n ( k n ) ( ℓ n ) 2 2 n − k − ℓ z k − ℓ . Notice that we get a basis only when the number of locally-unfilled vertices f i f_i f i is equal to the number of extra vertices of D R D_R D R to be matched to some f j f_j f j and thus, when k = ℓ k=\ell k = ℓ in the sum above. Therefore,
∣ B ( F n ) ∣ = ∑ k = 0 n ( n k ) 2 4 n − k . |\mathcal{B}(F_n)|=\sum_{k=0}^{n}\binom{n}{k}^{2}4^{n-k}. ∣ B ( F n ) ∣ = k = 0 ∑ n ( k n ) 2 4 n − k . In other words, for Q ( z ) = ( 2 + z ) ( 2 + z − 1 ) Q(z)=(2+z)(2+z^{-1}) Q ( z ) = ( 2 + z ) ( 2 + z − 1 ) , the number of bases of F n F_n F n is equal to the constant term of ( Q ( z ) ) n (Q(z))^n ( Q ( z ) ) n , i.e. ∣ B ( F n ) ∣ = [ z 0 ] ( Q ( z ) ) n |\mathcal{B}(F_n)|=[z^0](Q(z))^n ∣ B ( F n ) ∣ = [ z 0 ] ( Q ( z ) ) n .
For a fixed element of A F A_F A F or D F D_F D F , the count with that element present is
[ z 0 ] ( 2 + z ) n − 1 ( 2 + z − 1 ) n = [ z 0 ] ( 2 + z − 1 ) Q ( z ) n − 1 . [z^0](2+z)^{n-1}(2+z^{-1})^n=[z^0](2+z^{-1})Q(z)^{n-1}. [ z 0 ] ( 2 + z ) n − 1 ( 2 + z − 1 ) n = [ z 0 ] ( 2 + z − 1 ) Q ( z ) n − 1 . For a fixed element of A R A_R A R or D R D_R D R , the count is
( 1 + z − 1 ) ( 2 + z ) n ( 2 + z − 1 ) n − 1 = ( 1 + z − 1 ) ( 2 + z ) Q ( z ) n − 1 . (1+z^{-1})(2+z)^n(2+z^{-1})^{n-1}=(1+z^{-1})(2+z)Q(z)^{n-1}. ( 1 + z − 1 ) ( 2 + z ) n ( 2 + z − 1 ) n − 1 = ( 1 + z − 1 ) ( 2 + z ) Q ( z ) n − 1 . For every fixed polynomial R R R ,
R ( z ) ( Q ( z ) ) n − 1 ( Q ( z ) ) n ⟶ R ( 1 ) Q ( 1 ) . \frac{R(z)(Q(z))^{n-1}}{(Q(z))^n}\longrightarrow\frac{R(1)}{Q(1)}. ( Q ( z ) ) n R ( z ) ( Q ( z ) ) n − 1 ⟶ Q ( 1 ) R ( 1 ) . Applying this with R ( z ) = 2 + z − 1 R(z)=2+z^{-1} R ( z ) = 2 + z − 1 and R ( z ) = ( 1 + z − 1 ) ( 2 + z ) R(z)=(1+z^{-1})(2+z) R ( z ) = ( 1 + z − 1 ) ( 2 + z ) gives the claimed marginals. □
Theorem 1.2 now follows from Lemma 3.12. Indeed, F n F_n F n has 2 n 2n 2 n elements with marginal p L ( n ) p_L(n) p L ( n ) and 2 n 2n 2 n elements with marginal p H ( n ) p_H(n) p H ( n ) . Since diam 2 ( F n ) = 2 n \operatorname{diam}_2(F_n)=2n diam 2 ( F n ) = 2 n ,
avg 2 ( F n ) diam 2 ( F n ) = 1 2 n ∑ e ∈ A F ∪ D F p e ( 1 − p e ) = 1 2 n ∑ e ∈ A F ∪ D F p L ( n ) ( 1 − p L ( n ) ) + 1 2 n ∑ e ∈ A R ∪ D R p H ( n ) ( 1 − p H ( n ) ) = p L ( n ) ( 1 − p L ( n ) ) + p H ( n ) ( 1 − p H ( n ) ) → 1 3 ⋅ 2 3 + 2 3 ⋅ 1 3 = 4 9 . \begin{aligned}
\frac{\operatorname{avg}_2(F_n)}{\operatorname{diam}_2(F_n)}
= \frac{1}{2n}\sum_{e\in A_F\cup D_F}p_e(1-p_e)
= \frac{1}{2n}\sum_{e\in A_F\cup D_F}p_L(n)(1-p_L(n))+\frac{1}{2n}\sum_{e\in A_R\cup D_R}p_H(n)(1-p_H(n)) \\
&= p_L(n)(1-p_L(n))+p_H(n)(1-p_H(n))
\to\frac{1}{3}\cdot\frac{2}{3}+\frac{2}{3}\cdot\frac{1}{3}=\frac{4}{9}.
\end{aligned} diam 2 ( F n ) avg 2 ( F n ) = 2 n 1 e ∈ A F ∪ D F ∑ p e ( 1 − p e ) = 2 n 1 e ∈ A F ∪ D F ∑ p L ( n ) ( 1 − p L ( n )) + 2 n 1 e ∈ A R ∪ D R ∑ p H ( n ) ( 1 − p H ( n )) = p L ( n ) ( 1 − p L ( n )) + p H ( n ) ( 1 − p H ( n )) → 3 1 ⋅ 3 2 + 3 2 ⋅ 3 1 = 9 4 .
Therefore, for any ε > 0 \varepsilon>0 ε > 0 , there exists an n = n ( ε ) n=n(\varepsilon) n = n ( ε ) such that p L ( n ) ( 1 − p L ( n ) ) + p H ( n ) ( 1 − p H ( n ) ) ≤ 4 / 9 + ε p_L(n)(1-p_L(n))+p_H(n)(1-p_H(n))\le4/9+\varepsilon p L ( n ) ( 1 − p L ( n )) + p H ( n ) ( 1 − p H ( n )) ≤ 4/9 + ε .
Diameter in General Graphs with High Edge-Expansion
For a graph G = ( V , E ) G=(V,E) G = ( V , E ) , its edge expansion is defined as
h ( G ) : = min 0 < ∣ S ∣ ≤ ∣ V ∣ / 2 ∣ ∂ S ∣ ∣ S ∣ . h(G):=\min_{0<|S|\le|V|/2}\frac{|\partial S|}{|S|}. h ( G ) := 0 < ∣ S ∣ ≤ ∣ V ∣/2 min ∣ S ∣ ∣ ∂ S ∣ .
where ∂ S \partial S ∂ S is the set of edges crossing the cut ( S , V ∖ S ) (S,V\setminus S) ( S , V ∖ S ) .
In this section, we show that distances between randomly sampled pairs of vertices can significantly underestimate the diameter of a graph, even when the graph has a high edge expansion. A trivial example where random sampling fails is a chain of cliques constructed as follows. The first clique consists of a single vertex, and the size of the i i i -th clique is twice that of the previous clique. Moreover, every pair of consecutive cliques is connected by a complete bipartite graph.
Since the resulting graph consists of Θ ( log n ) \Theta(\log n) Θ ( log n ) cliques, it has diameter Θ ( log n ) \Theta(\log n) Θ ( log n ) . However, because the largest clique contains a half of all vertices, two uniformly sampled vertices are likely to lie among the largest few cliques, and hence their distance is typically much smaller than the diameter. In fact, for any constant c ≥ 1 c\ge1 c ≥ 1 and two uniformly sampled vertices x x x and y y y , d ( x , y ) < diam 2 ( G ) / c d(x,y)<\operatorname{diam}_2(G)/c d ( x , y ) < diam 2 ( G ) / c with high probability.
However, the example above does not reflect the behavior of basis-exchange graphs of matroids since the maximum degree Δ ( G ) \Delta(G) Δ ( G ) is Θ ( n ) \Theta(n) Θ ( n ) . To show that random sampling still fails even when Δ ( G ) = O ( log n ) \Delta(G)=O(\log n) Δ ( G ) = O ( log n ) , we replace the cliques by sparse expanders. More precisely, on each sufficiently large layer, we first place a 10-regular graph with edge expansion at least 2 (See Observation 3.13 ). We then add a ⌈ log n ⌉ \lceil\log n\rceil ⌈ log n ⌉ -ary complete tree on the same vertex set to keep the diameter of each layer is still small. Consequently, the i i i -th layer has diameter O ( log ⌈ log n ⌉ ∣ V i ∣ ) = O ( log n log log n ) O(\log_{\lceil\log n\rceil}|V_i|)=O\left(\frac{\log n}{\log\log n}\right) O ( log ⌈ l o g n ⌉ ∣ V i ∣ ) = O ( l o g l o g n l o g n ) , where V i V_i V i denote the vertex set of the i i i -th layer, whereas the diameter of the entire graph remains Θ ( log n ) \Theta(\log n) Θ ( log n ) . However, two uniformly sampled vertices are still likely to lie among the largest few layers. To prove this claim more formally, we begin with a simple observation, which follows immediately from [10 ] .
Observation 3.13 ([10 ] ). For all sufficiently large n n n , there exists a 10-regular graph G G G on n n n vertices such that h ( G ) ≥ 2 h(G)\ge2 h ( G ) ≥ 2 .
Proof. Let G ( n , r ) G(n,r) G ( n , r ) be a uniformly random r r r -regular graph on n n n vertices. By [10 ] , if r ≥ 3 r\ge3 r ≥ 3 and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) satisfy
( 1 − η ) log 2 ( 1 − η ) + ( 1 + η ) log 2 ( 1 + η ) > 4 r , (13) (1-\eta)\log_2(1-\eta)+(1+\eta)\log_2(1+\eta)>\frac{4}{r}, \tag*{(13)} ( 1 − η ) log 2 ( 1 − η ) + ( 1 + η ) log 2 ( 1 + η ) > r 4 , (13)
then
P ( h ( G ( n , r ) ) ≥ ( 1 − η ) r / 2 ) → 1 as n → ∞ . (14) \mathbb{P}\left(h(G(n,r))\ge(1-\eta)r/2\right)\to1\text{ as }n\to\infty. \tag*{(14)} P ( h ( G ( n , r )) ≥ ( 1 − η ) r /2 ) → 1 as n → ∞. (14)
Applying this with r = 10 r=10 r = 10 and η = 0.6 \eta=0.6 η = 0.6 immediately proves our claim.
Now, we formally state our theorem.
Theorem 1.3. For every constant c ≥ 1 c \ge1 c ≥ 1 , there exists an increasing sequence of simple connected graphs { G ℓ } ℓ ∈ N \{G_{\ell}\}_{\ell\in\mathbb{N}} { G ℓ } ℓ ∈ N such that for all ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N : Δ ( G ℓ ) = O ( log ∣ V ( G ℓ ) ∣ ) \Delta(G_{\ell}) = O(\log|V(G_{\ell})|) Δ ( G ℓ ) = O ( log ∣ V ( G ℓ ) ∣ ) , diam ( G ℓ ) = Θ ( log ∣ V ( G ℓ ) ∣ ) \operatorname{diam}(G_{\ell}) = \Theta(\log|V(G_{\ell})|) diam ( G ℓ ) = Θ ( log ∣ V ( G ℓ ) ∣ ) and h ( G ℓ ) ≥ 1 h(G_{\ell}) \ge1 h ( G ℓ ) ≥ 1 for which if x ℓ , y ℓ x_{\ell}, y_{\ell} x ℓ , y ℓ are vertices chosen uniformly at random from G ℓ G_{\ell} G ℓ , we have
P ( d ( x ℓ , y ℓ ) ≥ 1 c diam ( G ℓ ) ) → 0 as ℓ → ∞ . \mathbb{P}\left(d(x_{\ell},y_{\ell}) \ge\frac{1}{c}\operatorname{diam}(G_{\ell})\right) \to0 \quad\text{as } \ell\to\infty. P ( d ( x ℓ , y ℓ ) ≥ c 1 diam ( G ℓ ) ) → 0 as ℓ → ∞.
Proof. Fix a constant c ≥ 1 c \ge1 c ≥ 1 . For each integer ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 , let n ℓ = 2 ℓ + 2 − 4 n_{\ell} = 2^{\ell+2} - 4 n ℓ = 2 ℓ + 2 − 4 .
We build a graph G ℓ G_{\ell} G ℓ on n ℓ n_{\ell} n ℓ vertices such that Δ ( G ℓ ) = O ( log n ℓ ) \Delta(G_{\ell}) = O(\log n_{\ell}) Δ ( G ℓ ) = O ( log n ℓ ) , diam [ G ℓ ] = Θ ( log n ℓ ) \operatorname{diam}[G_{\ell}] = \Theta(\log n_{\ell}) diam [ G ℓ ] = Θ ( log n ℓ ) and h ( G ℓ ) ≥ 1 h(G_{\ell}) \ge1 h ( G ℓ ) ≥ 1 . For notational simplicity, given ℓ \ell ℓ , we write G G G in place of G ℓ G_{\ell} G ℓ and n n n in place of n ℓ n_{\ell} n ℓ as long as the intended meaning is clear from the context.
(Construction of G G G .) Let V 1 , V 2 , … , V ℓ V_1, V_2, \ldots, V_{\ell} V 1 , V 2 , … , V ℓ be collections of vertices such that ∣ V 1 ∣ = 4 |V_1| = 4 ∣ V 1 ∣ = 4 and ∣ V i ∣ = 2 ∣ V i − 1 ∣ |V_i| = 2|V_{i-1}| ∣ V i ∣ = 2∣ V i − 1 ∣ for every i ≥ 2 i \ge2 i ≥ 2 . Note that ∣ V i ∣ = 2 i + 1 |V_i| = 2^{i+1} ∣ V i ∣ = 2 i + 1 and ∑ i = 1 ℓ ∣ V i ∣ = 2 ℓ + 2 − 4 = n \sum_{i=1}^{\ell} |V_i| = 2^{\ell+2} - 4 = n ∑ i = 1 ℓ ∣ V i ∣ = 2 ℓ + 2 − 4 = n .
We build an expander graph on each V i V_i V i , which we will call the i i i -th layer, then connect every consecutive layers to build our graph G G G .
Define a graph R i R_i R i on each i ∈ [ ℓ ] i \in[\ell] i ∈ [ ℓ ] as follows. If ∣ V i ∣ |V_i| ∣ V i ∣ is sufficiently large, R i R_i R i is a 10-regular graph with edge-expansion at least 2 due to Observation 3.13 . Otherwise, R i R_i R i is a complete graph. To bound the diameter of this layer, we add additional edges to it. Let F i F_i F i be a ⌈ log n ⌉ \lceil\log n\rceil ⌈ log n ⌉ -ary complete tree on V i V_i V i . Define the i i i -th layer L i L_i L i as the graph L i : = ( V i , E ( R i ) ∪ E ( F i ) ) L_i := (V_i, E(R_i) \cup E(F_i)) L i := ( V i , E ( R i ) ∪ E ( F i )) . Note that L i L_i L i has edge expansion at least 2 due to R i R_i R i and diameter O ( log ⌈ log n ⌉ ∣ V i ∣ ) = O ( log n log log n ) O(\log_{\lceil\log n\rceil}|V_i|) = O\left(\frac{\log n}{\log\log n}\right) O ( log ⌈ l o g n ⌉ ∣ V i ∣ ) = O ( l o g l o g n l o g n ) due to F i F_i F i .
Now, connect L i L_i L i and L i + 1 L_{i+1} L i + 1 for every i ∈ [ ℓ − 1 ] i \in[\ell- 1] i ∈ [ ℓ − 1 ] by a surjection π i : V i + 1 → V i \pi_i: V_{i+1} \to V_i π i : V i + 1 → V i such that ∣ π i − 1 ( u ) ∣ = 2 |\pi_i^{-1}(u)| = 2 ∣ π i − 1 ( u ) ∣ = 2 for every u ∈ V i u \in V_i u ∈ V i . In other words, every vertex in V i V_i V i corresponds to two distinct vertices in V i + 1 V_{i+1} V i + 1 and every vertex in V i + 1 V_{i+1} V i + 1 corresponds to exactly one vertex in V i V_i V i . This mapping exists since V i + 1 V_{i+1} V i + 1 contains exactly twice as many vertices as V i V_i V i for every i ∈ [ ℓ − 1 ] i \in[\ell- 1] i ∈ [ ℓ − 1 ] .
Now, define H i = ( V i , E i ) H^i = (V^i, E^i) H i = ( V i , E i ) as
V i : = ⋃ j = 1 i V j and E i : = ( ⋃ j = 1 i E ( L j ) ) ∪ ( ⋃ j = 1 i − 1 E ( L j , L j + 1 ) ) , (15) V^i := \bigcup_{j=1}^{i} V_j \quad\text{and} \quad E^i := \left(\bigcup_{j=1}^{i} E(L_j)\right) \cup\left(\bigcup_{j=1}^{i-1} E(L_j,L_{j+1})\right), \tag*{(15)} V i := j = 1 ⋃ i V j and E i := ( j = 1 ⋃ i E ( L j ) ) ∪ ( j = 1 ⋃ i − 1 E ( L j , L j + 1 ) ) , (15)
where E ( L j , L j + 1 ) E(L_j,L_{j+1}) E ( L j , L j + 1 ) denotes the edges defined by π j \pi_j π j between the layers L j L_j L j and L j + 1 L_{j+1} L j + 1 . In other words, H i H^i H i comprises all vertices and edges from the first layer up to the i i i -th layer; see Figure 3.2 . We take H ℓ H^{\ell} H ℓ as our graph G = ( V , E ) G = (V,E) G = ( V , E ) . By construction, it is trivial to show that the maximum degree of a vertex of G G G is O ( log n ) O(\log n) O ( log n ) . For the diameter of G G G , note that diam 2 ( G ) ≥ ℓ − 1 \operatorname{diam}_2(G) \ge\ell- 1 diam 2 ( G ) ≥ ℓ − 1 because any path from a vertex in V 1 V_1 V 1 to a vertex in V ℓ V_{\ell} V ℓ must cross at least one inter-layer edge for each consecutive pair of layers. Thus, diam 2 ( G ) ≥ ℓ − 1 \operatorname{diam}_2(G) \ge\ell- 1 diam 2 ( G ) ≥ ℓ − 1 . On the other hand, for any x ∈ V i x \in V_i x ∈ V i and y ∈ V j y \in V_j y ∈ V j , where i ≤ j i \le j i ≤ j ,
Figure 3.2.
d ( x , y ) ≤ ( j − i ) + diam 2 ( L i ) ≤ ℓ + O ( log n log log n ) = O ( log n ) . d(x,y) \le(j-i) + \operatorname{diam}_2(L_i) \le\ell+ O\left(\frac{\log n}{\log\log n}\right) = O(\log n). d ( x , y ) ≤ ( j − i ) + diam 2 ( L i ) ≤ ℓ + O ( log log n log n ) = O ( log n ) .
Therefore, diam 2 ( G ) = Θ ( ℓ ) = Θ ( log n ) \operatorname{diam}_2(G) = \Theta(\ell) = \Theta(\log n) diam 2 ( G ) = Θ ( ℓ ) = Θ ( log n ) .
Now, we show that h ( G ) ≥ 1 h(G) \ge1 h ( G ) ≥ 1 .
(Edge-expansion of G G G is at least 1.) We prove by induction on i i i that h ( H i ) ≥ 1 h(H^i) \ge1 h ( H i ) ≥ 1 . The base case is clear since H 1 = L 1 H^1 = L_1 H 1 = L 1 and h ( L 1 ) ≥ 2 h(L_1) \ge2 h ( L 1 ) ≥ 2 .
Assume h ( H i ) ≥ 1 h(H^i) \ge1 h ( H i ) ≥ 1 . Let S ⊆ V i + 1 S \subseteq V^{i+1} S ⊆ V i + 1 satisfy 0 < ∣ S ∣ ≤ ∣ V i + 1 ∣ / 2 0 < |S| \le|V^{i+1}|/2 0 < ∣ S ∣ ≤ ∣ V i + 1 ∣/2 . Put A = S ∩ V i + 1 A = S \cap V_{i+1} A = S ∩ V i + 1 , B = S ∩ V i B = S \cap V^i B = S ∩ V i , P = S ∩ V i P = S \cap V_i P = S ∩ V i , and let a = ∣ A ∣ a = |A| a = ∣ A ∣ , b = ∣ B ∣ b = |B| b = ∣ B ∣ and p = ∣ P ∣ p = |P| p = ∣ P ∣ . Also let q = ∣ V i ∣ q = |V_i| q = ∣ V i ∣ . Then
∣ V i + 1 ∣ = 2 q , ∣ V i ∣ = 2 q − 4 , ∣ V i + 1 ∣ = 4 q − 4 , |V_{i+1}| = 2q,\qquad|V^i| = 2q - 4,\qquad|V^{i+1}| = 4q - 4, ∣ V i + 1 ∣ = 2 q , ∣ V i ∣ = 2 q − 4 , ∣ V i + 1 ∣ = 4 q − 4 ,
and therefore
a + b = ∣ S ∣ ≤ 2 q − 2. (16) a + b = |S| \le2q - 2. \tag*{(16)} a + b = ∣ S ∣ ≤ 2 q − 2. (16)
The boundary of S S S has three parts: edges inside V i + 1 V_{i+1} V i + 1 , edges between V i + 1 V_{i+1} V i + 1 and V i V_i V i , and edges inside H i H^i H i ; see Figure 3.3 for illustration. Therefore
Figure 3.3.
∣ ∂ S ∣ ≥ 2 min { a , 2 q − a } + ∣ a − 2 p ∣ + min { b , 2 q − 4 − b } , (17) |\partial S| \ge2\min\{a,2q-a\} + |a-2p| + \min\{b,2q-4-b\}, \tag*{(17)} ∣ ∂ S ∣ ≥ 2 min { a , 2 q − a } + ∣ a − 2 p ∣ + min { b , 2 q − 4 − b } , (17)
where the first term follows from h ( L i + 1 ) ≥ 2 h(L_{i+1}) \ge2 h ( L i + 1 ) ≥ 2 , the second term from the fact that the bipartite edges between V i + 1 V_{i+1} V i + 1 and V i V_i V i are defined by a 2-to-1 map, and the last from the induction hypothesis h ( H i ) ≥ 1 h(H^i) \ge1 h ( H i ) ≥ 1 . We also have that
b − ( q − 4 ) ≤ p ≤ b (18) b-(q-4) \le p \le b \tag*{(18)} b − ( q − 4 ) ≤ p ≤ b (18)
since P ⊆ B P \subseteq B P ⊆ B and V i − 1 V^{i-1} V i − 1 has q − 4 q-4 q − 4 vertices in it.
We now show that ∣ ∂ S ∣ ≥ a + b |\partial S| \ge a+b ∣ ∂ S ∣ ≥ a + b . First suppose a > q a > q a > q . Then by (16) , b ≤ 2 q − a − 2 < q − 2 b \le2q-a-2 < q-2 b ≤ 2 q − a − 2 < q − 2 . Therefore, min { b , 2 q − 4 − b } = b \min\{b,2q-4-b\}=b min { b , 2 q − 4 − b } = b . Hence,
∣ ∂ S ∣ ≥ 2 ( 2 q − a ) + ( a − 2 p ) + b = 4 q − a − 2 p + b (19) |\partial S| \ge2(2q-a)+(a-2p)+b = 4q-a-2p+b \tag*{(19)} ∣ ∂ S ∣ ≥ 2 ( 2 q − a ) + ( a − 2 p ) + b = 4 q − a − 2 p + b (19)
≥ 4 q − a − b ≥ 2 ( 2 q − 2 ) − a − b ≥ a + b . \ge4q-a-b \ge2(2q-2)-a-b \ge a+b. ≥ 4 q − a − b ≥ 2 ( 2 q − 2 ) − a − b ≥ a + b .
Now suppose a ≤ q a \le q a ≤ q . Then (17) together with (18) give
∣ ∂ S ∣ ≥ 2 a + ( 2 p − a ) + min { b , 2 q − 4 − b } = a + 2 p + min { b , 2 q − 4 − b } ≥ a + 2 max { 0 , b − ( q − 2 ) } + min { b , 2 ( q − 2 ) − b } ≥ a + b , (20) \begin{aligned}
|\partial S| \ge2a+(2p-a)+\min\{b,2q-4-b\} = a+2p+\min\{b,2q-4-b\} \\
&\ge a+2\max\{0,b-(q-2)\}+\min\{b,2(q-2)-b\} \ge a+b, \tag*{(20)}
\end{aligned} ∣ ∂ S ∣ ≥ 2 a + ( 2 p − a ) + min { b , 2 q − 4 − b } = a + 2 p + min { b , 2 q − 4 − b } ≥ a + 2 max { 0 , b − ( q − 2 )} + min { b , 2 ( q − 2 ) − b } ≥ a + b , (20)
where the last inequality is immediate by checking b ≤ q − 2 b \le q-2 b ≤ q − 2 and b > q − 2 b > q-2 b > q − 2 . Combining (19) and (20) , we obtain ∣ ∂ S ∣ ≥ a + b = ∣ S ∣ |\partial S| \ge a+b=|S| ∣ ∂ S ∣ ≥ a + b = ∣ S ∣ , hence h ( H i + 1 ) ≥ 1 h(H^{i+1}) \ge1 h ( H i + 1 ) ≥ 1 . By induction,
h ( G ) = h ( H ℓ ) ≥ 1 , h(G)=h(H^\ell)\ge1, h ( G ) = h ( H ℓ ) ≥ 1 ,
as we desired.
Finally, we show that a uniform random pair of vertices does not approximate the diameter with constant probability.
(Inapproximability of diam 2 ( G ) \operatorname{diam}_2(G) diam 2 ( G ) .) We first show that E [ d ( x , y ) ] = O ( log n log log n ) \mathbb{E}[d(x,y)] = O\left(\frac{\log n}{\log\log n}\right) E [ d ( x , y )] = O ( l o g l o g n l o g n ) for any two random vertices x x x and y y y drawn independently and uniformly at random from V V V . We then apply Markov inequality to prove our claim.
Let I ( v ) I(v) I ( v ) denote the unique layer index of v v v , so that v ∈ V I ( v ) v \in V_{I(v)} v ∈ V I ( v ) . Let Z ( x ) = ℓ − I ( x ) Z(x)=\ell-I(x) Z ( x ) = ℓ − I ( x ) , the number of layers between v v v and the largest layer L ℓ L_{\ell} L ℓ . Since the sizes of the layers double, for x x x uniform on V ( G ) V(G) V ( G ) ,
P ( Z ( x ) ≥ t ) ≤ 2 1 − t . \mathbb{P}(Z(x) \ge t) \le2^{1-t}. P ( Z ( x ) ≥ t ) ≤ 2 1 − t .
Therefore,
E [ Z ( x ) ] = ∑ t ≥ 1 P ( Z ( x ) ≥ t ) ≤ ∑ t ≥ 1 2 1 − t = 2 , \mathbb{E}[Z(x)] = \sum_{t \ge1} \mathbb{P}(Z(x) \ge t) \le\sum_{t \ge1} 2^{1-t} = 2, E [ Z ( x )] = t ≥ 1 ∑ P ( Z ( x ) ≥ t ) ≤ t ≥ 1 ∑ 2 1 − t = 2 ,
and thus,
E [ ∣ I ( x ) − I ( y ) ∣ ] = E [ ∣ Z ( x ) − Z ( y ) ∣ ] ≤ E [ Z ( x ) ] + E [ Z ( y ) ] ≤ 4. \mathbb{E}[|I(x)-I(y)|] = \mathbb{E}[|Z(x)-Z(y)|] \le\mathbb{E}[Z(x)] + \mathbb{E}[Z(y)] \le4. E [ ∣ I ( x ) − I ( y ) ∣ ] = E [ ∣ Z ( x ) − Z ( y ) ∣ ] ≤ E [ Z ( x )] + E [ Z ( y )] ≤ 4.
Therefore,
E [ d ( x , y ) ] ≤ E [ ∣ I ( x ) − I ( y ) ∣ ] + max i diam 2 ( L i ) ≤ 4 + O ( log n log log n ) = O ( log n log log n ) . \mathbb{E}[d(x,y)] \le\mathbb{E}[|I(x)-I(y)|] + \max_i \operatorname{diam}_2(L_i) \le4 + O\left(\frac{\log n}{\log\log n}\right) = O\left(\frac{\log n}{\log\log n}\right). E [ d ( x , y )] ≤ E [ ∣ I ( x ) − I ( y ) ∣ ] + i max diam 2 ( L i ) ≤ 4 + O ( log log n log n ) = O ( log log n log n ) .
Moreover, since diam 2 ( G ) ≥ ℓ − 1 = Θ ( log n ) \operatorname{diam}_2(G) \ge\ell-1=\Theta(\log n) diam 2 ( G ) ≥ ℓ − 1 = Θ ( log n ) , we finally have
P ( d ( x , y ) ≥ 1 c diam 2 ( G ) ) ≤ c E [ d ( x , y ) ] diam 2 ( G ) = O ( 1 log log n ) , \mathbb{P}\left(d(x,y) \ge\frac{1}{c}\operatorname{diam}_2(G)\right) \le\frac{c\mathbb{E}[d(x,y)]}{\operatorname{diam}_2(G)} = O\left(\frac{1}{\log\log n}\right), P ( d ( x , y ) ≥ c 1 diam 2 ( G ) ) ≤ diam 2 ( G ) c E [ d ( x , y )] = O ( log log n 1 ) ,
which tends to zero as n → ∞ n \to\infty n → ∞ . This completes the proof.
Diversity
In this section we prove algorithmic results for finding far-apart bases of an arbitrary matroid. We begin with the most basic algorithm: choose bases at random. Using this algorithm, we obtain an O ( log k ) O(\log k) O ( log k ) -approximation for the Diverse Matroid Basis problem, and we show that this is tight. We then give a polynomial-time 3-approximation for the Farthest Matroid Basis problem and a QPTAS for the same problem. These results imply a 1 6 \frac{1}{6} 6 1 -approximation in polynomial time and a 1 2 − ε \frac{1}{2}-\varepsilon 2 1 − ε approximation in quasi-polynomial time for the Diverse Matroid Basis problem via the standard farthest-insertion argument.
Diversity via Random Sampling
In this subsection, we show that sampling k k k bases uniformly without replacement gives an O ( log k ) O(\log k) O ( log k ) -approximation for the Diverse Matroid Basis problem, and that this logarithmic loss is tight for random sampling. More formally, let avg k ( M ) \operatorname{avg}_k(M) avg k ( M ) denote the expected minimum pairwise distance between k k k distinct bases of M M M sampled uniformly at random; i.e.,
avg k ( M ) = E B 1 , … , B k [ min i < j d ( B i , B j ) ] . \operatorname{avg}_k(M)=\mathbb{E}_{B_1,\ldots,B_k}\left[\min_{i<j} d(B_i,B_j)\right]. avg k ( M ) = E B 1 , … , B k [ i < j min d ( B i , B j ) ] .
Here, the expectation is over bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k sampled uniformly without replacement. Thus, in this language, we show that avg k ( M ) \operatorname{avg}_k(M) avg k ( M ) is an O ( log k ) O(\log k) O ( log k ) -approximation to diam k ( M ) \operatorname{diam}_k(M) diam k ( M ) , and that this upper bound is tight for some matroids.
A logarithmic sampling guarantee
We begin by relating the average distance between two random bases to the average distance from any fixed base.
Lemma 4.1. Let A ∈ B ( M ) A \in\mathcal{B}(M) A ∈ B ( M ) be a fixed base of M M M , then 2 E B [ d ( A , B ) ] ≥ E B 1 , B 2 [ d ( B 1 , B 2 ) ] 2\mathbb{E}_{B}[d(A,B)] \ge\mathbb{E}_{B_1,B_2}[d(B_1,B_2)] 2 E B [ d ( A , B )] ≥ E B 1 , B 2 [ d ( B 1 , B 2 )] .
Proof. For e ∈ E e \in E e ∈ E , let p e p_e p e be the probability that e e e belongs to a uniformly random base of M M M . By linearity of expectation, we have
E B 1 , B 2 [ d ( B 1 , B 2 ) ] = ∑ e ∈ E p e ( 1 − p e ) = ∑ e ∈ A p e ( 1 − p e ) + ∑ e ∉ A p e ( 1 − p e ) ≤ ∑ e ∈ A ( 1 − p e ) + ∑ e ∉ A p e = E B [ ∣ A ∖ B ∣ ] + E B [ ∣ B ∖ A ∣ ] = 2 E B [ d ( A , B ) ] . \begin{aligned}
\mathbb{E}_{B_1,B_2}[d(B_1,B_2)] &= \sum_{e \in E} p_e(1-p_e) \\
&= \sum_{e \in A} p_e(1-p_e) + \sum_{e \notin A} p_e(1-p_e) \\
&\le\sum_{e \in A}(1-p_e) + \sum_{e \notin A}p_e \\
&= \mathbb{E}_{B}[|A \setminus B|] + \mathbb{E}_{B}[|B \setminus A|] \\
&= 2\mathbb{E}_{B}[d(A,B)].
\end{aligned} E B 1 , B 2 [ d ( B 1 , B 2 )] = e ∈ E ∑ p e ( 1 − p e ) = e ∈ A ∑ p e ( 1 − p e ) + e ∈ / A ∑ p e ( 1 − p e ) ≤ e ∈ A ∑ ( 1 − p e ) + e ∈ / A ∑ p e = E B [ ∣ A ∖ B ∣ ] + E B [ ∣ B ∖ A ∣ ] = 2 E B [ d ( A , B )] .
The previous lemma says that, from every fixed base, the expected distance to a random base is large whenever the average pairwise distance is large. We next use the moment bounds from Lemma 3.4 to show that this distance is unlikely to fall far below its mean.
Lemma 4.2. Let A ∈ B ( M ) A \in\mathcal{B}(M) A ∈ B ( M ) be a fixed base of M M M . Define the random variable d A = d ( A , Y ) d_A = d(A,Y) d A = d ( A , Y ) , where Y Y Y is drawn uniformly at random from the set of bases of M M M , and let μ A = E [ d A ] \mu_A = \mathbb{E}[d_A] μ A = E [ d A ] . Then, for every α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) ,
P Y [ d A ≤ α ⋅ μ A ] ≤ exp ( − ( 1 − α ) 2 2 μ A ) . \mathbb{P}_{Y}[d_A \le\alpha\cdot\mu_A] \le\exp\left(-\frac{(1-\alpha)^2}{2}\mu_A\right). P Y [ d A ≤ α ⋅ μ A ] ≤ exp ( − 2 ( 1 − α ) 2 μ A ) .
Proof. Since A A A and Y Y Y are both bases of M M M , we have that d A = d ( A , Y ) = ∣ A ∖ Y ∣ = r − ∣ A ∩ Y ∣ d_A = d(A,Y) = |A \setminus Y| = r - |A \cap Y| d A = d ( A , Y ) = ∣ A ∖ Y ∣ = r − ∣ A ∩ Y ∣ , where r r r is the rank of M M M . Set Z = ∣ A ∩ Y ∣ = r − d A Z = |A \cap Y| = r-d_A Z = ∣ A ∩ Y ∣ = r − d A and note that E [ Z ] = r − μ A \mathbb{E}[Z] = r-\mu_A E [ Z ] = r − μ A . We apply Lemma 3.4 to A A A and Z Z Z , obtaining that for every j ∈ N j \in\mathbb{N} j ∈ N ,
E [ ( Z j ) ] ≤ ( r j ) ( E [ Z ] r ) j = ( r j ) ( 1 − μ A r ) j . (21) \mathbb{E}\left[\binom{Z}{j}\right] \le\binom{r}{j}\left(\frac{\mathbb{E}[Z]}{r}\right)^j = \binom{r}{j}\left(1-\frac{\mu_A}{r}\right)^j. \tag*{(21)} E [ ( j Z ) ] ≤ ( j r ) ( r E [ Z ] ) j = ( j r ) ( 1 − r μ A ) j . (21)
We now use the moment bounds to obtain a bound on the moment generating function of d A d_A d A . Let λ > 0 \lambda> 0 λ > 0 , and note that
E [ e − λ d A ] = e − λ r E [ e λ Z ] = e − λ r E [ ( 1 + ( e λ − 1 ) ) Z ] = e − λ r ∑ j ≥ 0 ( e λ − 1 ) j E [ ( Z j ) ] ≤ ( 4.1 ) e − λ r ∑ j ≥ 0 ( e λ − 1 ) j ( r j ) ( 1 − μ A r ) j = [ e − λ ( 1 + ( e λ − 1 ) ( 1 − μ A r ) ) ] r = ( 1 − μ A r ( 1 − e − λ ) ) r ≤ exp ( − μ A ( 1 − e − λ ) ) . \begin{aligned}
\mathbb{E}[e^{-\lambda d_A}] &= e^{-\lambda r}\mathbb{E}[e^{\lambda Z}] \\
&= e^{-\lambda r}\mathbb{E}[(1+(e^\lambda-1))^Z] \\
&= e^{-\lambda r}\sum_{j\geq0}(e^\lambda-1)^j\mathbb{E}\left[\binom{Z}{j}\right] \\
&\mathrel{\overset{(4.1)}{\leq}} e^{-\lambda r}\sum_{j\geq0}(e^\lambda-1)^j\binom{r}{j}\left(1-\frac{\mu_A}{r}\right)^j \\
&= \left[e^{-\lambda}\left(1+(e^\lambda-1)\left(1-\frac{\mu_A}{r}\right)\right)\right]^r \\
&= \left(1-\frac{\mu_A}{r}(1-e^{-\lambda})\right)^r \\
&\leq\exp\left(-\mu_A(1-e^{-\lambda})\right).
\end{aligned} E [ e − λ d A ] = e − λ r E [ e λ Z ] = e − λ r E [( 1 + ( e λ − 1 ) ) Z ] = e − λ r j ≥ 0 ∑ ( e λ − 1 ) j E [ ( j Z ) ] ≤ ( 4.1 ) e − λ r j ≥ 0 ∑ ( e λ − 1 ) j ( j r ) ( 1 − r μ A ) j = [ e − λ ( 1 + ( e λ − 1 ) ( 1 − r μ A ) ) ] r = ( 1 − r μ A ( 1 − e − λ ) ) r ≤ exp ( − μ A ( 1 − e − λ ) ) .
We now apply Markov’s inequality to e − λ d A e^{-\lambda d_A} e − λ d A to obtain a tail bound for d A d_A d A . By Markov’s inequality, we have that for every α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) ,
P [ d A ≤ α ⋅ μ A ] = P [ e − λ d A ≥ e − λ α μ A ] ≤ E [ e − λ d A ] e − λ α μ A ≤ exp ( − μ A ( 1 − e − λ ) + λ α μ A ) . \begin{aligned}
\mathbb{P}[d_A \le\alpha\cdot\mu_A] = \mathbb{P}[e^{-\lambda d_A} \ge e^{-\lambda\alpha\mu_A}] \\
&\le\frac{\mathbb{E}[e^{-\lambda d_A}]}{e^{-\lambda\alpha\mu_A}} \\
&\le\exp\left(-\mu_A(1-e^{-\lambda})+\lambda\alpha\mu_A\right).
\end{aligned} P [ d A ≤ α ⋅ μ A ] = P [ e − λ d A ≥ e − λ α μ A ] ≤ e − λ α μ A E [ e − λ d A ] ≤ exp ( − μ A ( 1 − e − λ ) + λ α μ A ) .
Setting λ = − log ( α ) \lambda=-\log(\alpha) λ = − log ( α ) , we obtain that e − λ = α e^{-\lambda}=\alpha e − λ = α , and thus,
P [ d A ≤ α ⋅ μ A ] ≤ exp ( − μ A ( 1 − α + α log α ) ) ≤ exp ( − ( 1 − α ) 2 2 μ A ) . \mathbb{P}[d_A \le\alpha\cdot\mu_A]\le\exp\left(-\mu_A(1-\alpha+\alpha\log\alpha)\right)\le\exp\left(-\frac{(1-\alpha)^2}{2}\mu_A\right). P [ d A ≤ α ⋅ μ A ] ≤ exp ( − μ A ( 1 − α + α log α ) ) ≤ exp ( − 2 ( 1 − α ) 2 μ A ) .
where the last inequality uses 1 − α + α log α ≥ ( 1 − α ) 2 / 2 1-\alpha+\alpha\log\alpha\ge(1-\alpha)^2/2 1 − α + α log α ≥ ( 1 − α ) 2 /2 for α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) .
The concentration lemma has the following useful consequence over distances between two random bases without replacement.
Lemma 4.3. Let M M M be a matroid with at least two bases. Let X , Y X,Y X , Y be independent uniformly random bases of M M M , and set μ = E X , Y [ d ( X , Y ) ] \mu=\mathbb{E}_{X,Y}[d(X,Y)] μ = E X , Y [ d ( X , Y )] . Let B 1 , B 2 B_1,B_2 B 1 , B 2 be two bases sampled uniformly without replacement. Then, for every τ > 0 \tau>0 τ > 0 with τ ≤ μ / 4 \tau\le\mu/4 τ ≤ μ /4 ,
P [ d ( B 1 , B 2 ) < τ ] ≤ 2 exp ( − μ 16 ) . \mathbb{P}[d(B_1,B_2)<\tau]\le2\exp\left(-\frac{\mu}{16}\right). P [ d ( B 1 , B 2 ) < τ ] ≤ 2 exp ( − 16 μ ) .
Proof. Fix a base A A A and write μ A = E Y [ d ( A , Y ) ] \mu_A=\mathbb{E}_Y[d(A,Y)] μ A = E Y [ d ( A , Y )] , where Y Y Y is a uniformly random base. By Lemma 4.1, μ A ≥ μ / 2 \mu_A\ge\mu/2 μ A ≥ μ /2 . Since τ ≤ μ / 4 \tau\le\mu/4 τ ≤ μ /4 , we have τ / μ A ≤ 1 / 2 \tau/\mu_A\le1/2 τ / μ A ≤ 1/2 . Applying Lemma 4.2 with α A = τ / μ A \alpha_A=\tau/\mu_A α A = τ / μ A , we get
P Y [ d ( A , Y ) < τ ] ≤ exp ( − μ A 8 ) ≤ exp ( − μ 16 ) . \mathbb{P}_Y[d(A,Y)<\tau]\le\exp\left(-\frac{\mu_A}{8}\right)\le\exp\left(-\frac{\mu}{16}\right). P Y [ d ( A , Y ) < τ ] ≤ exp ( − 8 μ A ) ≤ exp ( − 16 μ ) .
Averaging over A A A gives
P [ d ( X , Y ) < τ ] ≤ exp ( − μ 16 ) . \mathbb{P}[d(X,Y)<\tau]\le\exp\left(-\frac{\mu}{16}\right). P [ d ( X , Y ) < τ ] ≤ exp ( − 16 μ ) .
The pair ( B 1 , B 2 ) (B_1,B_2) ( B 1 , B 2 ) has the same distribution as ( X , Y ) (X,Y) ( X , Y ) conditioned on X ≠ Y X\ne Y X = Y . Since M M M has at least two bases, P [ X ≠ Y ] ≥ 1 / 2 \mathbb{P}[X\ne Y]\ge1/2 P [ X = Y ] ≥ 1/2 , and hence
P [ d ( B 1 , B 2 ) < τ ] ≤ P [ d ( X , Y ) < τ ∣ X ≠ Y ] ≤ 2 exp ( − μ 16 ) . \mathbb{P}[d(B_1,B_2)<\tau]\le\mathbb{P}[d(X,Y)<\tau\mid X\ne Y]\le2\exp\left(-\frac{\mu}{16}\right). P [ d ( B 1 , B 2 ) < τ ] ≤ P [ d ( X , Y ) < τ ∣ X = Y ] ≤ 2 exp ( − 16 μ ) .
We can now prove the sampling guarantee. The idea is to choose a threshold τ \tau τ that is a logarithmic factor below the average pairwise distance, apply Lemma 4.3 to each sampled pair, and then union bound over the ( k 2 ) \binom{k}{2} ( 2 k ) pairs.
Theorem 1.4. If k ≥ 2 k\ge2 k ≥ 2 and M M M is a matroid with at least k k k bases, we have diam k ( M ) ≤ O ( log k ) avg k ( M ) \operatorname{diam}_k(M)\le O(\log k)\operatorname{avg}_k(M) diam k ( M ) ≤ O ( log k ) avg k ( M ) .
Proof. Let X , Y X,Y X , Y be independent uniformly random bases of M M M . Set
μ = E X , Y [ d ( X , Y ) ] = avg 2 ( M ) and τ = μ 64 log k . \mu=\mathbb{E}_{X,Y}[d(X,Y)]=\operatorname{avg}_2(M)
\qquad\text{and}\qquad
\tau=\frac{\mu}{64\log k}. μ = E X , Y [ d ( X , Y )] = avg 2 ( M ) and τ = 64 log k μ .
By Theorem 1.1, diam 2 ( M ) ≤ 16 μ \operatorname{diam}_2(M) \le16\mu diam 2 ( M ) ≤ 16 μ , and clearly diam k ( M ) ≤ diam 2 ( M ) \operatorname{diam}_k(M) \le\operatorname{diam}_2(M) diam k ( M ) ≤ diam 2 ( M ) . Thus, it is enough to show that avg k ( M ) ≥ Ω ( τ ) \operatorname{avg}_k(M) \ge\Omega(\tau) avg k ( M ) ≥ Ω ( τ ) . If τ < 1 \tau< 1 τ < 1 , then the claim follows immediately: the bases in the definition of avg k ( M ) \operatorname{avg}_k(M) avg k ( M ) are sampled distinctly, so every pair of sampled bases has distance at least 1, and hence avg k ( M ) ≥ 1 > τ \operatorname{avg}_k(M) \ge1 > \tau avg k ( M ) ≥ 1 > τ . Assume from now on that τ ≥ 1 \tau\ge1 τ ≥ 1 . Then μ ≥ 64 log k \mu\ge64 \log k μ ≥ 64 log k .
Let B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k be the bases sampled uniformly without replacement in the definition of avg k ( M ) \operatorname{avg}_k(M) avg k ( M ) . Since τ ≤ μ / 4 \tau\le\mu/4 τ ≤ μ /4 , Lemma 4.3 implies that, for every fixed pair i < j i < j i < j , P [ d ( B i , B j ) < τ ] ≤ 2 exp ( − μ 16 ) \mathbb{P}[d(B_i,B_j) < \tau] \le2\exp\left(-\frac{\mu}{16}\right) P [ d ( B i , B j ) < τ ] ≤ 2 exp ( − 16 μ ) . A union bound over all pairs i < j i < j i < j gives
P [ min i < j d ( B i , B j ) < τ ] ≤ ∑ i < j P [ d ( B i , B j ) < τ ] ≤ 2 ( k 2 ) exp ( − μ 16 ) ≤ k 2 exp ( − μ 16 ) . \mathbb{P}\left[\min_{i<j} d(B_i,B_j) < \tau\right] \le\sum_{i<j}\mathbb{P}[d(B_i,B_j) < \tau] \le2\binom{k}{2}\exp\left(-\frac{\mu}{16}\right) \le k^2\exp\left(-\frac{\mu}{16}\right). P [ i < j min d ( B i , B j ) < τ ] ≤ i < j ∑ P [ d ( B i , B j ) < τ ] ≤ 2 ( 2 k ) exp ( − 16 μ ) ≤ k 2 exp ( − 16 μ ) .
Since μ ≥ 64 log k \mu\ge64\log k μ ≥ 64 log k , the last expression is at most k 2 exp ( − 4 log k ) ≤ k 2 ⋅ k − 4 ≤ 1 4 k^2\exp(-4\log k) \le k^2\cdot k^{-4} \le\frac{1}{4} k 2 exp ( − 4 log k ) ≤ k 2 ⋅ k − 4 ≤ 4 1 . It follows that
avg k ( M ) ≥ τ ⋅ P [ min i < j d ( B i , B j ) ≥ τ ] ≥ 3 4 τ . \operatorname{avg}_k(M) \ge\tau\cdot\mathbb{P}\left[\min_{i<j}d(B_i,B_j)\ge\tau\right] \ge\frac{3}{4}\tau. avg k ( M ) ≥ τ ⋅ P [ i < j min d ( B i , B j ) ≥ τ ] ≥ 4 3 τ .
concluding the proof.
Tightness of the analysis
We now show that the logarithmic loss is inherent for random sampling. The example is the direct sum of r r r rank-one matroids on two parallel elements, whose bases are naturally the vertices of the r r r -dimensional cube.
First, a birthday-paradox-like computation shows that a random sample of 2 r / 2 2^{r/2} 2 r /2 cube vertices is likely to contain a close pair, so its minimum pairwise distance remains constant in expectation.
Lemma 4.4. Let r r r be even, and let M = ⨁ i = 1 r U 1 , 2 M = \bigoplus_{i=1}^{r} U_{1,2} M = ⨁ i = 1 r U 1 , 2 be the direct sum of r r r parallel edges. If k = 2 r / 2 k = 2^{r/2} k = 2 r /2 , then avg k ( M ) = O ( 1 ) \operatorname{avg}_k(M) = O(1) avg k ( M ) = O ( 1 ) .
Proof. We identify the bases of M M M with vertices of the r r r -cube Q r Q_r Q r in the natural way. Let S ⊆ { 0 , 1 } r S \subseteq\{0,1\}^r S ⊆ { 0 , 1 } r be k k k randomly sampled vertices of the r r r -cube without replacement, and let D ( S ) D(S) D ( S ) be the smallest pairwise Hamming distance in S S S . Let E \mathcal{E} E be the event that every pair of vertices in S S S has Hamming distance at least 3. Thus,
avg k ( M ) = E [ D ( S ) ] = ∑ d ≥ 1 d ⋅ P [ D ( S ) = d ] ≤ 2 + r ⋅ P [ E ] . \operatorname{avg}_k(M) = \mathbb{E}[D(S)] = \sum_{d\ge1} d\cdot\mathbb{P}[D(S)=d] \le2+r\cdot\mathbb{P}[\mathcal{E}]. avg k ( M ) = E [ D ( S )] = d ≥ 1 ∑ d ⋅ P [ D ( S ) = d ] ≤ 2 + r ⋅ P [ E ] .
We bound P [ E ] \mathbb{P}[\mathcal{E}] P [ E ] by exposing the sampled vertices as an ordered sample v 1 , … , v k v_1,\ldots,v_k v 1 , … , v k without replacement. Write N = 2 r N=2^r N = 2 r . Suppose that v 1 , … , v t v_1,\ldots,v_t v 1 , … , v t have pairwise Hamming distance at least 3. Then their neighborhoods in Q r Q_r Q r are disjoint. Hence, among the N − t N-t N − t remaining vertices, exactly t r tr t r vertices are at distance 1 from one of v 1 , … , v t v_1,\ldots,v_t v 1 , … , v t . Choosing any of these vertices as v t + 1 v_{t+1} v t + 1 creates a pair at distance 1, and so prevents E \mathcal{E} E from occurring. Therefore,
P [ E ] ≤ ∏ t = 1 k − 1 ( 1 − t r N − t ) ≤ exp ( − ∑ t = 1 k − 1 t r N − t ) . \mathbb{P}[\mathcal{E}] \le\prod_{t=1}^{k-1}\left(1-\frac{tr}{N-t}\right) \le\exp\left(-\sum_{t=1}^{k-1}\frac{tr}{N-t}\right). P [ E ] ≤ t = 1 ∏ k − 1 ( 1 − N − t t r ) ≤ exp ( − t = 1 ∑ k − 1 N − t t r ) .
Since k = 2 r / 2 = N k=2^{r/2}=\sqrt{N} k = 2 r /2 = N , for all sufficiently large even r r r ,
∑ t = 1 k − 1 t r N − t ≥ r N ( k 2 ) = r 2 ( 1 − 1 k ) ≥ r 4 . \sum_{t=1}^{k-1}\frac{tr}{N-t} \ge\frac{r}{N}\binom{k}{2} = \frac{r}{2}\left(1-\frac{1}{k}\right) \ge\frac{r}{4}. t = 1 ∑ k − 1 N − t t r ≥ N r ( 2 k ) = 2 r ( 1 − k 1 ) ≥ 4 r .
Thus P [ E ] ≤ e − r / 4 \mathbb{P}[\mathcal{E}] \le e^{-r/4} P [ E ] ≤ e − r /4 , and consequently avg k ( M ) ≤ 2 + r e − r / 4 = O ( 1 ) \operatorname{avg}_k(M) \le2+re^{-r/4}=O(1) avg k ( M ) ≤ 2 + r e − r /4 = O ( 1 ) .
The previous lemma controls the value achieved by random sampling. To compare it with the optimum, we need to show that the cube also contains a large set whose pairwise distances are linear in r r r . We use the classical Gilbert–Varshamov bound [55 , 56 ] , stated here in its standard coding-theoretic form.
Lemma 4.5. Let A ( r , d ) A(r,d) A ( r , d ) be the maximum size of a binary code C ⊆ { 0 , 1 } r C \subseteq\{0,1\}^{r} C ⊆ { 0 , 1 } r with minimum Hamming distance at least d d d . Then,
A ( r , d ) ≥ 2 r ∑ j = 0 d − 1 ( r j ) A(r,d) \ge\frac{2^{r}}{\sum_{j=0}^{d-1} \binom{r}{j}} A ( r , d ) ≥ ∑ j = 0 d − 1 ( j r ) 2 r
We will apply this bound with distance about r / 10 r/10 r /10 . The following estimate says that the corresponding Hamming ball is small enough to leave at least 2 r / 2 2^{r/2} 2 r /2 codewords.
Lemma 4.6. For every r ∈ N r \in\mathbb{N} r ∈ N , we have that
∑ j = 0 ⌊ r / 10 ⌋ ( r j ) ≤ 2 r / 2 . \sum_{j=0}^{\lfloor r/10\rfloor} \binom{r}{j} \le2^{r/2}. j = 0 ∑ ⌊ r /10 ⌋ ( j r ) ≤ 2 r /2 . Proof. We have that
9 − r / 10 ∑ j = 0 ⌊ r / 10 ⌋ ( r j ) ≤ ∑ j = 0 ⌊ r / 10 ⌋ ( r j ) 9 − j ≤ ( 1 + 9 − 1 ) r = 10 r 9 r . 9^{-r/10}\sum_{j=0}^{\lfloor r/10\rfloor} \binom{r}{j} \le\sum_{j=0}^{\lfloor r/10\rfloor} \binom{r}{j}9^{-j} \le(1+9^{-1})^{r} = \frac{10^{r}}{9^{r}}. 9 − r /10 j = 0 ∑ ⌊ r /10 ⌋ ( j r ) ≤ j = 0 ∑ ⌊ r /10 ⌋ ( j r ) 9 − j ≤ ( 1 + 9 − 1 ) r = 9 r 1 0 r . Thus,
∑ j = 0 ⌊ r / 10 ⌋ ( r j ) ≤ 9 r / 10 10 r 9 r = ( 9 1 / 10 ⋅ 10 9 ) r ≤ ( 2 ) r = 2 r / 2 . \sum_{j=0}^{\lfloor r/10\rfloor} \binom{r}{j} \le9^{r/10}\frac{10^{r}}{9^{r}} = \left(9^{1/10}\cdot\frac{10}{9}\right)^{r} \le(\sqrt{2})^{r} = 2^{r/2}. j = 0 ∑ ⌊ r /10 ⌋ ( j r ) ≤ 9 r /10 9 r 1 0 r = ( 9 1/10 ⋅ 9 10 ) r ≤ ( 2 ) r = 2 r /2 .
We can now put the two sides together: random sampling finds only constant diversity in this matroid, while the optimal choice of k k k bases has diversity Θ ( r ) = Θ ( log k ) \Theta(r) = \Theta(\log k) Θ ( r ) = Θ ( log k ) .
Theorem 1.5. Let r r r be even, and let M = ⨁ i = 1 r U 1 , 2 M = \bigoplus_{i=1}^{r} U_{1,2} M = ⨁ i = 1 r U 1 , 2 be the direct sum of r r r parallel edges. If k = 2 r / 2 k = 2^{r/2} k = 2 r /2 , then
diam k ( M ) = Θ ( log k ) avg k ( M ) . \operatorname{diam}_{k}(M) = \Theta(\log k)\operatorname{avg}_{k}(M). diam k ( M ) = Θ ( log k ) avg k ( M ) . Proof. Choose d = ⌊ r / 10 ⌋ + 1 d = \lfloor r/10\rfloor+ 1 d = ⌊ r /10 ⌋ + 1 . By Lemmas 4.5 and 4.6 we obtain that
A ( r , d ) ≥ 2 r 2 r / 2 = 2 r / 2 = k . A(r,d) \ge\frac{2^{r}}{2^{r/2}} = 2^{r/2} = k. A ( r , d ) ≥ 2 r /2 2 r = 2 r /2 = k . Thus, there are k k k vertices on the r r r -cube with pairwise Hamming distances at least d d d . This implies that diam k ( M ) ≥ d ≥ r / 10 \operatorname{diam}_{k}(M) \ge d \ge r/10 diam k ( M ) ≥ d ≥ r /10 . Since diam k ( M ) ≤ r \operatorname{diam}_{k}(M) \le r diam k ( M ) ≤ r , we obtain that diam k ( M ) = Θ ( r ) = Θ ( log k ) \operatorname{diam}_{k}(M) = \Theta(r) = \Theta(\log k) diam k ( M ) = Θ ( r ) = Θ ( log k ) . On the other hand, avg k ( M ) ≥ 1 \operatorname{avg}_{k}(M) \ge1 avg k ( M ) ≥ 1 because the sampled bases are distinct, and avg k ( M ) ≤ O ( 1 ) \operatorname{avg}_{k}(M) \le O(1) avg k ( M ) ≤ O ( 1 ) by Lemma 4.4. Thus avg k ( M ) = Θ ( 1 ) \operatorname{avg}_{k}(M) = \Theta(1) avg k ( M ) = Θ ( 1 ) , concluding the proof.
Random Sampling in the Large-Diameter Regime
We end the section by noting that despite the logarithmic loss in the previous theorem, random sampling is still a good approximation when the diameter is sufficiently large. Below, we show that if diam 2 ( M ) \operatorname{diam}_{2}(M) diam 2 ( M ) is a sufficiently large constant multiple of log k \log k log k , then random sampling gives a constant-factor approximation for the Diverse Matroid Basis problem.
Interestingly, we cannot replace the previous condition with diam k ( M ) ≥ Ω ( log k ) \operatorname{diam}_{k}(M) \ge\Omega(\log k) diam k ( M ) ≥ Ω ( log k ) , as the cube example shows: diam k ( M ) = Θ ( log k ) \operatorname{diam}_{k}(M) = \Theta(\log k) diam k ( M ) = Θ ( log k ) , but random sampling loses a logarithmic factor.
Theorem 4.7. Let k ≥ 2 k \ge2 k ≥ 2 and let M M M be a matroid with at least k k k bases. If diam 2 ( M ) ≥ 768 log k \operatorname{diam}_2(M) \ge768 \log k diam 2 ( M ) ≥ 768 log k , then diam k ( M ) ≤ 128 avg k ( M ) \operatorname{diam}_k(M) \le128 \operatorname{avg}_k(M) diam k ( M ) ≤ 128 avg k ( M ) .
Proof. Let X , Y X,Y X , Y be independent uniformly random bases of M M M , and set μ = E X , Y [ d ( X , Y ) ] \mu= \mathbb{E}_{X,Y}[d(X,Y)] μ = E X , Y [ d ( X , Y )] . By Theorem 1.1, diam 2 ( M ) ≤ 16 μ \operatorname{diam}_2(M) \le16\mu diam 2 ( M ) ≤ 16 μ . Hence, we have that μ ≥ 48 log k \mu\ge48 \log k μ ≥ 48 log k . Set τ = μ / 4 \tau= \mu/4 τ = μ /4 .
Let B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k be sampled uniformly without replacement. By Lemma 4.3 , for every fixed pair i < j i<j i < j ,
P [ d ( B i , B j ) < τ ] ≤ 2 exp ( − μ 16 ) . \mathbb{P}[d(B_i,B_j)<\tau] \le2\exp\left(-\frac{\mu}{16}\right). P [ d ( B i , B j ) < τ ] ≤ 2 exp ( − 16 μ ) . Taking a union bound over the ( k 2 ) \binom{k}{2} ( 2 k ) pairs and recalling that μ ≥ 48 log k \mu\ge48 \log k μ ≥ 48 log k , we obtain
P [ min i < j d ( B i , B j ) < τ ] ≤ k 2 exp ( − μ 16 ) ≤ 1 k ≤ 1 2 . \mathbb{P}\left[\min_{i<j}d(B_i,B_j)<\tau\right] \le k^2\exp\left(-\frac{\mu}{16}\right) \le\frac{1}{k} \le\frac{1}{2}. P [ i < j min d ( B i , B j ) < τ ] ≤ k 2 exp ( − 16 μ ) ≤ k 1 ≤ 2 1 . Consequently,
avg k ( M ) ≥ τ ⋅ P [ min i < j d ( B i , B j ) ≥ τ ] ≥ μ 8 . \operatorname{avg}_k(M) \ge\tau\cdot\mathbb{P}\left[\min_{i<j}d(B_i,B_j)\ge\tau\right] \ge\frac{\mu}{8}. avg k ( M ) ≥ τ ⋅ P [ i < j min d ( B i , B j ) ≥ τ ] ≥ 8 μ . Finally, since diam k ( M ) ≤ diam 2 ( M ) ≤ 16 μ \operatorname{diam}_k(M) \le\operatorname{diam}_2(M) \le16\mu diam k ( M ) ≤ diam 2 ( M ) ≤ 16 μ , we get diam k ( M ) ≤ 128 avg k ( M ) \operatorname{diam}_k(M) \le128\operatorname{avg}_k(M) diam k ( M ) ≤ 128 avg k ( M ) , as claimed.
Efficient Random Sampling
One may wonder whether the random sampling algorithm can be implemented efficiently for arbitrary matroids with independence oracle access. The answer is another celebrated consequence of the work of Anari et al. [2 ] , which shows that one can sample a base of a matroid in polynomial time using an independence oracle with small total variation distance to the uniform distribution in polynomial time. More formally, we say that two distributions ν \nu ν and μ \mu μ have total variation distance at most δ \delta δ if on every event E \mathcal{E} E we have that ∣ ν ( E ) − μ ( E ) ∣ ≤ δ |\nu(\mathcal{E})-\mu(\mathcal{E})| \le\delta ∣ ν ( E ) − μ ( E ) ∣ ≤ δ . We can now state the sampling result from Anari et al.
Lemma 4.8 (Corollary 1.3 in [2 ] ). Let M M M be a matroid. For every δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , there is a randomized algorithm that outputs a base whose distribution is within total variation distance δ \delta δ from the uniform distribution on B ( M ) \mathcal{B}(M) B ( M ) . The algorithm uses poly ( n , log ( 1 / δ ) ) \operatorname{poly}(n,\log(1/\delta)) poly ( n , log ( 1/ δ )) time.
We use Lemma 4.8 to sample various bases with and without replacement in the following form.
Lemma 4.9. Let L ≥ 1 L \ge1 L ≥ 1 , δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and let M M M be a matroid.
There is a randomized algorithm that outputs an ordered L L L -tuple of bases whose joint distribution is within total variation distance δ \delta δ of L L L independent uniformly random bases of M M M . The algorithm runs in time L ⋅ poly ( n , log ( L / δ ) ) L \cdot\operatorname{poly}(n,\log(L/\delta)) L ⋅ poly ( n , log ( L / δ )) .
If M M M has at least L L L bases, then there is a randomized algorithm that outputs an ordered L L L -tuple of distinct bases whose joint distribution is within total variation distance δ \delta δ of the uniform distribution over ordered L L L -tuples of distinct bases of M M M . The algorithm runs in time poly ( n , L , log ( 1 / δ ) ) \operatorname{poly}(n,L,\log(1/\delta)) poly ( n , L , log ( 1/ δ )) .
We defer the details to Appendix § 8 .
As a consequence, the random-sampling approximation from Theorem 1.4 can be implemented efficiently.
Corollary 4.10. Let M = ( E , I ) M=(E,\mathcal{I}) M = ( E , I ) be a matroid with n = ∣ E ∣ n=|E| n = ∣ E ∣ given by an independence oracle. Assume that M M M has at least k k k bases, and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There is a randomized algorithm in poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) -time that outputs k k k distinct bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k such that
min i < j d ( B i , B j ) ≥ Ω ( 1 log k ) diam k ( M ) \min_{i<j} d(B_i,B_j) \ge\Omega\left(\frac{1}{\log k}\right)\operatorname{diam}_k(M) i < j min d ( B i , B j ) ≥ Ω ( log k 1 ) diam k ( M ) with probability at least 1 − δ 1-\delta 1 − δ .
Proof sketch. The proof is essentially the same as the proof of Theorem 1.4. We sketch the modifications: Instead of sampling exactly uniformly without replacement, invoke the second assertion of Lemma 4.9 with L = k L=k L = k and (small) constant accuracy. The exact distribution in Theorem 1.4 succeeds with constant probability and this is only decreased by a small constant given by the total variation. Thus, we obtain a constant-success algorithm for finding k k k distinct bases with minimum pairwise distance Ω ( 1 / log k ) diam k ( M ) \Omega(1/\log k)\operatorname{diam}_k(M) Ω ( 1/ log k ) diam k ( M ) .
To boost the success probability, repeat the constant-success algorithm O ( log ( 1 / δ ) ) O(\log(1/\delta)) O ( log ( 1/ δ )) times and return the sampled tuple maximizing min i < j d ( B i , B j ) \min_{i<j}d(B_i,B_j) min i < j d ( B i , B j ) . Standard probability amplification shows that this succeeds with probability at least 1 − δ 1-\delta 1 − δ .
Approximating Farthest Matroid Basis
We now turn to the Farthest Matroid Basis problem, which is a natural generalization of the Farthest Pair problem in metric spaces. For a set of bases S ⊆ B ( M ) \mathcal{S}\subseteq\mathcal{B}(M) S ⊆ B ( M ) , we define the distance of a base B B B to S \mathcal{S} S as
d ( B , S ) = min B ′ ∈ S d ( B , B ′ ) . d(B,\mathcal{S})=\min_{B'\in\mathcal{S}}d(B,B'). d ( B , S ) = B ′ ∈ S min d ( B , B ′ ) .
Thus, the goal of the Farthest Matroid Basis problem is to find a base B B B that maximizes d ( B , S ) d(B,\mathcal{S}) d ( B , S ) for a given set of bases S \mathcal{S} S . [24 ]
The main result of this section is a randomized polynomial-time 1 3 \frac{1}{3} 3 1 -approximation algorithm for the Farthest Matroid Basis problem. The algorithm works by separating the analysis into two regimes: low-diameter and high-diameter. In the low-diameter regime, random sampling gives a 1 3 \frac{1}{3} 3 1 -approximation in polynomial time. In the high-diameter regime, an LP-rounding argument gives a PTAS. Finally, replacing the low-diameter sampling step by exact enumeration gives a QPTAS for the Farthest Matroid Basis problem in general.
Farthest Matroid Basis via Uniform Sampling
The algorithm for the low-diameter regime is based on comparing the sizes of balls in the matroid base graph. For a matroid M M M and a base B ∈ B ( M ) B\in\mathcal{B}(M) B ∈ B ( M ) , we define the ball of radius r r r around B B B as
Ball ( B , r ) = { A ∈ B ( M ) ∣ d ( B , A ) ≤ r } . \operatorname{Ball}(B,r)=\{A\in\mathcal{B}(M)\mid d(B,A)\le r\}. Ball ( B , r ) = { A ∈ B ( M ) ∣ d ( B , A ) ≤ r } .
The following lemma shows that balls around different bases are comparable in size, up to a factor that depends on the diameter of the matroid.
Lemma 4.11. For every matroid M M M , every two bases A , B ∈ B ( M ) A,B\in\mathcal{B}(M) A , B ∈ B ( M ) , and every r ≥ 0 r\ge0 r ≥ 0 , we have
∣ Ball M ( A , r ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B , 2 r ) ∣ . |\operatorname{Ball}_M(A,r)|\le4^{\operatorname{diam}(M)}|\operatorname{Ball}_M(B,2r)|. ∣ Ball M ( A , r ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B , 2 r ) ∣.
Proof. Fix bases A , B ∈ B ( M ) A,B\in\mathcal{B}(M) A , B ∈ B ( M ) and a radius r ≥ 0 r\ge0 r ≥ 0 . We construct a map from Ball M ( A , r ) \operatorname{Ball}_M(A,r) Ball M ( A , r ) to Ball M ( B , 2 r ) \operatorname{Ball}_M(B,2r) Ball M ( B , 2 r ) and then bound the size of every fiber of this map. Let X ∈ Ball M ( A , r ) X \in\operatorname{Ball}_{M}(A,r) X ∈ Ball M ( A , r ) . Write O = A ∖ X O=A\setminus X O = A ∖ X and I = X ∖ A I=X\setminus A I = X ∖ A . Then ∣ O ∣ = ∣ I ∣ = ℓ ≤ r |O|=|I|=\ell\le r ∣ O ∣ = ∣ I ∣ = ℓ ≤ r , and the pair ( O , I ) (O,I) ( O , I ) uniquely determines X X X . We will start from B B B , remove all elements of O O O , and then add all elements of I I I .
First order the elements of O O O as o 1 , … , o ℓ o_1,\ldots,o_\ell o 1 , … , o ℓ . Suppose that after j − 1 j-1 j − 1 steps we have a base B j − 1 B_{j-1} B j − 1 that avoids o 1 , … , o j − 1 o_1,\ldots,o_{j-1} o 1 , … , o j − 1 . If o j ∉ B j − 1 o_j\notin B_{j-1} o j ∈ / B j − 1 , set B j = B j − 1 B_j=B_{j-1} B j = B j − 1 . Otherwise o j ∈ B j − 1 ∖ X o_j\in B_{j-1}\setminus X o j ∈ B j − 1 ∖ X . By the strong basis-exchange property applied to the bases B j − 1 B_{j-1} B j − 1 and X X X , there is an element e ∈ X ∖ B j − 1 e\in X\setminus B_{j-1} e ∈ X ∖ B j − 1 such that B j − 1 − o j + e B_{j-1}-o_j+e B j − 1 − o j + e is a base. Set B j = B j − 1 − o j + e B_j=B_{j-1}-o_j+e B j = B j − 1 − o j + e . Since X X X is disjoint from O O O , this operation does not introduce any element of O O O . After at most ℓ \ell ℓ exchanges, we obtain a base B ℓ B_\ell B ℓ satisfying B ℓ ∩ O = ∅ B_\ell\cap O=\varnothing B ℓ ∩ O = ∅ and d ( B , B ℓ ) ≤ ℓ d(B,B_\ell)\le\ell d ( B , B ℓ ) ≤ ℓ .
Next order the elements of I I I as i 1 , … , i ℓ i_1,\ldots,i_\ell i 1 , … , i ℓ . Starting from B 0 ′ = B ℓ B'_0=B_\ell B 0 ′ = B ℓ , we construct bases B 0 ′ , … , B ℓ ′ B'_0,\ldots,B'_\ell B 0 ′ , … , B ℓ ′ such that B j ′ B'_j B j ′ contains i 1 , … , i j i_1,\ldots,i_j i 1 , … , i j and avoids O O O . Suppose B j − 1 ′ B'_{j-1} B j − 1 ′ has already been constructed. If i j ∈ B j − 1 ′ i_j\in B'_{j-1} i j ∈ B j − 1 ′ , set B j ′ = B j − 1 ′ B'_j=B'_{j-1} B j ′ = B j − 1 ′ . Otherwise i j ∈ X ∖ B j − 1 ′ i_j\in X\setminus B'_{j-1} i j ∈ X ∖ B j − 1 ′ . Apply the strong basis-exchange property to the bases X X X and B j − 1 ′ B'_{j-1} B j − 1 ′ . Since i j ∈ X ∖ B j − 1 ′ i_j\in X\setminus B'_{j-1} i j ∈ X ∖ B j − 1 ′ , there is an element f ∈ B j − 1 ′ ∖ X f\in B'_{j-1}\setminus X f ∈ B j − 1 ′ ∖ X such that B j − 1 ′ + i j − f B'_{j-1}+i_j-f B j − 1 ′ + i j − f is a base. Set B j ′ = B j − 1 ′ + i j − f B'_j=B'_{j-1}+i_j-f B j ′ = B j − 1 ′ + i j − f . This operation does not remove any of the already inserted elements i 1 , … , i j − 1 i_1,\ldots,i_{j-1} i 1 , … , i j − 1 , because those elements lie in X ∩ B j − 1 ′ X\cap B'_{j-1} X ∩ B j − 1 ′ . It also does not introduce an element of O O O , because the only inserted element is i j ∈ I i_j\in I i j ∈ I and I ∩ O = ∅ I\cap O=\varnothing I ∩ O = ∅ . After at most another ℓ \ell ℓ exchanges, we obtain a base Y = B ℓ ′ Y=B'_\ell Y = B ℓ ′ with I ⊆ Y I\subseteq Y I ⊆ Y and Y ∩ O = ∅ Y\cap O=\varnothing Y ∩ O = ∅ . Moreover, d ( B , Y ) ≤ 2 ℓ ≤ 2 r d(B,Y)\le2\ell\le2r d ( B , Y ) ≤ 2 ℓ ≤ 2 r , so Y ∈ Ball M ( B , 2 r ) Y\in\operatorname{Ball}_{M}(B,2r) Y ∈ Ball M ( B , 2 r ) . This defines the desired map X ↦ Y X\mapsto Y X ↦ Y .
It remains to bound the number of bases X X X that can map to a fixed Y ∈ Ball M ( B , 2 r ) Y\in\operatorname{Ball}_{M}(B,2r) Y ∈ Ball M ( B , 2 r ) . If X = ( A ∖ O ) ∪ I X=(A\setminus O)\cup I X = ( A ∖ O ) ∪ I maps to Y Y Y , then the construction guarantees that I ⊆ Y ∖ A I\subseteq Y\setminus A I ⊆ Y ∖ A and O ⊆ A ∖ Y O\subseteq A\setminus Y O ⊆ A ∖ Y . Thus there are at most 2 ∣ Y ∖ A ∣ 2^{|Y\setminus A|} 2 ∣ Y ∖ A ∣ choices for I I I and at most 2 ∣ A ∖ Y ∣ 2^{|A\setminus Y|} 2 ∣ A ∖ Y ∣ choices for O O O . Since A A A and Y Y Y are bases, ∣ Y ∖ A ∣ = ∣ A ∖ Y ∣ = d ( A , Y ) |Y\setminus A|=|A\setminus Y|=d(A,Y) ∣ Y ∖ A ∣ = ∣ A ∖ Y ∣ = d ( A , Y ) . Therefore every fiber has size at most 2 ∣ Y ∖ A ∣ + ∣ A ∖ Y ∣ = 4 d ( A , Y ) ≤ 4 diam ( M ) 2^{|Y\setminus A|+|A\setminus Y|}=4^{d(A,Y)}\le4^{\operatorname{diam}(M)} 2 ∣ Y ∖ A ∣ + ∣ A ∖ Y ∣ = 4 d ( A , Y ) ≤ 4 diam ( M ) . Since every X ∈ Ball M ( A , r ) X\in\operatorname{Ball}_{M}(A,r) X ∈ Ball M ( A , r ) is mapped to some Y ∈ Ball M ( B , 2 r ) Y\in\operatorname{Ball}_{M}(B,2r) Y ∈ Ball M ( B , 2 r ) , we conclude that
∣ Ball M ( A , r ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B , 2 r ) ∣ . |\operatorname{Ball}_{M}(A,r)|\le4^{\operatorname{diam}(M)}|\operatorname{Ball}_{M}(B,2r)|. ∣ Ball M ( A , r ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B , 2 r ) ∣.
The previous lemma turns uniform sampling into an approximation algorithm for the Farthest Matroid Basis problem.
Lemma 4.12. Let M M M be a matroid, S ⊆ B ( M ) S\subseteq\mathcal{B}(M) S ⊆ B ( M ) be a set of k k k bases and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There is a randomized algorithm that returns a base B B B satisfying
d ( B , S ) ≥ 1 3 max B ′ ∈ B ( M ) d ( B ′ , S ) d(B,S)\ge\frac{1}{3}\max_{B'\in\mathcal{B}(M)}d(B',S) d ( B , S ) ≥ 3 1 B ′ ∈ B ( M ) max d ( B ′ , S ) with probability at least 1 − δ 1-\delta 1 − δ in time 4 diam ( M ) poly ( n , k , log ( 1 / δ ) ) 4^{\operatorname{diam}(M)}\operatorname{poly}(n,k,\log(1/\delta)) 4 diam ( M ) poly ( n , k , log ( 1/ δ )) .
Proof. Let d ∗ = max B ′ ∈ B ( M ) d ( B ′ , S ) d^*=\max_{B'\in\mathcal{B}(M)}d(B',S) d ∗ = max B ′ ∈ B ( M ) d ( B ′ , S ) , and let B ∗ B^* B ∗ be a base achieving this maximum. Further, we suppose that d ∗ ≥ 1 d^*\ge1 d ∗ ≥ 1 , as otherwise the Lemma holds trivially. Set r = ⌈ d ∗ / 3 ⌉ r=\lceil d^*/3\rceil r = ⌈ d ∗ /3 ⌉ and ρ = d ∗ − r = ⌊ 2 d ∗ / 3 ⌋ \rho=d^*-r=\lfloor2d^*/3\rfloor ρ = d ∗ − r = ⌊ 2 d ∗ /3 ⌋ . We call a base good if its distance from S S S is at least r r r .
Let N = ∣ B ( M ) ∣ N=|\mathcal{B}(M)| N = ∣ B ( M ) ∣ and let
q = ∣ Ball M ( B ∗ , ρ ) ∣ N . q=\frac{|\operatorname{Ball}_{M}(B^*,\rho)|}{N}. q = N ∣ Ball M ( B ∗ , ρ ) ∣ .
Every base in Ball M ( B ∗ , ρ ) \operatorname{Ball}_{M}(B^*,\rho) Ball M ( B ∗ , ρ ) is good. Indeed, for every B ∈ Ball M ( B ∗ , ρ ) B\in\operatorname{Ball}_{M}(B^*,\rho) B ∈ Ball M ( B ∗ , ρ ) and every A ∈ S A\in S A ∈ S , the triangle inequality gives
d ( B , A ) ≥ d ( B ∗ , A ) − d ( B , B ∗ ) ≥ d ∗ − ρ = r . d(B,A)\ge d(B^*,A)-d(B,B^*)\ge d^*-\rho=r. d ( B , A ) ≥ d ( B ∗ , A ) − d ( B , B ∗ ) ≥ d ∗ − ρ = r .
Hence a uniformly random base is good with probability at least q q q . We also upper bound the probability of being bad. If a base is not good, then it lies in Ball M ( A , r − 1 ) \operatorname{Ball}_{M}(A,r-1) Ball M ( A , r − 1 ) for some A ∈ S A \in\mathcal{S} A ∈ S . By Lemma 4.11 and the fact that 2 ( r − 1 ) ≤ ρ 2(r-1) \le\rho 2 ( r − 1 ) ≤ ρ , for every A ∈ S A \in\mathcal{S} A ∈ S we have
∣ Ball M ( A , r − 1 ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B ∗ , 2 ( r − 1 ) ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B ∗ , ρ ) ∣ . \left|\operatorname{Ball}_{M}(A,r-1)\right| \le4^{\operatorname{diam}(M)}\left|\operatorname{Ball}_{M}(B^{*},2(r-1))\right| \le4^{\operatorname{diam}(M)}\left|\operatorname{Ball}_{M}(B^{*},\rho)\right|. ∣ Ball M ( A , r − 1 ) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B ∗ , 2 ( r − 1 )) ∣ ≤ 4 diam ( M ) ∣ Ball M ( B ∗ , ρ ) ∣ .
Therefore, by an union bound, the probability that a uniformly random base is bad is at most
∑ A ∈ S ∣ Ball M ( A , r − 1 ) ∣ N ≤ k 4 diam ( M ) q . \frac{\sum_{A\in\mathcal{S}}\left|\operatorname{Ball}_{M}(A,r-1)\right|}{N} \le k4^{\operatorname{diam}(M)}q. N ∑ A ∈ S ∣ Ball M ( A , r − 1 ) ∣ ≤ k 4 diam ( M ) q .
Equivalently, if p p p is the probability that a uniformly random base is good, then p ≥ q p \ge q p ≥ q and p ≥ 1 − k 4 diam ( M ) q p \ge1-k4^{\operatorname{diam}(M)}q p ≥ 1 − k 4 diam ( M ) q . These two inequalities imply that
p ≥ 1 k 4 diam ( M ) + 1 . p \ge\frac{1}{k4^{\operatorname{diam}(M)}+1}. p ≥ k 4 diam ( M ) + 1 1 .
Indeed, if q ≥ 1 / ( k 4 diam ( M ) + 1 ) q \ge1/(k4^{\operatorname{diam}(M)}+1) q ≥ 1/ ( k 4 diam ( M ) + 1 ) , then p ≥ q p \ge q p ≥ q gives the claim. Otherwise p ≥ 1 − k 4 diam ( M ) q > 1 / ( k 4 diam ( M ) + 1 ) p \ge1-k4^{\operatorname{diam}(M)}q > 1/(k4^{\operatorname{diam}(M)}+1) p ≥ 1 − k 4 diam ( M ) q > 1/ ( k 4 diam ( M ) + 1 ) .
Now take L = ⌈ ( k 4 diam ( M ) + 1 ) log ( 2 / δ ) ⌉ L=\left\lceil(k4^{\operatorname{diam}(M)}+1)\log(2/\delta)\right\rceil L = ⌈ ( k 4 diam ( M ) + 1 ) log ( 2/ δ ) ⌉ independent uniformly random bases, and return the sampled base maximizing d ( B , S ) d(B,\mathcal{S}) d ( B , S ) . The probability that none of these samples is good is at most
( 1 − 1 k 4 diam ( M ) + 1 ) L ≤ exp ( − L k 4 diam ( M ) + 1 ) ≤ δ 2 . \left(1-\frac{1}{k4^{\operatorname{diam}(M)}+1}\right)^L \le\exp\left(-\frac{L}{k4^{\operatorname{diam}(M)}+1}\right) \le\frac{\delta}{2}. ( 1 − k 4 diam ( M ) + 1 1 ) L ≤ exp ( − k 4 diam ( M ) + 1 L ) ≤ 2 δ .
Thus exact uniform sampling succeeds with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 .
The preceding calculation analyzed the ideal distribution of L L L independent uniform bases. To implement the algorithm with independence-oracle access, invoke the first part of Lemma 4.9 with accuracy δ / 2 \delta/2 δ /2 and L L L samples. This produces an ordered L L L -tuple whose joint distribution is within total variation distance δ / 2 \delta/2 δ /2 of the uniform distribution. Since total variation distance bounds the change in probability of every event, the probability of the success event changes by at most δ / 2 \delta/2 δ /2 . Consequently, the implemented algorithm succeeds with probability at least 1 − δ 1-\delta 1 − δ . By the first assertion of Lemma 4.9, this uses L ⋅ poly ( n , log ( L / δ ) ) L\cdot\operatorname{poly}(n,\log(L/\delta)) L ⋅ poly ( n , log ( L / δ )) independence-oracle calls. As L = 4 diam ( M ) poly ( k , log ( 1 / δ ) ) L=4^{\operatorname{diam}(M)}\operatorname{poly}(k,\log(1/\delta)) L = 4 diam ( M ) poly ( k , log ( 1/ δ )) , this is 4 diam ( M ) poly ( n , k , log ( 1 / δ ) ) 4^{\operatorname{diam}(M)}\operatorname{poly}(n,k,\log(1/\delta)) 4 diam ( M ) poly ( n , k , log ( 1/ δ )) , as claimed.
We remark that combining the previous lemma with Theorem 4.7 already gives a polynomial-time constant approximation for Diverse Matroid Basis (albeit with a rather large constant).
A PTAS for Farthest Matroid Basis in the Large-Diameter Regime
In this subsection, we show that the Farthest Matroid Basis problem admits a PTAS in the large-diameter regime. Let B 1 , … , B k ∈ B ( M ) B_1,\ldots,B_k \in\mathcal{B}(M) B 1 , … , B k ∈ B ( M ) be the given bases. We relax the problem by replacing the unknown basis with a point in the matroid base polytope. For a vector x ∈ R E x \in\mathbb{R}^{E} x ∈ R E and a set T ⊆ E T \subseteq E T ⊆ E , write x ( T ) = ∑ e ∈ T x e x(T)=\sum_{e\in T}x_e x ( T ) = ∑ e ∈ T x e . Recall that the base polytope of M M M is
P ( M ) = conv { 1 B : B ∈ B ( M ) } = { x ∈ R ≥ 0 E : x ( S ) ≤ r M ( S ) for all S ⊆ E , x ( E ) = r ( M ) } . P(M)=\operatorname{conv}\{\mathbf{1}_B:B\in\mathcal{B}(M)\}=\{x\in\mathbb{R}_{\geq0}^{E}:x(S)\leq r_M(S)\text{ for all }S\subseteq E,\ x(E)=r(M)\}. P ( M ) = conv { 1 B : B ∈ B ( M )} = { x ∈ R ≥ 0 E : x ( S ) ≤ r M ( S ) for all S ⊆ E , x ( E ) = r ( M )} .
For an integral point x = 1 B x=\mathbf{1}_B x = 1 B , the quantity ∑ e ∈ E ∖ B i x e \sum_{e\in E\setminus B_i}x_e ∑ e ∈ E ∖ B i x e is exactly ∣ B ∖ B i ∣ = d ( B , B i ) |B\setminus B_i|=d(B,B_i) ∣ B ∖ B i ∣ = d ( B , B i ) . Thus, the natural relaxation asks for a point x ∈ P ( M ) x\in P(M) x ∈ P ( M ) that maximizes the minimum fractional distance to the bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k . Introducing a variable λ \lambda λ for this minimum gives the following linear program.
max λ s.t. x ∈ P ( M ) , ∑ e ∈ E ∖ B i x e ≥ λ ∀ i ∈ [ k ] , λ ≥ 0. (22) \begin{aligned}
\max\quad& \lambda\\
\text{s.t.}\quad& x \in P(M),\\
& \sum_{e\in E\setminus B_i} x_e \ge\lambda\qquad\forall i\in[k],\\
& \lambda\ge0. \tag*{(22)}
\end{aligned} max s.t. λ x ∈ P ( M ) , e ∈ E ∖ B i ∑ x e ≥ λ ∀ i ∈ [ k ] , λ ≥ 0. (22)
We first record that the relaxation can be solved in polynomial time using standard separation over the matroid base polytope.
Lemma 4.13. Let M M M be a matroid, S ⊆ B ( M ) \mathcal{S} \subseteq\mathcal{B}(M) S ⊆ B ( M ) be a set of k k k bases. There is an algorithm that returns a tuple ( x ∗ , λ ∗ ) (x^*,\lambda^*) ( x ∗ , λ ∗ ) that is optimal for (FMB-LP) in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) .
Proof. We solve the linear program using the ellipsoid method, so it suffices to give a polynomial-time separation oracle for its feasible region. Given a candidate point ( x , λ ) (x,\lambda) ( x , λ ) , we first check the explicit constraints λ ≥ 0 \lambda\ge0 λ ≥ 0 and
∑ e ∈ E ∖ B i x e ≥ λ for all i ∈ [ k ] . \sum_{e\in E\setminus B_i} x_e \ge\lambda\qquad\text{for all }i\in[k]. e ∈ E ∖ B i ∑ x e ≥ λ for all i ∈ [ k ] . If one of these inequalities is violated, it gives a separating hyperplane.
It remains to separate over the base polytope P ( M ) P(M) P ( M ) . We check x e ≥ 0 x_e \ge0 x e ≥ 0 for all e ∈ E e \in E e ∈ E and x ( E ) = r ( M ) x(E)=r(M) x ( E ) = r ( M ) . If either condition fails, we again obtain a violated linear constraint. Finally, we need to decide whether x ( T ) ≤ r M ( T ) x(T) \le r_M(T) x ( T ) ≤ r M ( T ) for all T ⊆ E T \subseteq E T ⊆ E .
This is equivalent to checking whether min T ⊆ E { r M ( T ) − x ( T ) } ≥ 0 \min_{T\subseteq E}\{r_M(T)-x(T)\}\ge0 min T ⊆ E { r M ( T ) − x ( T )} ≥ 0 . The function T ↦ r M ( T ) − x ( T ) T\mapsto r_M(T)-x(T) T ↦ r M ( T ) − x ( T ) is submodular, since r M r_M r M is submodular and x ( T ) x(T) x ( T ) is modular. Moreover, r M ( T ) r_M(T) r M ( T ) can be evaluated in polynomial time by the greedy algorithm using the independence oracle. Hence this minimum, and a minimizer if the value is negative, can be found in polynomial time by submodular-function minimization (see e.g. Chapter 45 of Schrijver’s book [53 ] ). A negative minimizer gives the violated inequality x ( T ) ≤ r M ( T ) x(T)\le r_M(T) x ( T ) ≤ r M ( T ) ; otherwise x ∈ P ( M ) x\in P(M) x ∈ P ( M ) .
Thus (FMB-LP) has a polynomial-time separation oracle. Since 0 ≤ λ ≤ r ( M ) ≤ n 0\le\lambda\le r(M)\le n 0 ≤ λ ≤ r ( M ) ≤ n for every feasible solution, the feasible region is polynomially bounded. The standard equivalence between separation and optimization via the ellipsoid method therefore returns an optimal solution ( x ∗ , λ ∗ ) (x^*,\lambda^*) ( x ∗ , λ ∗ ) in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) .
We need the following consequences of Chekuri, Vondrak, and Zenklusen’s swap rounding [15 ] to round the fractional solution of (FMB-LP) to an integral solution while preserving marginals and obtaining concentration bounds.
Lemma 4.14. Let M M M be a matroid, x ∈ P ( M ) x\in P(M) x ∈ P ( M ) be a point in the base polytope and S ⊆ E S\subseteq E S ⊆ E . There is a randomized polynomial-time algorithm that returns a base B R B_R B R such that
P [ e ∈ B R ] = x e \mathbb{P}[e\in B_R]=x_e P [ e ∈ B R ] = x e for all e ∈ E e\in E e ∈ E ,
For every ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) ,
P [ ∣ B R ∩ S ∣ ≤ ( 1 − ϵ ) ∑ e ∈ S x e ] ≤ exp ( − ϵ 2 2 ∑ e ∈ S x e ) \mathbb{P}\left[|B_R\cap S|\le(1-\epsilon)\sum_{e\in S}x_e\right]\le\exp\left(-\frac{\epsilon^2}{2}\sum_{e\in S}x_e\right) P [ ∣ B R ∩ S ∣ ≤ ( 1 − ϵ ) e ∈ S ∑ x e ] ≤ exp ( − 2 ϵ 2 e ∈ S ∑ x e ) Proof. For the first property, Theorem 1.1 of Chekuri, Vondrak, and Zenklusen [15 ] implies that there is a randomized polynomial-time algorithm that returns a base B R B_R B R such that P [ e ∈ B R ] = x e \mathbb{P}[e\in B_R]=x_e P [ e ∈ B R ] = x e for all e ∈ E e\in E e ∈ E .
The second property is implied by Corollary 1.2 of [15 ] . For any vector a ∈ [ 0 , 1 ] E a \in[0,1]^E a ∈ [ 0 , 1 ] E , let
Z = ∑ e ∈ B R a e and μ = E [ Z ] = ∑ e ∈ E a e x e . Z = \sum_{e\in B_R} a_e \qquad\text{and}\qquad\mu= \mathbb{E}[Z] = \sum_{e\in E} a_e x_e. Z = e ∈ B R ∑ a e and μ = E [ Z ] = e ∈ E ∑ a e x e .
Corollary 1.2 of [15 ] gives, for every ϵ ∈ [ 0 , 1 ] \epsilon\in[0,1] ϵ ∈ [ 0 , 1 ] ,
P [ Z ≤ ( 1 − ϵ ) μ ] ≤ exp ( − ϵ 2 2 μ ) . \mathbb{P}[Z \le(1-\epsilon)\mu] \le\exp\left(-\frac{\epsilon^2}{2}\mu\right). P [ Z ≤ ( 1 − ϵ ) μ ] ≤ exp ( − 2 ϵ 2 μ ) .
Taking a e = 1 [ e ∈ S ] a_e = \mathbb{1}[e \in S] a e = 1 [ e ∈ S ] gives Z = ∣ B R ∩ S ∣ Z = |B_R \cap S| Z = ∣ B R ∩ S ∣ and μ = ∑ e ∈ S x e \mu= \sum_{e\in S} x_e μ = ∑ e ∈ S x e , which is exactly the desired bound. This completes the proof.
We now show that swap-rounding the optimal solution to (FMB-LP) gives a PTAS for the Farthest Matroid Basis problem in the large-diameter regime.
Lemma 4.15. Let M M M be a matroid, S ⊆ B ( M ) \mathcal{S} \subseteq\mathcal{B}(M) S ⊆ B ( M ) be a set of k k k bases, δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and ϵ > 0 \epsilon> 0 ϵ > 0 . If diam 2 ( M ) ≥ 4 ϵ − 2 ln ( k / δ ) \operatorname{diam}_2(M) \ge4\epsilon^{-2}\ln(k/\delta) diam 2 ( M ) ≥ 4 ϵ − 2 ln ( k / δ ) , then there is a randomized algorithm that returns a base B B B satisfying
d ( B , S ) ≥ ( 1 − ϵ ) max B ′ ∈ B ( M ) d ( B ′ , S ) d(B,\mathcal{S}) \ge(1-\epsilon)\max_{B'\in\mathcal{B}(M)} d(B',\mathcal{S}) d ( B , S ) ≥ ( 1 − ϵ ) B ′ ∈ B ( M ) max d ( B ′ , S ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) .
Proof. Let B 1 , … , B k ∈ B ( M ) B_1,\ldots,B_k \in\mathcal{B}(M) B 1 , … , B k ∈ B ( M ) be the given bases, B ∗ ∈ B ( M ) B^* \in\mathcal{B}(M) B ∗ ∈ B ( M ) be a base that maximizes d ( B ∗ , S ) d(B^*,\mathcal{S}) d ( B ∗ , S ) , and let d ∗ = d ( B ∗ , S ) d^* = d(B^*,\mathcal{S}) d ∗ = d ( B ∗ , S ) .
We begin by solving the linear program (FMB-LP) via Lemma 4.13 to obtain an optimal solution ( x ∗ , λ ∗ ) (x^*,\lambda^*) ( x ∗ , λ ∗ ) . Note that λ ∗ ≥ d ∗ \lambda^* \ge d^* λ ∗ ≥ d ∗ , since the point ( 1 B ∗ , d ∗ ) (\mathbb{1}_{B^*},d^*) ( 1 B ∗ , d ∗ ) is a feasible solution to (FMB-LP) with objective value d ∗ d^* d ∗ .
We next show that λ ∗ ≥ 1 2 diam 2 ( M ) \lambda^* \ge\frac{1}{2}\operatorname{diam}_2(M) λ ∗ ≥ 2 1 diam 2 ( M ) . Let B 1 ∗ , B 2 ∗ ∈ B ( M ) B_1^*,B_2^* \in\mathcal{B}(M) B 1 ∗ , B 2 ∗ ∈ B ( M ) be two bases such that d ( B 1 ∗ , B 2 ∗ ) = diam 2 ( M ) d(B_1^*,B_2^*) = \operatorname{diam}_2(M) d ( B 1 ∗ , B 2 ∗ ) = diam 2 ( M ) . Define
y = 1 2 ( 1 B 1 ∗ + 1 B 2 ∗ ) ∈ P ( M ) . y = \frac{1}{2}(\mathbb{1}_{B_1^*}+\mathbb{1}_{B_2^*}) \in P(M). y = 2 1 ( 1 B 1 ∗ + 1 B 2 ∗ ) ∈ P ( M ) . Note that for every B i ∈ S B_i \in\mathcal{S} B i ∈ S , we have
∑ e ∈ E ∖ B i y e = 1 2 ( ∣ B 1 ∗ ∖ B i ∣ + ∣ B 2 ∗ ∖ B i ∣ ) ≥ 1 2 d ( B 1 ∗ , B 2 ∗ ) = 1 2 diam 2 ( M ) . \sum_{e\in E\setminus B_i} y_e = \frac{1}{2}(|B_1^* \setminus B_i|+|B_2^* \setminus B_i|) \ge\frac{1}{2}d(B_1^*,B_2^*) = \frac{1}{2}\operatorname{diam}_2(M). e ∈ E ∖ B i ∑ y e = 2 1 ( ∣ B 1 ∗ ∖ B i ∣ + ∣ B 2 ∗ ∖ B i ∣ ) ≥ 2 1 d ( B 1 ∗ , B 2 ∗ ) = 2 1 diam 2 ( M ) . Thus, ( y , 1 2 diam 2 ( M ) ) (y,\frac{1}{2}\operatorname{diam}_2(M)) ( y , 2 1 diam 2 ( M )) is a feasible solution to (FMB-LP), and hence λ ∗ ≥ 1 2 diam 2 ( M ) \lambda^* \ge\frac{1}{2}\operatorname{diam}_2(M) λ ∗ ≥ 2 1 diam 2 ( M ) .
Apply the rounding algorithm of Lemma 4.14 to x ∗ x^* x ∗ , and let B R B_R B R be the resulting base. For each i ∈ [ k ] i \in[k] i ∈ [ k ] , define S i = E ∖ B i S_i = E \setminus B_i S i = E ∖ B i and μ i = ∑ e ∈ S i x e ∗ \mu_i = \sum_{e\in S_i} x_e^* μ i = ∑ e ∈ S i x e ∗ . Since ( x ∗ , λ ∗ ) (x^*,\lambda^*) ( x ∗ , λ ∗ ) is feasible for (FMB-LP), we have μ i ≥ λ ∗ \mu_i \ge\lambda^* μ i ≥ λ ∗ for every i ∈ [ k ] i \in[k] i ∈ [ k ] . By Lemma 4.14, for every fixed i ∈ [ k ] i \in[k] i ∈ [ k ] ,
P [ ∣ B R ∩ S i ∣ < ( 1 − ϵ ) μ i ] ≤ exp ( − ϵ 2 2 μ i ) ≤ exp ( − ϵ 2 2 λ ∗ ) . \mathbb{P}[|B_R \cap S_i| < (1-\epsilon)\mu_i] \le\exp\left(-\frac{\epsilon^2}{2}\mu_i\right) \le\exp\left(-\frac{\epsilon^2}{2}\lambda^*\right). P [ ∣ B R ∩ S i ∣ < ( 1 − ϵ ) μ i ] ≤ exp ( − 2 ϵ 2 μ i ) ≤ exp ( − 2 ϵ 2 λ ∗ ) . Using λ ∗ ≥ diam 2 ( M ) / 2 \lambda^* \ge\operatorname{diam}_2(M)/2 λ ∗ ≥ diam 2 ( M ) /2 and the assumption diam 2 ( M ) ≥ 4 ϵ − 2 ln ( k / δ ) \operatorname{diam}_2(M) \ge4\epsilon^{-2}\ln(k/\delta) diam 2 ( M ) ≥ 4 ϵ − 2 ln ( k / δ ) , we get
P [ ∣ B R ∩ S i ∣ < ( 1 − ϵ ) μ i ] ≤ exp ( − ϵ 2 2 λ ∗ ) ≤ exp ( − ϵ 2 4 diam 2 ( M ) ) ≤ δ k . \mathbb{P}[|B_R \cap S_i| < (1-\epsilon)\mu_i] \le\exp\left(-\frac{\epsilon^2}{2}\lambda^*\right) \le\exp\left(-\frac{\epsilon^2}{4}\operatorname{diam}_2(M)\right) \le\frac{\delta}{k}. P [ ∣ B R ∩ S i ∣ < ( 1 − ϵ ) μ i ] ≤ exp ( − 2 ϵ 2 λ ∗ ) ≤ exp ( − 4 ϵ 2 diam 2 ( M ) ) ≤ k δ .
Thus, a union bound over all i ∈ [ k ] i \in[k] i ∈ [ k ] gives
P [ d ( B R , S ) < ( 1 − ε ) λ ∗ ] ≤ ∑ i = 1 k P [ ∣ B R ∩ S i ∣ < ( 1 − ε ) μ i ] ≤ k ⋅ δ k = δ . \mathbb{P}\left[d(B_R,\mathcal{S}) < (1-\varepsilon)\lambda^*\right] \le\sum_{i=1}^{k}\mathbb{P}\left[|B_R \cap S_i| < (1-\varepsilon)\mu_i\right] \le k \cdot\frac{\delta}{k}=\delta. P [ d ( B R , S ) < ( 1 − ε ) λ ∗ ] ≤ i = 1 ∑ k P [ ∣ B R ∩ S i ∣ < ( 1 − ε ) μ i ] ≤ k ⋅ k δ = δ .
Using that λ ∗ ≥ d ∗ \lambda^* \ge d^* λ ∗ ≥ d ∗ , we conclude that
P [ d ( B R , S ) < ( 1 − ε ) d ∗ ] ≤ P [ d ( B R , S ) < ( 1 − ε ) λ ∗ ] ≤ δ , \mathbb{P}\left[d(B_R,\mathcal{S}) < (1-\varepsilon)d^*\right] \le\mathbb{P}\left[d(B_R,\mathcal{S}) < (1-\varepsilon)\lambda^*\right] \le\delta, P [ d ( B R , S ) < ( 1 − ε ) d ∗ ] ≤ P [ d ( B R , S ) < ( 1 − ε ) λ ∗ ] ≤ δ ,
as desired. The running-time bound follows from the fact that the algorithms from Lemma 4.13 and Lemma 4.14 run in polynomial time.
Approximating Farthest Matroid Basis
Naturally, we can combine the two regimes to obtain a 1 3 \frac{1}{3} 3 1 -approximation for the Farthest Matroid Basis problem in polynomial time.
Theorem 1.6. Let M M M be a matroid, S ⊆ B ( M ) \mathcal{S} \subseteq B(M) S ⊆ B ( M ) be a set of k k k bases and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . There is a randomized algorithm that returns a base B B B satisfying
d ( B , S ) ≥ 1 3 max B ′ ∈ B ( M ) d ( B ′ , S ) d(B,\mathcal{S}) \ge\frac{1}{3}\max_{B' \in B(M)}d(B',\mathcal{S}) d ( B , S ) ≥ 3 1 B ′ ∈ B ( M ) max d ( B ′ , S ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) .
Proof. We first describe an algorithm that succeeds with probability at least 2 / 3 2/3 2/3 . Compute diam 2 ( M ) \operatorname{diam}_2(M) diam 2 ( M ) using matroid intersection in time poly ( n ) \operatorname{poly}(n) poly ( n ) . If diam 2 ( M ) ≥ 16 ln ( 3 k ) \operatorname{diam}_2(M) \ge16\ln(3k) diam 2 ( M ) ≥ 16 ln ( 3 k ) , then we apply the algorithm from Lemma 4.15 with ε = 1 / 2 \varepsilon=1/2 ε = 1/2 and δ = 1 / 3 \delta=1/3 δ = 1/3 to obtain a 1 / 2 1/2 1/2 approximation with probability at least 2 / 3 2/3 2/3 in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) . Otherwise, we apply the algorithm from Lemma 4.12 with δ = 1 / 3 \delta=1/3 δ = 1/3 to obtain a 3-approximation with probability at least 2 / 3 2/3 2/3 in time 4 diam ( M ) poly ( n , k ) ≤ 4 16 ln ( 3 k ) poly ( n , k ) ≤ poly ( n , k ) 4^{\operatorname{diam}(M)}\operatorname{poly}(n,k) \le4^{16\ln(3k)}\operatorname{poly}(n,k) \le\operatorname{poly}(n,k) 4 diam ( M ) poly ( n , k ) ≤ 4 16 l n ( 3 k ) poly ( n , k ) ≤ poly ( n , k ) .
To boost the success probability, repeat the constant-success algorithm ⌈ log 3 ( 1 / δ ) ⌉ \lceil\log_3(1/\delta)\rceil ⌈ log 3 ( 1/ δ )⌉ times and return the candidate base maximizing d ( B , S ) d(B,\mathcal{S}) d ( B , S ) . Standard probability amplification shows that the success probability is at least 1 − δ 1-\delta 1 − δ .
We can also obtain a QPTAS for the Farthest Matroid Basis problem by replacing the 3-approximation in the low-diameter regime with a quasi-polynomial-time exact algorithm. This algorithm follows by noting that for a given base A ∈ B ( M ) A \in B(M) A ∈ B ( M ) , we have that all other bases are within distance diam ( M ) \operatorname{diam}(M) diam ( M ) , and hence we can enumerate all bases in time n O ( diam ( M ) ) n^{O(\operatorname{diam}(M))} n O ( diam ( M )) .
Theorem 4.16. Let M M M be a matroid, S ⊆ B ( M ) \mathcal{S} \subseteq B(M) S ⊆ B ( M ) be a set of k k k bases and ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) . There is a randomized algorithm that returns a base B B B satisfying
d ( B , S ) ≥ ( 1 − ε ) max B ′ ∈ B ( M ) d ( B ′ , S ) d(B,\mathcal{S}) \ge(1-\varepsilon)\max_{B' \in B(M)}d(B',\mathcal{S}) d ( B , S ) ≥ ( 1 − ε ) B ′ ∈ B ( M ) max d ( B ′ , S ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) ⋅ n O ( ε − 2 log k ) \operatorname{poly}(n,k,\log(1/\delta)) \cdot n^{O(\varepsilon^{-2}\log k)} poly ( n , k , log ( 1/ δ )) ⋅ n O ( ε − 2 l o g k ) .
Proof. We first describe an algorithm that succeeds with probability at least 2 / 3 2/3 2/3 . Compute diam 2 ( M ) \operatorname{diam}_2(M) diam 2 ( M ) using matroid intersection in time poly ( n ) \operatorname{poly}(n) poly ( n ) . If diam 2 ( M ) ≥ 4 ε − 2 ln ( 3 k ) \operatorname{diam}_2(M) \ge4\varepsilon^{-2}\ln(3k) diam 2 ( M ) ≥ 4 ε − 2 ln ( 3 k ) , then we apply the algorithm from Lemma 4.15 with δ = 1 / 3 \delta=1/3 δ = 1/3 to obtain a ( 1 − ε ) (1-\varepsilon) ( 1 − ε ) approximation with probability at least $2/3 in time poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) . Otherwise, we have that diam 2 ( M ) < 4 ε − 2 ln ( 3 k ) \operatorname{diam}_2(M) < 4\varepsilon^{-2}\ln(3k) diam 2 ( M ) < 4 ε − 2 ln ( 3 k ) . Compute some base A ∈ B ( M ) A \in\mathcal{B}(M) A ∈ B ( M ) of the matroid, and note that every base B ∈ B ( M ) B \in\mathcal{B}(M) B ∈ B ( M ) has the form B = ( A ∖ O ) ∪ I B = (A \setminus O) \cup I B = ( A ∖ O ) ∪ I , where O ⊆ A O \subseteq A O ⊆ A , I ⊆ E ∖ A I \subseteq E \setminus A I ⊆ E ∖ A , and ∣ O ∣ = ∣ I ∣ ≤ diam ( M ) < 4 ε − 2 ln ( 3 k ) |O| = |I| \le\operatorname{diam}(M) < 4\varepsilon^{-2}\ln(3k) ∣ O ∣ = ∣ I ∣ ≤ diam ( M ) < 4 ε − 2 ln ( 3 k ) .
Thus, we can enumerate all possible pairs ( I , O ) (I,O) ( I , O ) in time n O ( ε − 2 log k ) n^{O(\varepsilon^{-2}\log k)} n O ( ε − 2 l o g k ) , check whether the corresponding set is a base, and return the base that maximizes d ( B , S ) d(B,S) d ( B , S ) .
To boost the success probability, repeat the constant-success algorithm ⌈ log 3 ( 1 / δ ) ⌉ \lceil\log_3(1/\delta)\rceil ⌈ log 3 ( 1/ δ )⌉ times and return the candidate base maximizing d ( B , S ) d(B,S) d ( B , S ) . Standard probability amplification shows that the success probability is at least 1 − δ 1-\delta 1 − δ .
We remark that Eisenbrand et al. [24 ] study the problem of finding a matroid basis whose weight vector is equal to a prescribed target, where the element weights are specified by an m × n m \times n m × n integer matrix. They give an FPT algorithm parameterized by m m m and Δ \Delta Δ , where Δ \Delta Δ denotes the maximum absolute value of an entry in the weight matrix. By using their algorithm as a black box with parameters m : = k m := k m := k and Δ : = 1 \Delta:= 1 Δ := 1 , the FMB problem can be solved in time C C O ( k ) poly ( n ) C^{C^{O(k)}}\operatorname{poly}(n) C C O ( k ) poly ( n ) for some constant C > 0 C > 0 C > 0 . This establishes that FMB is fixed-parameter tractable with respect to k k k , but the dependence on k k k is too large to fit our needs.
Consequences for Diverse Matroid Basis
We end the section by noting that the previous results for Farthest Matroid Basis can be used to obtain approximation algorithms for Diverse Matroid Basis. This is the farthest-insertion argument of Gonzalez [33 ] ; closely related farthest-insertion reductions for diversity over exponentially large solution spaces appear, for example, in the work of Gao et al. [30 ] .
Lemma 4.17. Suppose that, for every set S ⊆ B ( M ) S \subseteq\mathcal{B}(M) S ⊆ B ( M ) and every failure parameter η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) , there is a randomized α \alpha α -approximation algorithm for Farthest Matroid Basis that, with probability at least 1 − η 1-\eta 1 − η , returns a base B B B satisfying
d ( B , S ) ≥ α max B ′ ∈ B ( M ) d ( B ′ , S ) , d(B,S) \ge\alpha\max_{B' \in\mathcal{B}(M)} d(B',S), d ( B , S ) ≥ α B ′ ∈ B ( M ) max d ( B ′ , S ) , and runs in time polynomial in n n n , ∣ S ∣ |S| ∣ S ∣ , and log ( 1 / η ) \log(1/\eta) log ( 1/ η ) . Then, for every k ≥ 2 k \ge2 k ≥ 2 and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , there is a randomized α 2 \frac{\alpha}{2} 2 α -approximation algorithm for Diverse Matroid Basis that succeeds with probability at least 1 − δ 1-\delta 1 − δ and runs in time polynomial in n n n , k k k , and log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) .
Proof. Let D = diam k ( M ) D = \operatorname{diam}_k(M) D = diam k ( M ) , and let B 1 ∗ , … , B k ∗ B_1^*,\ldots,B_k^* B 1 ∗ , … , B k ∗ be bases with pairwise distances at least D D D . Start from an arbitrary base B 1 B_1 B 1 . For t = 2 , … , k t = 2,\ldots,k t = 2 , … , k , run the Farthest Matroid Basis algorithm on the current set S t − 1 = { B 1 , … , B t − 1 } S_{t-1} = \{B_1,\ldots,B_{t-1}\} S t − 1 = { B 1 , … , B t − 1 } with failure parameter δ / ( k − 1 ) \delta/(k-1) δ / ( k − 1 ) , and let B t B_t B t be the returned base. Finally output { B 1 , … , B k } \{B_1,\ldots,B_k\} { B 1 , … , B k } .
By a union bound, with probability at least 1 − δ 1-\delta 1 − δ all k − 1 k-1 k − 1 calls to the Farthest Matroid Basis algorithm succeed. Condition on this event. We claim that before each insertion step t t t ,
max B ∈ B ( M ) d ( B , S t − 1 ) ≥ D 2 . \max_{B \in\mathcal{B}(M)} d(B,S_{t-1}) \ge\frac{D}{2}. B ∈ B ( M ) max d ( B , S t − 1 ) ≥ 2 D .
To see this, first suppose that every B j ∗ B_j^* B j ∗ has distance strictly less than D / 2 D/2 D /2 from S t − 1 S_{t-1} S t − 1 . Then, we can choose for each j j j , a base C j ∈ S t − 1 C_j \in S_{t-1} C j ∈ S t − 1 with d ( B j ∗ , C j ) < D / 2 d(B_j^*,C_j) < D/2 d ( B j ∗ , C j ) < D /2 . Since ∣ S t − 1 ∣ < k |S_{t-1}| < k ∣ S t − 1 ∣ < k , two of these choices coincide, say C a = C b = C C_a = C_b = C C a = C b = C . The triangle inequality would give
d ( O a , O b ) ≤ d ( O a , C ) + d ( C , O b ) < D , d(O_a,O_b) \le d(O_a,C) + d(C,O_b) < D, d ( O a , O b ) ≤ d ( O a , C ) + d ( C , O b ) < D ,
contradicting the definition of D D D . Thus, there exist a base at distance at least D / 2 D/2 D /2 from S t − 1 S_{t-1} S t − 1 . Since the call at step t t t succeeds,
d ( B t , S t − 1 ) ≥ α max B ′ ∈ B ( M ) d ( B ′ , S t − 1 ) ≥ α D 2 . d(B_t,S_{t-1}) \ge\alpha\max_{B'\in\mathcal{B}(M)} d(B',S_{t-1}) \ge\frac{\alpha D}{2}. d ( B t , S t − 1 ) ≥ α B ′ ∈ B ( M ) max d ( B ′ , S t − 1 ) ≥ 2 α D .
Therefore every inserted base is at distance at least α D / 2 \alpha D/2 α D /2 from all previously inserted bases, and hence the final set has minimum pairwise distance at least α D / 2 \alpha D/2 α D /2 . This is exactly an α / 2 \alpha/2 α /2 -approximation for Diverse Matroid Basis. The running-time bound follows from the k − 1 k-1 k − 1 oracle calls with failure parameter δ / ( k − 1 ) \delta/(k-1) δ / ( k − 1 ) .
We have the following immediate corollary of the previous lemma and the results in § 4.2 .
Corollary 1.7. Let M M M be a matroid, δ , ε ∈ ( 0 , 1 ) \delta,\varepsilon\in(0,1) δ , ε ∈ ( 0 , 1 ) , and k ≥ 2 k \ge2 k ≥ 2 .
There is a randomized algorithm that returns a set of k k k bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k satisfying
min i < j d ( B i , B j ) ≥ 1 6 diam k ( M ) \min_{i<j}d(B_i,B_j) \ge\frac{1}{6}\operatorname{diam}_k(M) i < j min d ( B i , B j ) ≥ 6 1 diam k ( M ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) .
There is a randomized algorithm that returns a set of k k k bases B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k satisfying
min i < j d ( B i , B j ) ≥ 1 − ε 2 diam k ( M ) \min_{i<j}d(B_i,B_j) \ge\frac{1-\varepsilon}{2}\operatorname{diam}_k(M) i < j min d ( B i , B j ) ≥ 2 1 − ε diam k ( M ) with probability at least 1 − δ 1-\delta 1 − δ in time poly ( n , k , log ( 1 / δ ) ) ⋅ n O ( ε − 2 log k ) \operatorname{poly}(n,k,\log(1/\delta)) \cdot n^{O(\varepsilon^{-2}\log k)} poly ( n , k , log ( 1/ δ )) ⋅ n O ( ε − 2 l o g k ) .
Proof. Immediate from combining Lemma 4.17 with Theorems 1.6 and 4.16.
Special Cases
In this section, we present algorithms with improved approximation factors for special classes of matroids. We begin by recalling the main results of this section.
Theorem 1.8. For each 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exist randomized poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time algorithms that achieve, with success probability at least 1 − δ 1-\delta 1 − δ :
A 1 / 2 1/2 1/2 -approximation for the Diverse Matroid Bases problem for matroids with vertex-transitive basis exchange graphs.
A 1 / 4 1/4 1/4 -approximation for the Diverse Spanning Tree for graphs with constant arboricity.
We prove Theorem 1.8 over two subsections. In § 5.1 , we prove part 1, and we prove part 2 in § 5.2 .
Matroids with Vertex-Transitive Basis-Exchange Graphs
The result we prove in this section is closely related to vertex-transitivity of graphs. For a simple graph G = ( V , E ) G=(V,E) G = ( V , E ) , an automorphism of G G G is a permutation σ \sigma σ of its vertex set which maps edges to edges and nonedges to nonedges [11 ] . An immediate consequence of this is that automorphisms preserve distances between vertices. A graph G = ( V , E ) G=(V,E) G = ( V , E ) is said to be vertex-transitive if for any u , v ∈ V u,v\in V u , v ∈ V there exists a graph automorphism σ ∈ Aut ( G ) \sigma\in\operatorname{Aut}(G) σ ∈ Aut ( G ) such that σ ( u ) = v \sigma(u)=v σ ( u ) = v [11 ] .
Theorem 5.1. For any matroids with vertex-transitive basis-exchange graph and for every δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , there exists a poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) -time 1 / 2 1/2 1/2 -approximation randomized algorithm (that succeeds with probability 1 − δ 1-\delta 1 − δ ) for the Diverse Matroid Base problem.
To prove Theorem 5.1 , we begin by defining growth-regular graph.
Definition 5.2 (Growth-Regular Graph). A graph G = ( V , E ) G=(V,E) G = ( V , E ) is said to be growth-regular if, for any two vertices u , v ∈ V u,v \in V u , v ∈ V and r ∈ N r \in\mathbb{N} r ∈ N , ∣ Ball ( u , r ) ∣ = ∣ Ball ( v , r ) ∣ |\operatorname{Ball}(u,r)|=|\operatorname{Ball}(v,r)| ∣ Ball ( u , r ) ∣ = ∣ Ball ( v , r ) ∣ . That is, the volume of a ball around a vertex depends only on the radius, not the vertex.
We now show that every vertex-transitive graph is growth-regular. Although this fact is folklore, we include the proof for completeness.
Lemma 5.3. (folklore ) Any vertex-transitive graph is growth-regular.
Proof. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a vertex-transitive graph, and let u u u and v v v be two fixed arbitrary vertices of G G G . Then, by the definition for vertex-transitivity, there exists a graph automorphism σ ∈ Aut ( G ) \sigma\in\operatorname{Aut}(G) σ ∈ Aut ( G ) such that σ ( u ) = v \sigma(u)=v σ ( u ) = v . Given, r ∈ N r \in\mathbb{N} r ∈ N , let x ∈ Ball ( u , r ) x \in\operatorname{Ball}(u,r) x ∈ Ball ( u , r ) . Since graph automorphisms preserve the distance,
d ( u , x ) = d ( σ ( u ) , σ ( x ) ) = d ( v , σ ( x ) ) ≤ r . d(u,x)=d(\sigma(u),\sigma(x))=d(v,\sigma(x))\le r. d ( u , x ) = d ( σ ( u ) , σ ( x )) = d ( v , σ ( x )) ≤ r .
Therefore, σ ( x ) ∈ Ball ( v , r ) \sigma(x) \in\operatorname{Ball}(v,r) σ ( x ) ∈ Ball ( v , r ) . Conversely, let y ∈ Ball ( v , r ) y \in\operatorname{Ball}(v,r) y ∈ Ball ( v , r ) . Since σ − 1 \sigma^{-1} σ − 1 is also a graph automorphism, the same logic as above applies, and thus we have σ − 1 ( y ) ∈ Ball ( u , r ) \sigma^{-1}(y) \in\operatorname{Ball}(u,r) σ − 1 ( y ) ∈ Ball ( u , r ) . Therefore, σ : Ball ( u , r ) → Ball ( v , r ) \sigma:\operatorname{Ball}(u,r)\to\operatorname{Ball}(v,r) σ : Ball ( u , r ) → Ball ( v , r ) is a bijection, and this completes the proof. □ \square □
Now, we present the algorithm for Theorem 5.1 below.
Table Algorithm.
Correctness. Let M M M be a matroid with vertex-transitive basis-exchange graph. Lemma 5.3 implies that we can unambiguously define B M , r B_{M,r} B M , r to be the cardinality of Ball ( B , r ) \operatorname{Ball}(B,r) Ball ( B , r ) for every base B ∈ B ( M ) B\in\mathcal{B}(M) B ∈ B ( M ) . Since Ball ( B i , ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ ) \operatorname{Ball}(B_i,\lfloor(\operatorname{diam}_k(M)-1)/2\rfloor) Ball ( B i , ⌊( diam k ( M ) − 1 ) /2 ⌋) and Ball ( B j , ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ ) \operatorname{Ball}(B_j,\lfloor(\operatorname{diam}_k(M)-1)/2\rfloor) Ball ( B j , ⌊( diam k ( M ) − 1 ) /2 ⌋) are pairwise disjoint for every i ≠ j i\ne j i = j , we have
∑ i = 1 k ∣ Ball ( B i , ⌊ diam k ( M ) − 1 2 ⌋ ) ∣ = k ⋅ B M , ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ ≤ ∣ B ( M ) ∣ . (23) \sum_{i=1}^{k} \left|\operatorname{Ball}\left(B_i,\left\lfloor\frac{\operatorname{diam}_k(M)-1}{2}\right\rfloor\right)\right|=k\cdot B_{M,\left\lfloor(\operatorname{diam}_k(M)-1)/2\right\rfloor}\leq|\mathcal{B}(M)|. \tag*{(23)} i = 1 ∑ k Ball ( B i , ⌊ 2 diam k ( M ) − 1 ⌋ ) = k ⋅ B M , ⌊ ( diam k ( M ) − 1 ) /2 ⌋ ≤ ∣ B ( M ) ∣. (23)
Now, for any i < k i<k i < k , let B 1 , … , B i ∈ B ( M ) B_1,\ldots,B_i\in\mathcal{B}(M) B 1 , … , B i ∈ B ( M ) . Equation (23) implies that
Pr B ∼ B ( M ) [ d ( B , B j ) > ⌊ diam k ( M ) − 1 2 ⌋ , ∀ 1 ≤ j ≤ i ] = 1 − ∣ ⋃ j = 1 i Ball ( B j , ⌊ diam k ( M ) − 1 2 ⌋ ) ∣ ∣ B ( M ) ∣ \Pr_{B\sim\mathcal{B}(M)}\left[d(B,B_j)>\left\lfloor\frac{\operatorname{diam}_k(M)-1}{2}\right\rfloor,\ \forall1\leq j\leq i\right]
=1-\frac{\left|\bigcup_{j=1}^{i}\operatorname{Ball}\left(B_j,\left\lfloor\frac{\operatorname{diam}_k(M)-1}{2}\right\rfloor\right)\right|}{|\mathcal{B}(M)|} B ∼ B ( M ) Pr [ d ( B , B j ) > ⌊ 2 diam k ( M ) − 1 ⌋ , ∀1 ≤ j ≤ i ] = 1 − ∣ B ( M ) ∣ ⋃ j = 1 i Ball ( B j , ⌊ 2 diam k ( M ) − 1 ⌋ )
≥ 1 − i ⋅ B M , ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ ∣ B ( M ) ∣ ≥ 1 − i k ≥ 1 − 1 k . \geq1-\frac{i\cdot B_{M,\left\lfloor(\operatorname{diam}_k(M)-1)/2\right\rfloor}}{|\mathcal{B}(M)|}\geq1-\frac{i}{k}\geq1-\frac{1}{k}. ≥ 1 − ∣ B ( M ) ∣ i ⋅ B M , ⌊ ( diam k ( M ) − 1 ) /2 ⌋ ≥ 1 − k i ≥ 1 − k 1 .
Now, fix λ \lambda λ and let L = k ⋅ ln ( k δ ) L=k\cdot\ln\left(\frac{k}{\delta}\right) L = k ⋅ ln ( δ k ) and sample L L L bases B ( 1 ) , … , B ( L ) B^{(1)},\ldots,B^{(L)} B ( 1 ) , … , B ( L ) uniformly at random. Then, the probability that none of them are at distance greater than ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ \left\lfloor(\operatorname{diam}_k(M)-1)/2\right\rfloor ⌊ ( diam k ( M ) − 1 ) /2 ⌋ from each of B 1 , … , B i B_1,\ldots,B_i B 1 , … , B i is at most
( 1 − 1 k ) L ≤ exp ( − L / k ) ≤ δ k . \left(1-\frac{1}{k}\right)^L\leq\exp(-L/k)\leq\frac{\delta}{k}. ( 1 − k 1 ) L ≤ exp ( − L / k ) ≤ k δ .
Hence, with probability at least 1 − δ k 1-\frac{\delta}{k} 1 − k δ , for each 1 ≤ i ≤ k 1\leq i\leq k 1 ≤ i ≤ k round succeeds in adding a base B i B_i B i to the list which has distance at least ⌊ ( diam k ( M ) − 1 ) / 2 ⌋ + 1 ≥ diam k ( M ) / 2 \left\lfloor(\operatorname{diam}_k(M)-1)/2\right\rfloor+1\geq\operatorname{diam}_k(M)/2 ⌊ ( diam k ( M ) − 1 ) /2 ⌋ + 1 ≥ diam k ( M ) /2 from each base already present in the list. Union bounding over each 1 ≤ i ≤ k 1\leq i\leq k 1 ≤ i ≤ k shows that the algorithm outputs, with probability at least 1 − δ 1-\delta 1 − δ a set of bases with minimum pairwise distance at least diam k ( M ) / 2 \operatorname{diam}_k(M)/2 diam k ( M ) /2 .
The vertices of the Johnson graph J ( n , r ) J(n,r) J ( n , r ) are all r r r -subsets of [ n ] [n] [ n ] , where two vertices u u u and v v v are adjacent if and only if ∣ u ∩ v ∣ = r − 1 |u\cap v|=r-1 ∣ u ∩ v ∣ = r − 1 . Therefore, J ( n , r ) J(n,r) J ( n , r ) is the basis-exchange graph of the uniform matroid with rank r r r on n n n elements. Since the Johnson graph is vertex-transitive [31 ] , so is the basis-exchange graph of every uniform matroid. Moreover, the Cartesian product of vertex-transitive graphs is again vertex-transitive [47 ] . Therefore, Theorem 5.1 applies to all partition matroids, and hence we have the following corollary.
Corollary 5.4. For every δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , there exists a poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) -time 1 / 2 1/2 1/2 -approximation algorithm for the k k k -diversity problem for partition matroids.
Graphic Matroids
Throughout this section, unless otherwise stated, G = ( V , E ) G=(V,E) G = ( V , E ) is a simple connected graph on n = ∣ V ∣ n=|V| n = ∣ V ∣ vertices, and T ( G ) ⊆ 2 E \mathcal{T}(G)\subseteq2^E T ( G ) ⊆ 2 E is its set of spanning trees, i.e. the bases of the graphic matroid of G G G . For T , T ′ ∈ T ( G ) T,T'\in\mathcal{T}(G) T , T ′ ∈ T ( G ) we define the basis exchange distance to be d ( T , T ′ ) = 1 2 ∣ T △ T ′ ∣ d(T,T')=\frac{1}{2}|T\mathbin{\triangle}T'| d ( T , T ′ ) = 2 1 ∣ T △ T ′ ∣ , and
diam k ( T ( G ) ) = max T 1 , … , T k ∈ T ( G ) min i ≠ j d ( T i , T j ) \operatorname{diam}_k(\mathcal{T}(G))=\max_{T_1,\ldots,T_k\in\mathcal{T}(G)}\min_{i\ne j}d(T_i,T_j) diam k ( T ( G )) = T 1 , … , T k ∈ T ( G ) max i = j min d ( T i , T j )
is the optimal k k k -diversity. The Diverse Spanning Tree (DST) problem asks, given G G G and k ≥ 2 k\geq2 k ≥ 2 , for k k k spanning trees attaining diam k ( T ( G ) ) \operatorname{diam}_k(\mathcal{T}(G)) diam k ( T ( G )) . This is a specialization of Diverse Matroid Basis to graphic matroids. In this section, we design an algorithm that achieves an improved approximation factor for the DST problem in graphs with bounded arboricity. Constant arboricity captures many well-studied sparse graph classes such as planar graphs (Arb ≤ 3 \operatorname{Arb}\leq3 Arb ≤ 3 ), graphs of bounded genus, graphs of bounded treewidth.
Definition 5.5 (Arboricity). Let G = ( V , E ) G=(V,E) G = ( V , E ) be a graph. The arboricity Arb ( G ) \operatorname{Arb}(G) Arb ( G ) is the minimum number of spanning forests of G G G needed to cover the entire edge set E E E of G G G . Equivalently, it can be shown [43 ] that
Arb ( G ) = ⌈ max U ⊆ V , ∣ U ∣ ≥ 2 ∣ E ( U ) ∣ ∣ V ( U ) ∣ − 1 ⌉ . \operatorname{Arb}(G)=\left\lceil\max_{\substack{U\subseteq V,\\ |U|\geq2}}\frac{|E(U)|}{|V(U)|-1}\right\rceil. Arb ( G ) = U ⊆ V , ∣ U ∣ ≥ 2 max ∣ V ( U ) ∣ − 1 ∣ E ( U ) ∣ .
Theorem 5.6. There exists a randomized poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time 1 / 4 1/4 1/4 -approximation algorithm that succeeds with probability 1 − δ 1-\delta 1 − δ for the Diverse Spanning Tree in graphs of constant arboricity.
The proof of Theorem 5.6 uses a very different technique than the random-sampling-based approaches used earlier. Essentially, we reduce the problem of finding diverse spanning trees in G G G to the problem of finding diverse spanning trees in a much smaller “core graph,” and then brute-force search over it. We start by defining the core graph.
Construction of the core graph H H H . We define V c : = { v ∈ V : deg G ( v ) ≥ 3 } V_c:=\{v\in V:\deg_G(v)\geq3\} V c := { v ∈ V : deg G ( v ) ≥ 3 } to be the set of core vertices of G G G . We construct a multigraph H H H on the vertex set V c V_c V c as follows. First, for every edge u v ∈ E uv\in E uv ∈ E with u , v ∈ V c u,v\in V_c u , v ∈ V c , we add an edge u v uv uv to H H H . Such an edge is called a core edge . Next, for every maximal simple path P = u , x 1 , x 2 , ⋯ , x i , v P=u,x_1,x_2,\cdots,x_i,v P = u , x 1 , x 2 , ⋯ , x i , v , where i ≥ 1 i\geq1 i ≥ 1 , whose endpoints u , v u,v u , v are distinct core vertices in V c V_c V c and whose internal vertices x 1 , … , x i x_1,\ldots,x_i x 1 , … , x i all lie in V ∖ V c V\setminus V_c V ∖ V c , we add an edge u v uv uv to H H H . We call such an edge a thread . Finally, for each simple cycle in G G G that contains exactly one core vertex u u u and whose remaining vertices are all non-core vertices, we add a loop at u u u in H H H . Note that the edges of H H H are precisely the core edges, threads, and loops obtained in this way; see Figure 5.1 .
Figure 5.1. An example of a graph G G G and its associated core graph H H H . Trees T G T_G T G and f ( T G ) f(T_G) f ( T G ) are illustrated in thick red edges.
Mapping spanning trees from G G G to H H H . We can now define a map f : T ( G ) → T ( H ) f:\mathcal{T}(G)\to\mathcal{T}(H) f : T ( G ) → T ( H ) . Let T G T_G T G be any spanning tree of G G G . The spanning tree T H = f ( T G ) T_H=f(T_G) T H = f ( T G ) is defined as follows. Any core edge e e e is present in T H T_H T H if and only if e e e is present in T G T_G T G . A thread edge ( u , v ) (u,v) ( u , v ) created by a maximal path P = u , x 1 , x 2 , ⋯ , x i , v P=u,x_1,x_2,\cdots,x_i,v P = u , x 1 , x 2 , ⋯ , x i , v is included in T H T_H T H if and only if every edge in P P P is present in T G T_G T G . It is easy to verify that 1) every f ( T G ) f(T_G) f ( T G ) contains no loop, 2) it is connected on the core vertices, 3) it is acyclic, and for every T H ∈ T ( H ) T_H\in\mathcal{T}(H) T H ∈ T ( H ) there exists some T G ∈ T ( G ) T_G\in\mathcal{T}(G) T G ∈ T ( G ) such that f ( T G ) = T H f(T_G)=T_H f ( T G ) = T H . Define f − 1 ( T H ) : = { T G ∈ T ( G ) : f ( T G ) = T H } f^{-1}(T_H):=\{T_G\in\mathcal{T}(G):f(T_G)=T_H\} f − 1 ( T H ) := { T G ∈ T ( G ) : f ( T G ) = T H } .
Lemma 5.7. H H H has O ( diam 2 ( T ( G ) ) ) O(\operatorname{diam}_2(\mathcal{T}(G))) O ( diam 2 ( T ( G ))) vertices, loops and threads.
Proof. We first upper bound the number of loops.
Loops. Fix a spanning tree T H T_H T H of H H H , and let ℓ \ell ℓ be the number of loops of H H H . Each loop corresponds to a simple cycle in G G G on at least 3 vertices (as G G G is simple), and distinct loops of H H H correspond to distinct cycles, which are pairwise edge-disjoint (call them C 1 , … , C ℓ C_1,\ldots,C_\ell C 1 , … , C ℓ ).
For any T G ∈ f − 1 ( T H ) T_G\in f^{-1}(T_H) T G ∈ f − 1 ( T H ) and each i i i , T G T_G T G must contain all edges of C i C_i C i but one: it cannot contain all of C i C_i C i (that would create a cycle), and it cannot exclude two or more edges of C i C_i C i (that would disconnect G G G , since f ( T G ) = T H f(T_G)=T_H f ( T G ) = T H already fixes a spanning tree on the rest of H H H ). Since this excluded edge may be chosen independently for each i i i , we may pick T G ( 1 ) , T G ( 2 ) ∈ f − 1 ( T H ) T_G^{(1)},T_G^{(2)}\in f^{-1}(T_H) T G ( 1 ) , T G ( 2 ) ∈ f − 1 ( T H ) that exclude different edges e i ≠ e i ′ e_i \ne e_i' e i = e i ′ of C i C_i C i for every i i i , and agree elsewhere. Hence, C i C_i C i contributes exactly the pair { e i , e i ′ } \{e_i,e_i'\} { e i , e i ′ } to T G ( 1 ) △ T G ( 2 ) T_G^{(1)} \triangle T_G^{(2)} T G ( 1 ) △ T G ( 2 ) . As the C i C_i C i are pairwise edge-disjoint, these contributions add up:
d ( T G ( 1 ) , T G ( 2 ) ) = ∣ T G ( 1 ) △ T G ( 2 ) ∣ 2 ≥ ℓ . d(T_G^{(1)},T_G^{(2)})=\frac{\lvert T_G^{(1)}\triangle T_G^{(2)}\rvert}{2}\geq\ell. d ( T G ( 1 ) , T G ( 2 ) ) = 2 ∣ T G ( 1 ) △ T G ( 2 ) ∣ ≥ ℓ .
Since d ( T G ( 1 ) , T G ( 2 ) ) ≤ diam 2 ( T ( G ) ) d(T_G^{(1)},T_G^{(2)})\leq\operatorname{diam}_2(\mathcal{T}(G)) d ( T G ( 1 ) , T G ( 2 ) ) ≤ diam 2 ( T ( G )) , ℓ ≤ diam 2 ( T ( G ) ) \ell\leq\operatorname{diam}_2(\mathcal{T}(G)) ℓ ≤ diam 2 ( T ( G )) .
Vertices. Fix the same spanning tree T H T_H T H of H H H , and let H ∘ H^\circ H ∘ denote H H H with all loops deleted. Define R R R to be the subgraph of H ∘ H^\circ H ∘ with edge set E ( R ) : = E ( H ∘ ) ∖ E ( T H ) E(R):=E(H^\circ)\setminus E(T_H) E ( R ) := E ( H ∘ ) ∖ E ( T H ) , vertex set V ( R ) V(R) V ( R ) the endpoints of E ( R ) E(R) E ( R ) . Let ρ \rho ρ be the rank of R R R : ρ : = ∣ V ( R ) ∣ − c ( R ) \rho:=|V(R)|-c(R) ρ := ∣ V ( R ) ∣ − c ( R ) , where c ( R ) c(R) c ( R ) is the number of connected components of R R R .
Step 1: ρ ≤ diam 2 ( T ( G ) ) \rho\leq\operatorname{diam}_2(\mathcal{T}(G)) ρ ≤ diam 2 ( T ( G )) . Since every vertex of R R R is incident to an edge of R R R , each component of R R R has at least 2 vertices. This implies that ∣ c ( R ) ∣ ≤ ∣ V ( R ) ∣ / 2 |c(R)|\leq|V(R)|/2 ∣ c ( R ) ∣ ≤ ∣ V ( R ) ∣/2 and ∣ V ( R ) ∣ ≤ 2 ρ |V(R)|\leq2\rho ∣ V ( R ) ∣ ≤ 2 ρ , and hence, ∣ c ( R ) ∣ ≤ ρ |c(R)|\leq\rho ∣ c ( R ) ∣ ≤ ρ . Let F R F_R F R be a spanning forest of R R R . It has exactly ρ \rho ρ edges and can be extended to a spanning tree T H ′ T'_H T H ′ of H H H with E ( F R ) ⊆ E ( T H ′ ) E(F_R)\subseteq E(T'_H) E ( F R ) ⊆ E ( T H ′ ) . Since E ( F R ) ∩ E ( T H ) = ∅ E(F_R)\cap E(T_H)=\varnothing E ( F R ) ∩ E ( T H ) = ∅ by construction, and hence, ∣ T H ′ △ T H ∣ ≥ 2 ∣ E ( F R ) ∣ = 2 ρ |T'_H\triangle T_H|\geq2|E(F_R)|=2\rho ∣ T H ′ △ T H ∣ ≥ 2∣ E ( F R ) ∣ = 2 ρ . Lifting T H , T H ′ T_H,T'_H T H , T H ′ to T G ∈ f − 1 ( T H ) , T G ′ ∈ f − 1 ( T H ′ ) T_G\in f^{-1}(T_H), T'_G\in f^{-1}(T'_H) T G ∈ f − 1 ( T H ) , T G ′ ∈ f − 1 ( T H ′ ) , every edge of H H H on which T H , T H ′ T_H,T'_H T H , T H ′ disagree (core edge or thread) forces at least one edge of disagreement between T G , T G ′ T_G,T'_G T G , T G ′ in G G G , so d ( T G , T G ′ ) ≥ 1 2 ∣ T H △ T H ′ ∣ ≥ ρ d(T_G,T'_G)\geq\frac{1}{2}|T_H\triangle T'_H|\geq\rho d ( T G , T G ′ ) ≥ 2 1 ∣ T H △ T H ′ ∣ ≥ ρ . As d ( T G , T G ′ ) ≤ diam 2 ( T ( G ) ) d(T_G,T'_G)\leq\operatorname{diam}_2(\mathcal{T}(G)) d ( T G , T G ′ ) ≤ diam 2 ( T ( G )) , we get ρ ≤ diam 2 ( T ( G ) ) \rho\leq\operatorname{diam}_2(\mathcal{T}(G)) ρ ≤ diam 2 ( T ( G )) .
Step 2: counting vertices of H H H . We say a vertex v ∈ V ( H ) v\in V(H) v ∈ V ( H ) bad if v v v carries a loop of H H H or v ∈ V ( R ) v\in V(R) v ∈ V ( R ) , and good otherwise. We start with noting that every good vertex has degree at least 3 in T H T_H T H : Every vertex in H H H has degree at least 3. If a good vertex v v v has degree ≤ 2 \leq2 ≤ 2 in T H T_H T H , this would imply that either an edge in R R R is incident to v v v or v v v has a loop, which cannot happen since v v v is a good vertex.
Now, consider any vertex u u u in H H H with degree at most 2 in T H T_H T H . Since every vertex in H H H has degree at least 3, this implies that u u u is adjacent to some edge in R = E ∖ T H R=E\setminus T_H R = E ∖ T H . Thus, u u u belongs to V ( R ) V(R) V ( R ) . Since ∣ V ( R ) ∣ ≤ 2 ρ |V(R)|\leq2\rho ∣ V ( R ) ∣ ≤ 2 ρ , the number of vertices in H H H with degree at most 2 in T H T_H T H is ≤ 2 ρ \leq2\rho ≤ 2 ρ . In particular, the number of leaves in T H T_H T H is at most 2 ρ ≤ 2 diam 2 ( T ( G ) ) 2\rho\leq2\operatorname{diam}_2(\mathcal{T}(G)) 2 ρ ≤ 2 diam 2 ( T ( G )) .
The handshake lemma for trees implies that the number of vertices of degree ≥ 3 \geq3 ≥ 3 in T H T_H T H , and hence the number of good vertices, is at most the number of leaves in T H T_H T H , which is in turn at most 2 diam 2 ( T ( G ) ) 2\operatorname{diam}_2(\mathcal{T}(G)) 2 diam 2 ( T ( G )) . Now, the number of bad vertices is at most ℓ + ∣ V ( R ) ∣ ≤ ρ + 2 ρ ≤ 3 diam 2 ( T ( G ) ) \ell+|V(R)|\leq\rho+2\rho\leq3\operatorname{diam}_2(\mathcal{T}(G)) ℓ + ∣ V ( R ) ∣ ≤ ρ + 2 ρ ≤ 3 diam 2 ( T ( G )) . Combining the bounds on good and bad vertices, ∣ V ( H ) ∣ ≤ 5 diam 2 ( T ( G ) ) |V(H)|\leq5\operatorname{diam}_2(\mathcal{T}(G)) ∣ V ( H ) ∣ ≤ 5 diam 2 ( T ( G )) .
Threads. Consider any spanning tree T H ∈ T ( H ) T_H\in\mathcal{T}(H) T H ∈ T ( H ) . Note ∣ E ( T H ) ∣ = ∣ V ( H ) ∣ − 1 |E(T_H)|=|V(H)|-1 ∣ E ( T H ) ∣ = ∣ V ( H ) ∣ − 1 , so the number of thread edges selected in T H T_H T H is at most ∣ V ( H ) ∣ − 1 |V(H)|-1 ∣ V ( H ) ∣ − 1 . Let t t t denote the total number of thread edges in H H H , and let P 1 , … , P s P_1,\ldots,P_s P 1 , … , P s denote the paths in G G G that they represent; each path has length at least 2. Consider any thread edge not present in T H T_H T H , corresponding to a path P i P_i P i . For any T G ∈ f − 1 ( T H ) T_G\in f^{-1}(T_H) T G ∈ f − 1 ( T H ) , T G T_G T G must include all the edges in P i P_i P i but one (as in the loop argument), and this excluded edge may be chosen independently for each such i i i . Hence we can define T G 1 , T G 2 ∈ f − 1 ( T H ) T_G^1,T_G^2\in f^{-1}(T_H) T G 1 , T G 2 ∈ f − 1 ( T H ) such that ∣ T G 1 △ T G 2 ∣ ≥ 2 ( t − ( ∣ V ( H ) ∣ − 1 ) ) |T_G^1\triangle T_G^2|\geq2(t-(|V(H)|-1)) ∣ T G 1 △ T G 2 ∣ ≥ 2 ( t − ( ∣ V ( H ) ∣ − 1 )) . Thus t − ∣ V ( H ) ∣ + 1 ≤ diam 2 ( T ( G ) ) t-|V(H)|+1\leq\operatorname{diam}_2(\mathcal{T}(G)) t − ∣ V ( H ) ∣ + 1 ≤ diam 2 ( T ( G )) , which implies t ≤ diam 2 ( T ( G ) ) + ∣ V ( H ) ∣ − 1 ≤ 6 diam 2 ( T ( G ) ) t\leq\operatorname{diam}_2(\mathcal{T}(G))+|V(H)|-1\leq6\operatorname{diam}_2(\mathcal{T}(G)) t ≤ diam 2 ( T ( G )) + ∣ V ( H ) ∣ − 1 ≤ 6 diam 2 ( T ( G )) .
Lemma 5.8. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a simple connected graph on n n n vertices with arboricity Arb ( G ) \operatorname{Arb}(G) Arb ( G ) . Let H H H be the associated core multigraph. Then ∣ E ( H ) ∣ = O ( Arb ( G ) ⋅ diam 2 ( T ( G ) ) ) |E(H)|=O\left(\operatorname{Arb}(G)\cdot\operatorname{diam}_2(\mathcal{T}(G))\right) ∣ E ( H ) ∣ = O ( Arb ( G ) ⋅ diam 2 ( T ( G )) ) .
Proof. Let V c V_c V c be the set of core vertices of G G G . By Lemma 5.7 the number of vertices, loops and threads of H H H is O ( diam 2 ( T ( G ) ) ) O(\operatorname{diam}_2(\mathcal{T}(G))) O ( diam 2 ( T ( G ))) ; it remains to bound the number of core edges of H H H . Since core edges of H H H are precisely the edges of G G G whose two endpoints are both core vertices, if G G G has at most one core vertex, the claim is trivial. Now assume G G G has at least two core vertices. By the definition of arboricity, for every U ⊆ V ( G ) U \subseteq V(G) U ⊆ V ( G ) with ∣ U ∣ ≥ 2 |U| \ge2 ∣ U ∣ ≥ 2 , ∣ E G ( U ) ∣ ≤ Arb ( G ) ( ∣ U ∣ − 1 ) |E_G(U)| \le\operatorname{Arb}(G)(|U|-1) ∣ E G ( U ) ∣ ≤ Arb ( G ) ( ∣ U ∣ − 1 ) . Applying Definition 5.5 with U = V c U=V_c U = V c gives
∣ E c o r e ( H ) ∣ = ∣ E G ( V c ) ∣ ≤ Arb ( G ) ⋅ ( ∣ V c ∣ − 1 ) = Arb ( G ) ⋅ ( ∣ V ( H ) ∣ − 1 ) = O ( Arb ( G ) ⋅ diam 2 ( T ( G ) ) ) , |E_{\mathrm{core}}(H)|=|E_G(V_c)|\le\operatorname{Arb}(G)\cdot(|V_c|-1)=\operatorname{Arb}(G)\cdot(|V(H)|-1)=O(\operatorname{Arb}(G)\cdot\operatorname{diam}_2(\mathcal{T}(G))), ∣ E core ( H ) ∣ = ∣ E G ( V c ) ∣ ≤ Arb ( G ) ⋅ ( ∣ V c ∣ − 1 ) = Arb ( G ) ⋅ ( ∣ V ( H ) ∣ − 1 ) = O ( Arb ( G ) ⋅ diam 2 ( T ( G ))) ,
where we used Lemma 5.7 to bound ∣ V ( H ) ∣ |V(H)| ∣ V ( H ) ∣ . This completes the proof.
Putting it all together. We combine these ingredients into a 1 / 4 1/4 1/4 -approximation for DST. Fix a sufficiently large constant c c c .
Large-diameter regime. For each ε > 0 \varepsilon>0 ε > 0 , there exists a constant c c c such that if diam 2 ( T ( G ) ) > c log k \operatorname{diam}_2(\mathcal{T}(G))>c\log k diam 2 ( T ( G )) > c log k , then the large-diameter PTAS for Farthest Matroid Basis (Lemma 4.15 ) runs in poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) time and returns a ( 1 − ε ) (1-\varepsilon) ( 1 − ε ) -approximation; composing it with farthest insertion (Lemma 4.17 ) yields a 1 − ε 2 \frac{1-\varepsilon}{2} 2 1 − ε -approximation for DST in poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time. Taking ε = 1 2 \varepsilon=\frac{1}{2} ε = 2 1 gives a 1 / 4 1/4 1/4 -approximation.
Small-diameter regime. Otherwise diam 2 ( T ( G ) ) = O ( log k ) \operatorname{diam}_2(\mathcal{T}(G))=O(\log k) diam 2 ( T ( G )) = O ( log k ) . By Lemma 5.7 and Lemma 5.8 , and using Arb ( G ) = O ( 1 ) \operatorname{Arb}(G)=O(1) Arb ( G ) = O ( 1 ) , we have ∣ V ( H ) ∣ = O ( log k ) |V(H)|=O(\log k) ∣ V ( H ) ∣ = O ( log k ) and ∣ E ( H ) ∣ = O ( log k ) |E(H)|=O(\log k) ∣ E ( H ) ∣ = O ( log k ) . Hence,
∣ T ( H ) ∣ ≤ 2 ∣ E ( H ) ∣ = 2 O ( log k ) = poly ( k ) , |\mathcal{T}(H)|\le2^{|E(H)|}=2^{O(\log k)}=\operatorname{poly}(k), ∣ T ( H ) ∣ ≤ 2 ∣ E ( H ) ∣ = 2 O ( l o g k ) = poly ( k ) ,
so T ( H ) \mathcal{T}(H) T ( H ) can be enumerated in poly ( k ) \operatorname{poly}(k) poly ( k ) time. The remainder of the subsection handles this regime.
Structure of f − 1 ( T H ) f^{-1}(T_H) f − 1 ( T H ) . Fix T H ∈ T ( H ) T_H\in\mathcal{T}(H) T H ∈ T ( H ) and let G ′ G' G ′ be the subgraph of G G G consisting of edges with at least one endpoint outside V c V_c V c . This is a edge-disjoint union of the thread paths and loop cycles. Any T G ∈ f − 1 ( T H ) T_G\in f^{-1}(T_H) T G ∈ f − 1 ( T H ) is determined as follows:
every core edge e e e lies in T G T_G T G if and only if e ∈ T H e\in T_H e ∈ T H ; thus T G ∖ E ( G ′ ) T_G\setminus E(G') T G ∖ E ( G ′ ) is fixed by T H T_H T H .
for a path with corresponding thread edge in T H T_H T H , all its edges lie in T G T_G T G .
for each cycle, T G T_G T G contains all but exactly one of its edges.
for a path with corresponding thread edge not in T H T_H T H , T G T_G T G contains all but exactly one of its edges.
The free choices are exactly one omitted edge per cycle in G ′ G' G ′ (loop in H H H ) and per unselected path in G G G (thread in H H H ), and any such choice yields a spanning tree. Hence f − 1 ( T H ) f^{-1}(T_H) f − 1 ( T H ) is the set of bases of a partition matroid M T H M_{T_H} M T H whose categories are these cycles and unselected paths, each with capacity 1. We call M T H M_{T_H} M T H the fiber of T H T_H T H . Moreover, for B , B ′ ∈ f − 1 ( T H ) B,B'\in f^{-1}(T_H) B , B ′ ∈ f − 1 ( T H ) the Hamming distance d ( B , B ′ ) d(B,B') d ( B , B ′ ) in G G G equals the base-exchange distance in M T H M_{T_H} M T H , since B , B ′ B,B' B , B ′ agree outside G ′ G' G ′ . Particularly, we have as a consequence, the following claim.
Claim 5.9. For all T , T ′ ∈ T ( G ) T,T'\in\mathcal{T}(G) T , T ′ ∈ T ( G ) ,
d ( f ( T ) , f ( T ′ ) ) ≤ d ( T , T ′ ) . d(f(T),f(T'))\le d(T,T'). d ( f ( T ) , f ( T ′ )) ≤ d ( T , T ′ ) . In particular, for every T ∈ T ( G ) T\in\mathcal{T}(G) T ∈ T ( G ) and every S ′ ∈ T ( H ) S'\in\mathcal{T}(H) S ′ ∈ T ( H ) there exists T ^ ∈ f − 1 ( S ′ ) \widehat{T}\in f^{-1}(S') T ∈ f − 1 ( S ′ ) with d ( T , T ^ ) = d ( f ( T ) , S ′ ) d(T,\widehat{T})=d(f(T),S') d ( T , T ) = d ( f ( T ) , S ′ ) .
Proof. The inequality d ( f ( T ) , f ( T ′ ) ) ≤ d ( T , T ′ ) d(f(T),f(T'))\le d(T,T') d ( f ( T ) , f ( T ′ )) ≤ d ( T , T ′ ) simply follows from properties (1)–(4). Write S = f ( T ) S=f(T) S = f ( T ) . We can choose T ^ ∈ f − 1 ( S ′ ) \widehat{T}\in f^{-1}(S') T ∈ f − 1 ( S ′ ) to agree with T T T on every core edge outside S △ S ′ S\mathbin{\triangle}S' S △ S ′ , and, on each loop cycle and each thread not flipped between S S S and S ′ S' S ′ , to omit the same edge as T T T . The only disagreements are then a single edge in G G G for each core edge or thread in S △ S ′ S\mathbin{\triangle}S' S △ S ′ , giving
d ( T , T ^ ) = 1 2 ∣ S △ S ′ ∣ = d ( S , S ′ ) . d(T,\widehat{T})=\frac{1}{2}|S\mathbin{\triangle}S'|=d(S,S'). d ( T , T ) = 2 1 ∣ S △ S ′ ∣ = d ( S , S ′ ) .
Partition-matroid sampler. We use Corollary 5.4: given a partition matroid M M M , a threshold λ \lambda λ , and a target t t t , if diam t ( M ) ≥ 2 λ \operatorname{diam}_{t}(M) \ge2\lambda diam t ( M ) ≥ 2 λ then in poly ( n , t , log ( 1 / η ) ) \operatorname{poly}(n,t,\log(1/\eta)) poly ( n , t , log ( 1/ η )) time one can, with probability ≥ 1 − η \ge1-\eta ≥ 1 − η , output t t t bases of M M M with pairwise distance ≥ λ \ge\lambda ≥ λ .
The algorithm iterates over all λ ∈ { n , n − 1 , … , 0 } \lambda\in\{n,n-1,\ldots,0\} λ ∈ { n , n − 1 , … , 0 } . For each λ \lambda λ it (i) builds, by farthest point insertion over T ( H ) \mathcal{T}(H) T ( H ) , a maximal set of centers C ⊆ T ( H ) C \subseteq\mathcal{T}(H) C ⊆ T ( H ) that have pairwise distance ≥ λ \ge\lambda ≥ λ , and (ii) from each center’s fiber spanning trees with pairwise distance at least λ \lambda λ using the sampler above. The union has pairwise distance at least λ \lambda λ in G G G : within a fiber by construction, and across fibers because Claim 5.9 gives d G ( B , B ′ ) ≥ d H ( f ( B ) , f ( B ′ ) ) ≥ λ d_G(B,B') \ge d_H(f(B),f(B')) \ge\lambda d G ( B , B ′ ) ≥ d H ( f ( B ) , f ( B ′ )) ≥ λ for centers ≥ λ \ge\lambda ≥ λ apart.
Algorithm: Diverse Spanning Trees in bounded-arboricity graphs (small-diameter regime)
Input: Connected graph G G G with Arb ( G ) = O ( 1 ) \operatorname{Arb}(G)=O(1) Arb ( G ) = O ( 1 ) ; integer k ≥ 2 k \ge2 k ≥ 2 ; failure probability δ \delta δ . (Assumes diam 2 ( T ( G ) ) = O ( log k ) \operatorname{diam}_2(\mathcal{T}(G))=O(\log k) diam 2 ( T ( G )) = O ( log k ) . )
Output: S ⊆ T ( G ) S \subseteq\mathcal{T}(G) S ⊆ T ( G ) with ∣ S ∣ = k |S|=k ∣ S ∣ = k and min T ≠ T ′ ∈ S d ( T , T ′ ) ≥ 1 4 diam k ( T ( G ) ) \min_{T\ne T'\in S}d(T,T') \ge\frac{1}{4}\operatorname{diam}_k(\mathcal{T}(G)) min T = T ′ ∈ S d ( T , T ′ ) ≥ 4 1 diam k ( T ( G )) .
Construct the core multigraph H H H and enumerate T ( H ) \mathcal{T}(H) T ( H ) ( ∣ T ( H ) ∣ = poly ( k ) ) (|\mathcal{T}(H)|=\operatorname{poly}(k)) ( ∣ T ( H ) ∣ = poly ( k )) .
For λ = n , n − 1 , … , 0 \lambda=n,n-1,\ldots,0 λ = n , n − 1 , … , 0 : (a) Centers. Set C ← { S 0 } C \leftarrow\{S_0\} C ← { S 0 } for an arbitrary S 0 ∈ T ( H ) S_0 \in\mathcal{T}(H) S 0 ∈ T ( H ) . While some S ∈ T ( H ) S \in\mathcal{T}(H) S ∈ T ( H ) has d ( S , C ) : = min S ′ ∈ C d ( S , S ′ ) ≥ λ d(S,C):=\min_{S'\in C}d(S,S') \ge\lambda d ( S , C ) := min S ′ ∈ C d ( S , S ′ ) ≥ λ , add such an S S S to C C C . Continue until no further center exists or if we have found k k k centers. (b) Lifting. Set S λ ← ∅ S_\lambda\leftarrow\emptyset S λ ← ∅ . For each S ∈ C S \in C S ∈ C : run the algorithm from Theorem 5.1 with threshold distance λ \lambda λ , failure parameter δ / ( n k ∣ T ( H ) ∣ ) \delta/(nk|\mathcal{T}(H)|) δ / ( nk ∣ T ( H ) ∣ ) . If it outputs k S k_S k S bases that are pairwise ≥ λ \ge\lambda ≥ λ -separated, add them to S λ S_\lambda S λ . Note that we will terminate this step as well as soon as we find k k k or more bases. (c) If ∣ S λ ∣ ≥ k |S_\lambda| \ge k ∣ S λ ∣ ≥ k , return any k k k elements of S λ S_\lambda S λ .
Lemma 5.10 (Correctness). Suppose Arb ( G ) = O ( 1 ) \operatorname{Arb}(G)=O(1) Arb ( G ) = O ( 1 ) and diam 2 ( T ( G ) ) = O ( log k ) \operatorname{diam}_2(\mathcal{T}(G))=O(\log k) diam 2 ( T ( G )) = O ( log k ) . With probability at least 1 − δ 1-\delta 1 − δ , the algorithm above outputs k k k spanning trees of G G G with pairwise distance at least 1 4 diam k ( T ( G ) ) \frac{1}{4}\operatorname{diam}_k(\mathcal{T}(G)) 4 1 diam k ( T ( G )) , in poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time.
Proof. Let D k = diam k ( T ( G ) ) D_k=\operatorname{diam}_k(\mathcal{T}(G)) D k = diam k ( T ( G )) and let T 1 ⋆ , … , T k ⋆ ∈ T ( G ) T_1^\star,\ldots,T_k^\star\in\mathcal{T}(G) T 1 ⋆ , … , T k ⋆ ∈ T ( G ) be optimal, i.e. d ( T i ⋆ , T j ⋆ ) ≥ D k d(T_i^\star,T_j^\star)\ge D_k d ( T i ⋆ , T j ⋆ ) ≥ D k for all i ≠ j i\ne j i = j . If D k ≤ 3 D_k\le3 D k ≤ 3 , any k k k distinct spanning trees have minimum distance at least 1 1 1 , which is at least D k / 4 D_k/4 D k /4 . Now, we show the iteration with λ = ⌊ D k / 4 ⌋ \lambda=\lfloor D_k/4\rfloor λ = ⌊ D k /4 ⌋ returns a valid set. Consider step 2.(a). If this step outputs k k k spanning trees, then, Claim 5.9 implies that any lifts of these bases are also pairwise λ \lambda λ -separated, and hence, any two spanning trees in the set S λ S_\lambda S λ are at least λ \lambda λ -apart.
Now, we consider the case that step 2.(a) outputs less than k k k spanning trees. Then the set C C C is maximal. Let S i ⋆ = f ( T i ⋆ ) S_i^\star=f(T_i^\star) S i ⋆ = f ( T i ⋆ ) . By maximality of C C C , each S i ⋆ S_i^\star S i ⋆ is within distance < λ <\lambda < λ of some center c ( i ) ∈ C c(i)\in C c ( i ) ∈ C . Using Claim 5.9, let T ^ i ∈ f − 1 ( c ( i ) ) \widehat{T}_i\in f^{-1}(c(i)) T i ∈ f − 1 ( c ( i )) such that,
d ( T i ⋆ , T ^ i ) = d ( S i ⋆ , c ( i ) ) < λ . d(T_i^\star,\widehat{T}_i)=d(S_i^\star,c(i))<\lambda. d ( T i ⋆ , T i ) = d ( S i ⋆ , c ( i )) < λ .
For i ≠ j i\ne j i = j , the triangle inequality gives
d ( T ^ i , T ^ j ) ≥ d ( T i ⋆ , T j ⋆ ) − d ( T i ⋆ , T ^ i ) − d ( T j ⋆ , T ^ j ) > D k − 2 λ ≥ 2 λ . d(\widehat{T}_i,\widehat{T}_j)\ge d(T_i^\star,T_j^\star)-d(T_i^\star,\widehat{T}_i)-d(T_j^\star,\widehat{T}_j)>D_k-2\lambda\ge2\lambda. d ( T i , T j ) ≥ d ( T i ⋆ , T j ⋆ ) − d ( T i ⋆ , T i ) − d ( T j ⋆ , T j ) > D k − 2 λ ≥ 2 λ .
Group the indices by center: for S ∈ C S\in C S ∈ C let I S = { i : c ( i ) = S } I_S=\{i:c(i)=S\} I S = { i : c ( i ) = S } and k S = ∣ I S ∣ k_S=|I_S| k S = ∣ I S ∣ , so ∑ S k S = k \sum_S k_S=k ∑ S k S = k . The trees { T ^ i : i ∈ I S } \{\widehat{T}_i:i\in I_S\} { T i : i ∈ I S } lie in f − 1 ( S ) f^{-1}(S) f − 1 ( S ) and have pairwise distance ≥ 2 λ \ge2\lambda ≥ 2 λ , so diam k S ( M S ) ≥ 2 λ \operatorname{diam}_{k_S}(M_S)\ge2\lambda diam k S ( M S ) ≥ 2 λ . By the partition matroid sampler, the lift at center S S S returns at least k S k_S k S bases pairwise ≥ λ \geq\lambda ≥ λ -separated (with probability at least 1 − δ 1-\delta 1 − δ after applying the union bound). Hence ∣ S λ ∣ ≥ ∑ S k S = k |\mathcal{S}_\lambda| \geq\sum_S k_S = k ∣ S λ ∣ ≥ ∑ S k S = k .
Finally S λ \mathcal{S}_\lambda S λ has pairwise distance at least λ \lambda λ in G G G : two trees drawn from the same fiber f − 1 ( S ) f^{-1}(S) f − 1 ( S ) are ≥ λ \geq\lambda ≥ λ apart by construction, and two trees from distinct centers S ≠ S ′ S \neq S' S = S ′ satisfy d G ( f ( ⋅ ) , f ( ⋅ ) ) = d ( S , S ′ ) ≥ λ d_G(f(\cdot),f(\cdot)) = d(S,S') \geq\lambda d G ( f ( ⋅ ) , f ( ⋅ )) = d ( S , S ′ ) ≥ λ by Claim 5.9, since centers have pairwise distance ≥ λ \geq\lambda ≥ λ . Thus the returned set has k k k trees with pairwise distance ≥ λ = ⌊ D k / 4 ⌋ \geq\lambda= \lfloor D_k/4 \rfloor ≥ λ = ⌊ D k /4 ⌋ .
Running time and success probability. Enumerating T ( H ) \mathcal{T}(H) T ( H ) , building C \mathcal{C} C , and the O ( n ) O(n) O ( n ) outer iterations are poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) . Each partition matroid sampler runs in poly ( n , k , log ( 1 / δ ) ) \operatorname{poly}(n,k,\log(1/\delta)) poly ( n , k , log ( 1/ δ )) time, and there are at most ∣ T ( H ) ∣ = poly ( k ) |\mathcal{T}(H)|=\operatorname{poly}(k) ∣ T ( H ) ∣ = poly ( k ) of them per iteration; a union bound over all poly ( n , k ) \operatorname{poly}(n,k) poly ( n , k ) partition matroid sampler calls gives overall success probability ≥ 1 − δ \geq1-\delta ≥ 1 − δ .
Hardness Results
In this section, we will prove hardness results for our problems. We begin by restating the theorem statement.
Theorem 1.9. Decision Farthest Spanning Trees is W[1 ] -Hard parameterized by d d d . Moreover, Decision Farthest String over an unbounded alphabet is W[1 ] -Hard parameterized by d d d and the string length.
For clarity of presentation, let us define the decision versions of our problem of interest:
Problem: Decision Farthest Spanning Trees
Input: An undirected unweighted graph G G G , k k k spanning trees T 1 , … , T k T_1,\ldots,T_k T 1 , … , T k , and target distance d ∈ N d \in\mathbb{N} d ∈ N
Question: Is there a spanning tree T T T of G G G such that min i ∈ [ k ] d ( T , T i ) ≥ d \min_{i\in[k]} d(T,T_i) \geq d min i ∈ [ k ] d ( T , T i ) ≥ d ?
Our main result in this section is the W[1 ] -hardness6 of Decision Farthest Spanning Trees under the standard parameterization (i.e. the distance d d d ), as stated below. Note that our reduction also implies NP-hardness for the problem; however, as discussed in § 6.1 below, such a hardness result is known.
As shown by Marx [42 ] , W[1 ] -hardness result of a problem under standard parameterization rules out possibility of any efficient polynomial-time approximation scheme (EPTAS) for the optimization variant of the problem. Specifically, from Theorem 1.9, we obtain the following result.
Corollary 6.1. Unless W[1 ] = FPT, there is no approximation scheme with running time f ( d , 1 / ε ) ⋅ n O ( 1 ) f(d,1/\varepsilon)\cdot n^{O(1)} f ( d , 1/ ε ) ⋅ n O ( 1 ) for FST (and FMB) for any function f f f .
In contrast, a PTAS with running time k O ( 1 / ε ) ⋅ n O ( 1 ) k^{O(1/\varepsilon)}\cdot n^{O(1)} k O ( 1/ ε ) ⋅ n O ( 1 ) or n O ( 1 / ε ) n^{O(1/\varepsilon)} n O ( 1/ ε ) is not ruled out by our result. It remains an interesting question whether such a PTAS exists (in comparison to our ( 3 + ε ) (3+\varepsilon) ( 3 + ε ) -approximation algorithm and QPTAS).
W[1]-Hardness of Farthest String
As an intermediate result, we prove a W[1 ] -hardness result for the farthest string problem (on non-binary alphabet) as formalized below. Here d H d_H d H denote the Hamming distance.
Problem: Decision Farthest String Input: An alphabet set Σ \Sigma Σ , length ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N , k k k strings s 1 , … , s k ∈ Σ ℓ s_1,\ldots,s_k \in\Sigma^\ell s 1 , … , s k ∈ Σ ℓ and target distance d ∈ N d \in\mathbb{N} d ∈ N Question: Is there a string s ∈ Σ ℓ s \in\Sigma^\ell s ∈ Σ ℓ such that min i ∈ [ k ] d H ( s , s i ) ≥ d \min_{i\in[k]} d_H(s,s_i) \ge d min i ∈ [ k ] d H ( s , s i ) ≥ d ?
While NP-hardness of both FST and FMB follows directly from that of Decision Farthest String with binary alphabet (i.e. Σ = { 0 , 1 } \Sigma= \{0,1\} Σ = { 0 , 1 } ), the latter is FPT in the optimum d d d . In this subsection, we show that, unlike the binary alphabet case, Decision Farthest String with unbounded alphabet is W[1 ] -hard when parameterized by the optimum d d d .
Lemma 6.2. Decision Farthest String is W[1 ] -hard parameterized by d d d and ℓ \ell ℓ .
We note that, while such a W[1 ] -hardness result is known for the closest string variant [28 ] , it does not immediately imply the W[1 ] -hardness for the farthest string in the non-binary setting since non-binary alphabet does not allow for “taking complement”.
Our reduction is from k k k -Clique, a well known W[1 ] -hard problem We recall this problem below.
Problem: k k k -Clique Input: An undirected unweighted graph G G G , and positive integer k ∈ N k \in\mathbb{N} k ∈ N Question: Is there a set of k k k vertices of G G G that form a clique?
Proof of Lemma 6.2. Assume w.l.o.g. that k ≥ 4 k \ge4 k ≥ 4 . Let ( G = ( V , E ) , k ) (G=(V,E),k) ( G = ( V , E ) , k ) be the input of k k k -Clique. We construct an instance for Decision Farthest String as follows. First, let the alphabet Σ \Sigma Σ be V ∪ { σ d u m m y } V \cup\{\sigma_{\mathrm{dummy}}\} V ∪ { σ dummy } and let ℓ = k \ell= k ℓ = k , d = ℓ − 1 d = \ell- 1 d = ℓ − 1 . We create ( k 2 ) ⋅ ( n 2 − 2 ∣ E ∣ ) \binom{k}{2}\cdot(n^2-2|E|) ( 2 k ) ⋅ ( n 2 − 2∣ E ∣ ) strings, as follow. For every { i , j } ⊆ [ k ] \{i,j\}\subseteq[k] { i , j } ⊆ [ k ] and every pair of (not necessarily distinct) vertices u , v ∈ V u,v\in V u , v ∈ V that do not form an edge, create s i , j , u , v s^{i,j,u,v} s i , j , u , v where
( s i , j , u , v ) t = { σ d u m m y if t ∉ { i , j } u if t = i v if t = j \left(s^{i,j,u,v}\right)_t =
\begin{cases}
\sigma_{\mathrm{dummy}} & \text{if } t \notin\{i,j\}\\
u & \text{if } t=i\\
v & \text{if } t=j
\end{cases} ( s i , j , u , v ) t = ⎩ ⎨ ⎧ σ dummy u v if t ∈ / { i , j } if t = i if t = j
Completeness. When there are k k k vertices v 1 , … , v k ∈ V v_1,\ldots,v_k\in V v 1 , … , v k ∈ V that forms a k k k -clique in G G G , let s = ( v 1 , … , v k ) s=(v_1,\ldots,v_k) s = ( v 1 , … , v k ) . It is simple to see that s s s is of distance at least k − 1 = d k-1=d k − 1 = d from all strings constructed above.
Soundness. Suppose contrapositively that there is a string s s s that is of distance at least k − 1 = d k-1=d k − 1 = d from all strings constructed above. Consider the following three cases based on how many coordinates of s s s is equal to the dummy character σ d u m m y \sigma_{\mathrm{dummy}} σ dummy :
Case II: At least one but not all coordinates are equal to σ d u m m y \sigma_{\mathrm{dummy}} σ dummy . Let i d u m m y i^{\mathrm{dummy}} i dummy be an arbitrary coordinate that is set to σ d u m m y \sigma_{\mathrm{dummy}} σ dummy . Since not all coordinates are set to σ d u m m y \sigma_{\mathrm{dummy}} σ dummy , there exist another coordinate i i i whose value is some v ∈ V v\in V v ∈ V . Let j j j be any coordinate apart from these two. Consider the string s i , j , u , v s^{i,j,u,v} s i , j , u , v . We have d H ( s , s i , j , u , v ) ≤ ℓ − 2 < ℓ − 1 d_H(s,s^{i,j,u,v})\le\ell-2<\ell-1 d H ( s , s i , j , u , v ) ≤ ℓ − 2 < ℓ − 1 , a contradiction.
Case III: None of the coordinates is equal to σ d u m m y \sigma^{\mathrm{dummy}} σ dummy . In this case, s = ( v 1 , … , v k ) s=(v_1,\ldots,v_k) s = ( v 1 , … , v k ) for some vertices v 1 , … , v k ∈ V v_1,\ldots,v_k\in V v 1 , … , v k ∈ V . We claim that this must be a k k k -clique. If not, then there exists v i , v j v_i,v_j v i , v j for some i ≠ j i\ne j i = j that do not form an edge. However, this implies that d H ( s , s i , j , v i , v j ) = ℓ − 2 d_H(s,s_{i,j,v_i,v_j})=\ell-2 d H ( s , s i , j , v i , v j ) = ℓ − 2 , a contradiction.
W[1]-Hardness of Farthest Spanning Tree
We are now ready to prove our main theorem of this section (Theorem 1.9).
Proof of Theorem 1.9. We reduce from Decision Farthest String. Let ( Σ , ℓ , d , s 1 , … , s k ) (\Sigma,\ell,d,s_1,\ldots,s_k) ( Σ , ℓ , d , s 1 , … , s k ) be an instance of Decision Farthest String. We construct the graph G = ( V , E ) G=(V,E) G = ( V , E ) as follows:
Let the vertex V V V consists of 2 ℓ + 1 2\ell+1 2 ℓ + 1 vertices: a hub u u u , and ℓ \ell ℓ vertices v i v_i v i for i ∈ [ ℓ ] i\in[\ell] i ∈ [ ℓ ] .
For each i ∈ [ ℓ ] i\in[\ell] i ∈ [ ℓ ] , let there be ∣ Σ ∣ |\Sigma| ∣Σ∣ parallel edges between u u u and v i v_i v i .
Assume w.l.o.g. that Σ = { 1 , … , ∣ Σ ∣ } \Sigma=\{1,\ldots,|\Sigma|\} Σ = { 1 , … , ∣Σ∣ } . There is a bijection ψ \psi ψ between Σ ℓ \Sigma^\ell Σ ℓ and spanning trees of G G G : for any s ∈ Σ ℓ s\in\Sigma^\ell s ∈ Σ ℓ , ψ ( s ) \psi(s) ψ ( s ) corresponds to the spanning tree where the s i s_i s i -th edge between u u u and v i v_i v i is included.
Let T 1 = ψ ( s 1 ) , … , T k = ψ ( s k ) T_1=\psi(s_1),\ldots,T_k=\psi(s_k) T 1 = ψ ( s 1 ) , … , T k = ψ ( s k ) .
Finally, let d d d remains the same as before.
The completeness and soundness of the reduction is obvious since ψ \psi ψ preserves7 the distance.
Missing Proofs
Claim 3.9. Let
F ( λ ) = ( 1 − λ ) log ( 1 − λ ) − ( 1 4 − λ ) log ( 1 4 − λ ) − 9 7 log 9 7 + 15 28 log 15 28 + 3 4 log 3 4 λ − 3 4 , F(\lambda)=(1-\lambda)\log(1-\lambda)-\left(\frac{1}{4}-\lambda\right)\log\left(\frac{1}{4}-\lambda\right)-\frac{9}{7}\log\frac{9}{7}+\frac{15}{28}\log\frac{15}{28}+\frac{3}{4}\log\frac{3}{4\lambda}-\frac{3}{4}, F ( λ ) = ( 1 − λ ) log ( 1 − λ ) − ( 4 1 − λ ) log ( 4 1 − λ ) − 7 9 log 7 9 + 28 15 log 28 15 + 4 3 log 4 λ 3 − 4 3 , λ F ≈ 0.13525 \lambda_F\approx0.13525 λ F ≈ 0.13525 be the unique root of F F F in ( 0 , 1 / 4 ) (0,1/4) ( 0 , 1/4 ) and λ ∗ = 2 15 < λ F \lambda^*=\frac{2}{15}<\lambda_F λ ∗ = 15 2 < λ F . Then, for every λ ∈ ( 0 , λ ∗ ) \lambda\in(0,\lambda^*) λ ∈ ( 0 , λ ∗ ) and every integer ℓ ≥ 4 \ell\ge4 ℓ ≥ 4 , if j = ⌈ 3 ℓ / 4 ⌉ j=\lceil3\ell/4\rceil j = ⌈ 3 ℓ /4 ⌉ , then
∏ k = 0 j − 1 ⌊ ( 1 − λ ) ℓ − k ⌋ ⌈ ( 9 / 7 ) ℓ − k ⌉ ≥ ( λ ℓ ) j j ! . \prod_{k=0}^{j-1}\frac{\left\lfloor(1-\lambda)\ell-k\right\rfloor}{\left\lceil(9/7)\ell-k\right\rceil}\ge\frac{(\lambda\ell)^j}{j!}. k = 0 ∏ j − 1 ⌈ ( 9/7 ) ℓ − k ⌉ ⌊ ( 1 − λ ) ℓ − k ⌋ ≥ j ! ( λ ℓ ) j .
Proof. First, note that F F F is continuous, and
F ′ ( λ ) = log ( 1 4 − λ 1 − λ ) − 3 4 λ < 0 , F'(\lambda)=\log\left(\frac{\frac{1}{4}-\lambda}{1-\lambda}\right)-\frac{3}{4\lambda}<0, F ′ ( λ ) = log ( 1 − λ 4 1 − λ ) − 4 λ 3 < 0 ,
since λ ∈ ( 0 , 1 / 4 ) \lambda\in(0,1/4) λ ∈ ( 0 , 1/4 ) . Also F ( λ ) → + ∞ F(\lambda)\to+\infty F ( λ ) → + ∞ as λ → 0 + \lambda\to0^+ λ → 0 + , while F ( 1 / 8 ) > 0 F(1/8)>0 F ( 1/8 ) > 0 and F ( 1 / 4 ) < 0 F(1/4)<0 F ( 1/4 ) < 0 . Hence F F F has a unique root in ( 0 , 1 / 4 ) (0,1/4) ( 0 , 1/4 ) which is approximately λ F ≈ 0.13525 > 2 / 15 \lambda_F\approx0.13525>2/15 λ F ≈ 0.13525 > 2/15 . It remains to show the claimed inequality for all ℓ ≥ 4 \ell\ge4 ℓ ≥ 4 and λ < 2 / 15 \lambda< 2/15 λ < 2/15 . Since the left-hand side is non-increasing in λ \lambda λ and the right-hand side is increasing in λ \lambda λ , it suffices to prove the inequality at λ ∗ = 2 / 15 \lambda^{*} = 2/15 λ ∗ = 2/15 . Thus, we show that
∏ k = 0 j − 1 ⌊ ( 13 / 15 ) ℓ − k ⌋ ⌈ ( 9 / 7 ) ℓ − k ⌉ ≥ ( 2 ℓ / 15 ) j j ! . \prod_{k=0}^{j-1}\frac{\left\lfloor(13/15)\ell-k\right\rfloor}{\left\lceil(9/7)\ell-k\right\rceil}\ge\frac{(2\ell/15)^{j}}{j!}. k = 0 ∏ j − 1 ⌈ ( 9/7 ) ℓ − k ⌉ ⌊ ( 13/15 ) ℓ − k ⌋ ≥ j ! ( 2 ℓ /15 ) j .
Let N = ⌊ 13 ℓ / 15 ⌋ N=\lfloor13\ell/15\rfloor N = ⌊ 13 ℓ /15 ⌋ and D = ⌈ 9 ℓ / 7 ⌉ D=\lceil9\ell/7\rceil D = ⌈ 9 ℓ /7 ⌉ . Since k k k is an integer, we have that ⌊ ( 13 / 15 ) ℓ − k ⌋ = N − k \lfloor(13/15)\ell-k\rfloor=N-k ⌊( 13/15 ) ℓ − k ⌋ = N − k and ⌈ ( 9 / 7 ) ℓ − k ⌉ = D − k \lceil(9/7)\ell-k\rceil=D-k ⌈( 9/7 ) ℓ − k ⌉ = D − k , and the left-hand side is the falling-factorial ratio
∏ k = 0 j − 1 N − k D − k . \prod_{k=0}^{j-1}\frac{N-k}{D-k}. k = 0 ∏ j − 1 D − k N − k .
The inequality can be computationally verified for 4 ≤ ℓ ≤ 141 4\le\ell\le141 4 ≤ ℓ ≤ 141 , with the minimum ratio of the left-hand side to the right-hand side in this range occurring for ℓ = 8 \ell=8 ℓ = 8 and j = 6 j=6 j = 6 , where it equals approximately 1.058 1.058 1.058 .
It remains to show the inequality for ℓ ≥ 142 \ell\ge142 ℓ ≥ 142 , which implies j ≥ 107 j\ge107 j ≥ 107 . Since j = ⌈ 3 ℓ / 4 ⌉ j=\lceil3\ell/4\rceil j = ⌈ 3 ℓ /4 ⌉ , we have
4 ( j − 1 ) 3 < ℓ ≤ 4 j 3 . \frac{4(j-1)}{3}<\ell\le\frac{4j}{3}. 3 4 ( j − 1 ) < ℓ ≤ 3 4 j .
The left-hand side is at least
∏ k = 0 j − 1 N − k D − k ≥ ∏ k = 0 j − 1 13 ℓ 15 − 1 − k 9 ℓ 7 + 1 − k ≥ ∏ k = 0 j − 1 52 ( j − 1 ) 45 − 1 − k 36 j 21 + 1 − k ≥ ∏ k = 0 j − 1 52 j − 97 45 − k 12 j + 7 7 − k = ∏ k = 0 j − 1 A − k C − k , \prod_{k=0}^{j-1}\frac{N-k}{D-k}\ge\prod_{k=0}^{j-1}\frac{\frac{13\ell}{15}-1-k}{\frac{9\ell}{7}+1-k}\ge\prod_{k=0}^{j-1}\frac{\frac{52(j-1)}{45}-1-k}{\frac{36j}{21}+1-k}\ge\prod_{k=0}^{j-1}\frac{\frac{52j-97}{45}-k}{\frac{12j+7}{7}-k}=\prod_{k=0}^{j-1}\frac{A-k}{C-k}, k = 0 ∏ j − 1 D − k N − k ≥ k = 0 ∏ j − 1 7 9 ℓ + 1 − k 15 13 ℓ − 1 − k ≥ k = 0 ∏ j − 1 21 36 j + 1 − k 45 52 ( j − 1 ) − 1 − k ≥ k = 0 ∏ j − 1 7 12 j + 7 − k 45 52 j − 97 − k = k = 0 ∏ j − 1 C − k A − k ,
where A = ( 52 j − 97 ) / 45 A=(52j-97)/45 A = ( 52 j − 97 ) /45 and C = ( 12 j + 7 ) / 7 C=(12j+7)/7 C = ( 12 j + 7 ) /7 . Also, the right-hand side is at most
( 2 ℓ / 15 ) j j ! ≤ ( 8 j / 45 ) j j ! . \frac{(2\ell/15)^{j}}{j!}\le\frac{(8j/45)^{j}}{j!}. j ! ( 2 ℓ /15 ) j ≤ j ! ( 8 j /45 ) j .
Thus, it suffices to show that
∏ k = 0 j − 1 A − k C − k ≥ ( 8 j / 45 ) j j ! ⟺ log ∏ k = 0 j − 1 A − k C − k ≥ log ( 8 j / 45 ) j j ! . (24) \prod_{k=0}^{j-1}\frac{A-k}{C-k}\ge\frac{(8j/45)^{j}}{j!}\Longleftrightarrow\log\prod_{k=0}^{j-1}\frac{A-k}{C-k}\ge\log\frac{(8j/45)^{j}}{j!}. \tag*{(24)} k = 0 ∏ j − 1 C − k A − k ≥ j ! ( 8 j /45 ) j ⟺ log k = 0 ∏ j − 1 C − k A − k ≥ log j ! ( 8 j /45 ) j . (24)
Note that all factors of the product are positive, since A − j = ( 7 j − 97 ) / 45 > 0 A-j=(7j-97)/45>0 A − j = ( 7 j − 97 ) /45 > 0 and C − j = ( 5 j + 7 ) / 7 > 0 C-j=(5j+7)/7>0 C − j = ( 5 j + 7 ) /7 > 0 , and that each factor is decreasing in [ 0 , j ] [0,j] [ 0 , j ] . Thus, for all x ∈ [ k , k + 1 ] x\in[k,k+1] x ∈ [ k , k + 1 ] and k ∈ [ j − 1 ] k\in[j-1] k ∈ [ j − 1 ] ,
log A − x C − x ≤ log A − k C − k . \log\frac{A-x}{C-x}\le\log\frac{A-k}{C-k}. log C − x A − x ≤ log C − k A − k .
Integrating both sides from k k k to k + 1 k+1 k + 1 and then summing over all k ∈ [ j − 1 ] k\in[j-1] k ∈ [ j − 1 ] yields
F ( j ) : = log ∏ k = 0 j − 1 A ( j ) − k C ( j ) − k ≥ ∫ 0 j log A − x C − x d x . F(j):=\log\prod_{k=0}^{j-1}\frac{A(j)-k}{C(j)-k}\ge\int_{0}^{j}\log\frac{A-x}{C-x}\,dx. F ( j ) := log k = 0 ∏ j − 1 C ( j ) − k A ( j ) − k ≥ ∫ 0 j log C − x A − x d x .
The right-hand side integral can be evaluated as
I ( j ) : = ∫ 0 j log A − x C − x d x = A log A − ( A − j ) log ( A − j ) − C log C + ( C − j ) log ( C − j ) . I(j):=\int_{0}^{j}\log\frac{A-x}{C-x}\,dx=A\log A-(A-j)\log(A-j)-C\log C+(C-j)\log(C-j). I ( j ) := ∫ 0 j log C − x A − x d x = A log A − ( A − j ) log ( A − j ) − C log C + ( C − j ) log ( C − j ) .
By Stirling’s lower bound for the factorial function, we have that j ! ≥ 2 π j ( j / e ) j j! \ge\sqrt{2\pi j}(j/e)^j j ! ≥ 2 π j ( j / e ) j , or equivalently log ( j ! ) ≥ ( 1 / 2 ) log ( 2 π j ) + j ( log j − 1 ) \log(j!) \ge(1/2)\log(2\pi j) + j(\log j - 1) log ( j !) ≥ ( 1/2 ) log ( 2 π j ) + j ( log j − 1 ) . Thus, the right-hand side of (A.1) is at most
log ( 8 j / 45 ) j j ! ≤ j ( 1 + log 8 45 ) − 1 2 log ( 2 π j ) . \log\frac{(8j/45)^j}{j!} \le j\left(1+\log\frac{8}{45}\right)-\frac{1}{2}\log(2\pi j). log j ! ( 8 j /45 ) j ≤ j ( 1 + log 45 8 ) − 2 1 log ( 2 π j ) .
It remains to show that, for all j ≥ 107 j \ge107 j ≥ 107 ,
H ( j ) : = I ( j ) − j ( 1 + log 8 45 ) + 1 2 log ( 2 π j ) > 0. H(j):=I(j)-j\left(1+\log\frac{8}{45}\right)+\frac{1}{2}\log(2\pi j)>0. H ( j ) := I ( j ) − j ( 1 + log 45 8 ) + 2 1 log ( 2 π j ) > 0.
The second derivative of H H H is
H ′ ′ ( j ) = − 21840 j 4 + 793344 j 3 + 2701535 j 2 + 839244 j + 461041 2 j 2 ( 5 j + 7 ) ( 7 j − 97 ) ( 12 j + 7 ) ( 52 j − 97 ) , H''(j)=-\frac{21840j^4+793344j^3+2701535j^2+839244j+461041}{2j^2(5j+7)(7j-97)(12j+7)(52j-97)}, H ′′ ( j ) = − 2 j 2 ( 5 j + 7 ) ( 7 j − 97 ) ( 12 j + 7 ) ( 52 j − 97 ) 21840 j 4 + 793344 j 3 + 2701535 j 2 + 839244 j + 461041 ,
which is negative for j ≥ 107 j \ge107 j ≥ 107 . Also,
lim j → ∞ H ′ ( j ) = log ( 13 52 / 45 2 278 / 315 3 2 / 7 5 5 / 7 7 38 / 45 288 ) − 1 ≈ 0.0194 > 0. \lim_{j\to\infty}H'(j)=\log\left(13^{52/45}2^{278/315}3^{2/7}5^{5/7}7^{38/45}288\right)-1\approx0.0194>0. j → ∞ lim H ′ ( j ) = log ( 1 3 52/45 2 278/315 3 2/7 5 5/7 7 38/45 288 ) − 1 ≈ 0.0194 > 0.
Notice that, since H ′ ′ ( j ) < 0 H''(j)<0 H ′′ ( j ) < 0 and the limiting value of H ′ H' H ′ is positive, H ′ ( j ) > 0 H'(j)>0 H ′ ( j ) > 0 for all j ≥ 107 j\ge107 j ≥ 107 . Finally, we have that H ( 107 ) > 0.010 H(107)>0.010 H ( 107 ) > 0.010 , which implies that H ( j ) > 0 H(j)>0 H ( j ) > 0 for every j ≥ 107 j\ge107 j ≥ 107 , and the claim follows.
Efficient Sampling
The objective of this Appendix is to provide a proof of Lemma 4.9.
A coupling of two probability distributions μ \mu μ and ν \nu ν is a pair of random variables ( X , Y ) (X,Y) ( X , Y ) defined on a single probability space such that the marginal distribution of X X X is μ \mu μ and the marginal distribution of Y Y Y is ν \nu ν . The following identity relates couplings of μ \mu μ and ν \nu ν to their total variation distance d T V ( μ , ν ) d_{\mathrm{TV}}(\mu,\nu) d TV ( μ , ν ) .
Lemma B.1 (Proposition 4.7+Remark 4.8 in [41 ] ). Let μ \mu μ and ν \nu ν be probability distributions on a finite set Ω \Omega Ω . Then
d T V ( μ , ν ) = inf { P [ X ≠ Y ] : ( X , Y ) is a coupling of μ and ν } , d_{\mathrm{TV}}(\mu,\nu)=\inf\{\mathbb{P}[X\ne Y]:(X,Y)\text{ is a coupling of }\mu\text{ and }\nu\}, d TV ( μ , ν ) = inf { P [ X = Y ] : ( X , Y ) is a coupling of μ and ν } , and there is a coupling for which equality holds.
The previous lemma gives the following estimate for products of distributions, which we will use to analyze the total variation distance of multiple samples.
Lemma B.2. Let μ i \mu_i μ i and ν i \nu_i ν i be probability distributions on finite sets Ω i \Omega_i Ω i for i ∈ [ L ] i\in[L] i ∈ [ L ] . Then
d T V ( ⨂ i = 1 L μ i , ⨂ i = 1 L ν i ) ≤ ∑ i = 1 L d T V ( μ i , ν i ) . d_{\mathrm{TV}}\left(\bigotimes_{i=1}^{L}\mu_i,\bigotimes_{i=1}^{L}\nu_i\right)\le\sum_{i=1}^{L}d_{\mathrm{TV}}(\mu_i,\nu_i). d TV ( i = 1 ⨂ L μ i , i = 1 ⨂ L ν i ) ≤ i = 1 ∑ L d TV ( μ i , ν i ) . Proof. The proof is a standard consequence of Lemma B.1, we include it for completeness. By Lemma B.1, for each i ∈ [ L ] i\in[L] i ∈ [ L ] there is a coupling ( Y i , Z i ) (Y_i,Z_i) ( Y i , Z i ) of μ i \mu_i μ i and ν i \nu_i ν i such that P [ Y i ≠ Z i ] = d T V ( μ i , ν i ) \mathbb{P}[Y_i\ne Z_i]=d_{\mathrm{TV}}(\mu_i,\nu_i) P [ Y i = Z i ] = d TV ( μ i , ν i ) . Take these couplings independently over all i ∈ [ L ] i\in[L] i ∈ [ L ] . Then ( Y 1 , … , Y L ) (Y_1,\ldots,Y_L) ( Y 1 , … , Y L ) has distribution ⨂ i = 1 L μ i \bigotimes_{i=1}^{L}\mu_i ⨂ i = 1 L μ i , while ( Z 1 , … , Z L ) (Z_1,\ldots,Z_L) ( Z 1 , … , Z L ) has distribution ⨂ i = 1 L ν i \bigotimes_{i=1}^{L}\nu_i ⨂ i = 1 L ν i . Applying Lemma B.1 once more and then a union bound gives
d T V ( ⨂ i = 1 L μ i , ⨂ i = 1 L ν i ) ≤ P [ ( Y 1 , … , Y L ) ≠ ( Z 1 , … , Z L ) ] ≤ ∑ i = 1 L P [ Y i ≠ Z i ] ≤ ∑ i = 1 L d T V ( μ i , ν i ) . d_{\mathrm{TV}}\left(\bigotimes_{i=1}^{L}\mu_i,\bigotimes_{i=1}^{L}\nu_i\right)\le\mathbb{P}[(Y_1,\ldots,Y_L)\ne(Z_1,\ldots,Z_L)]\le\sum_{i=1}^{L}\mathbb{P}[Y_i\ne Z_i]\le\sum_{i=1}^{L}d_{\mathrm{TV}}(\mu_i,\nu_i). d TV ( i = 1 ⨂ L μ i , i = 1 ⨂ L ν i ) ≤ P [( Y 1 , … , Y L ) = ( Z 1 , … , Z L )] ≤ i = 1 ∑ L P [ Y i = Z i ] ≤ i = 1 ∑ L d TV ( μ i , ν i ) .
We have the following consequence for sampling multiple bases with and without replacement.
Lemma 4.9. Let L ≥ 1 L \ge1 L ≥ 1 , δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and let M M M be a matroid.
There is a randomized algorithm that outputs an ordered L L L -tuple of bases whose joint distribution is within total variation distance δ \delta δ of L L L independent uniformly random bases of M M M . The algorithm runs in time L ⋅ poly ( n , log ( L / δ ) ) L \cdot\operatorname{poly}(n,\log(L/\delta)) L ⋅ poly ( n , log ( L / δ )) .
If M M M has at least L L L bases, then there is a randomized algorithm that outputs an ordered L L L -tuple of distinct bases whose joint distribution is within total variation distance δ \delta δ of the uniform distribution over ordered L L L -tuples of distinct bases of M M M . The algorithm runs in time poly ( n , L , log ( 1 / δ ) ) \operatorname{poly}(n,L,\log(1/\delta)) poly ( n , L , log ( 1/ δ )) .
Proof. Let B = B ( M ) \mathcal{B}=\mathcal{B}(M) B = B ( M ) and let ν \nu ν denote the uniform distribution on B \mathcal{B} B .
We first prove the first assertion. For each i ∈ [ L ] i \in[L] i ∈ [ L ] , invoke the sampler of Lemma 4.8 with accuracy δ / L \delta/L δ / L , independently of all other invocations. Let ν i \nu_i ν i be the distribution of the i i i th output. Then d T V ( ν i , ν ) ≤ δ / L d_{\mathrm{TV}}(\nu_i,\nu) \le\delta/L d TV ( ν i , ν ) ≤ δ / L for every i i i . By Lemma B.2 ,
d T V ( ⨂ i = 1 L ν i , ν ⊗ L ) ≤ ∑ i = 1 L d T V ( ν i , ν ) ≤ δ . d_{\mathrm{TV}}\left(\bigotimes_{i=1}^{L}\nu_i,\nu^{\otimes L}\right)\le\sum_{i=1}^{L}d_{\mathrm{TV}}(\nu_i,\nu)\le\delta. d TV ( i = 1 ⨂ L ν i , ν ⊗ L ) ≤ i = 1 ∑ L d TV ( ν i , ν ) ≤ δ .
Thus the ordered L L L -tuple produced by these independent calls is within total variation distance δ \delta δ of L L L independent uniformly random bases. The time needed is L ⋅ poly ( n , log ( L / δ ) ) L \cdot\operatorname{poly}(n,\log(L/\delta)) L ⋅ poly ( n , log ( L / δ )) .
We now prove the second assertion. We will use the first assertion as a black box with a larger number of samples.
First we note that, since M M M has at least L L L bases, we can deterministically find L L L distinct bases using poly ( n , L ) \operatorname{poly}(n,L) poly ( n , L ) independence-oracle calls. Indeed, find one base greedily. Then perform a breadth-first search in the basis-exchange graph: from a discovered base B B B , test all sets of the form B − e + f B-e+f B − e + f , where e ∈ B e \in B e ∈ B and f ∈ E ∖ B f \in E \setminus B f ∈ E ∖ B , and add those that are bases. Thus, we can find L L L distinct bases in poly ( n , L ) \operatorname{poly}(n,L) poly ( n , L ) .
Set T = ⌈ 2 L log ( 4 L / δ ) ⌉ T=\lceil2L\log(4L/\delta)\rceil T = ⌈ 2 L log ( 4 L / δ )⌉ . Consider first the ideal experiment in which X 1 , … , X T X_1,\ldots,X_T X 1 , … , X T are sampled independently from ν \nu ν . If the sequence contains at least L L L distinct bases, output the first L L L distinct bases in their order of first appearance. If not, output the fixed ordered L L L -tuple of distinct bases found by the deterministic subroutine above.
Let E \mathcal{E} E be the event that X 1 , … , X T X_1,\ldots,X_T X 1 , … , X T contain at least L L L distinct bases. Conditioned on E \mathcal{E} E , the ordered tuple of first appearances is uniformly distributed over all ordered L L L -tuples of distinct bases. This follows by symmetry: the distribution of the sequence ( X 1 , … , X T ) (X_1,\ldots,X_T) ( X 1 , … , X T ) and the event E \mathcal{E} E are invariant under every permutation of the set B \mathcal{B} B .
It remains to bound P [ E c ] \mathbb{P}[\mathcal{E}^{c}] P [ E c ] . Write N = ∣ B ∣ N=|\mathcal{B}| N = ∣ B ∣ , so N ≥ L N \ge L N ≥ L . After s < L s<L s < L distinct bases have appeared, the probability that the next sample is new is
1 − s N ≥ 1 − s L . 1-\frac{s}{N}\ge1-\frac{s}{L}. 1 − N s ≥ 1 − L s .
Therefore,
P [ E c ] ≤ L ( 1 − 1 L ) T ≤ L e − T / L ≤ δ 2 . \mathbb{P}[\mathcal{E}^{c}]\le L\left(1-\frac{1}{L}\right)^T\le Le^{-T/L}\le\frac{\delta}{2}. P [ E c ] ≤ L ( 1 − L 1 ) T ≤ L e − T / L ≤ 2 δ .
Let μ ≠ \mu_{\ne} μ = denote the uniform distribution over ordered L L L -tuples of distinct bases. The ideal experiment therefore outputs a distribution within total variation distance at most δ / 2 \delta/2 δ /2 of μ ≠ \mu_{\ne} μ = .
We now implement the ideal experiment approximately. By the first assertion, applied with T T T in place of L L L and accuracy δ / 2 \delta/2 δ /2 , we can generate an ordered T T T -tuple of bases whose joint distribution is within total variation distance δ / 2 \delta/2 δ /2 of ν ⊗ T \nu^{\otimes T} ν ⊗ T using T ⋅ poly ( n , log ( T / δ ) ) ≤ poly ( n , L , log ( 1 / δ ) ) T\cdot\operatorname{poly}(n,\log(T/\delta))\le\operatorname{poly}(n,L,\log(1/\delta)) T ⋅ poly ( n , log ( T / δ )) ≤ poly ( n , L , log ( 1/ δ )) time. Apply to this T T T -tuple the same deterministic post-processing rule: output the first L L L distinct bases if they exist, and otherwise output the fixed fallback tuple. Note that this changes the output distribution by at most another δ / 2 \delta/2 δ /2 . Thus, the implemented distribution is within total variation distance at most δ \delta δ of μ ≠ \mu_{\ne} μ = .
The fallback to L L L fixed bases uses only poly ( n , L ) \operatorname{poly}(n,L) poly ( n , L ) additional time, so the total time is poly ( n , L , log ( 1 / δ ) ) \operatorname{poly}(n,L,\log(1/\delta)) poly ( n , L , log ( 1/ δ )) .
Acknowledgments
This work was supported by the following grants:
Mayank Goswami and GiBeom Park: Supported by NSF grant CCF-2503086
Vasilis Livanos: Supported in part by the Air Force Office of Scientific Research under award number FA9550-24-1-0261.
Arturo Merino: Supported by ANID FONDECYT Iniciación No. 11251528.
Adarsh Srinivasan: Supported by NSF CCF award 2313372 and NSF CAREER award 2443697.