Characterization of bichromatic maximum-sum matchings of points and matching equilibrium


Abstract

We study maximum-sum red-blue matchings and matching equilibrium for finite planar point sets. For a red-blue perfect matching \(M = \{(a_i,b_i) : 1 \le i \le n\}\), we define the gain of a directed red cycle as the change in total weight produced by cyclically shifting the corresponding blue partners. We prove that \(M\) is maximum-sum if and only if every directed red cycle has nonpositive gain, and we derive a geometric sufficient condition for optimality from cyclic intersections of distance-difference regions. We then characterize balanced matchings, in which all red-blue perfect matchings have the same total weight. Equilibrium is shown to be equivalent to vanishing cycle gains, to an additive form of the distance matrix, and to a common level-set condition for distance-difference functions. In the squared Euclidean case this yields an orthogonality classification, while in the Euclidean case it yields a hyperbolic level-set description and a collinear-separation classification in the nondegenerate setting.

1 Introduction↩︎

Let \(R\) and \(B\) be two point sets in the Euclidean plane with \(|R| = |B|\). The points in \(R\) are called red points, and those in \(B\) are called blue points. A matching \(\mathcal{M}\) of \(R \cup B\) is a partition of \(R \cup B\) into \(n\) pairs such that each pair consists of a red point and a blue point. A point \(p \in R\) and a point \(q \in B\) are matched by \(M\) if and only if the (unordered) pair \((p,q)\) is in the matching \(M\).

Given a metric or a semi-metric function \(d : \mathbb{R}^2 \times \mathbb{R}^2 \rightarrow \mathbb{R}_{\ge 0}\), we say that a matching \(\mathcal{M}\) is max-sum if it maximizes \(\sum_{(p,q)\in\mathcal{M}} d(p,q)\) among all matchings of \(R\) and \(B\). Recall that a function is a semi-metric if it satisfies all the properties of a metric function except for the triangle inequality.

Chacón-Rivera and Pérez-Lantero [1] characterized a maximum-sum matching in terms of \(H\)-sets and \(h\)-sets defined as \[\begin{align} H(p,q) = & \{ x \in \mathbb{R}^2 : d(p,q') - d(q,q') \le d(p,x) - d(q,x) \}, \end{align}\] and \[\begin{align} h(p,q) = & \{ x \in \mathbb{R}^2 : d(p,x) - d(q,x) \le d(p,p') - d(q,p') \}, \end{align}\] where \(p,q\) are red points, and \(p',q'\) are blue points, and \(\{ (p,p'),(q,q') \}\) is a maximum-sum matching of those four points, that is, \(M\) is a 2-local max-sum matching as defined by Biniaz et al. [2]. This characterization proved useful in simplifying the proof of the common intersection property of disks established by Huemer et al. [3].

In this article, we consider max-sum matchings between planar colored point sets \(R\) and \(B\) with \(|R| = |B| = n\). In what follows, we generalize the characterization proposed by Chacón-Rivera and Pérez-Lantero [1] to matchings of \(n\) red points and \(n\) blue points, and then use this characterization to study equilibrium phenomena in red-blue matchings.

1.1 Related work and motivation↩︎

Geometric matching problems often combine an optimization condition with intersection properties of the objects induced by the selected edges. In the setting of planar point sets, a matched pair naturally induces the disk having the segment joining the two matched points as diameter. Huemer et al. [3] proved that if \(R\) and \(B\) are finite point sets in the plane with \(|R| = |B|\), and \(M\) is a red-blue perfect matching maximizing the total squared Euclidean length of its edges, then all diametral disks induced by the edges of \(M\) have a nonempty common intersection. This result showed that a global optimality condition on a matching may force a strong geometric piercing property.

The analogous question for the ordinary Euclidean distance is more subtle. Bereg et al. [4] showed that, in the bichromatic Euclidean setting, the disks induced by a maximum-sum matching need not have a common point, although they satisfy weaker intersection properties. In contrast, they proved that for a set of \(2n\) uncolored points in the plane, every Euclidean maximum-sum matching induces diametral disks with a nonempty common intersection. More recently, Pérez-Lantero and Seara [5] obtained a bichromatic analogue in terms of ellipses: if \(M = \{(r_i,b_i) : 1 \le i \le n\}\) is a Euclidean maximum-sum red-blue matching, then there exists a point \(o\) such that \[\|r_i-o\| + \|b_i-o\| \le \sqrt{2} \cdot \|r_i-b_i\|\] for every \(i\).

These intersection results fit naturally into the language of Tverberg graphs. Given a finite point set \(P\) and a geometric graph \(G\) with vertex set \(P\), one says that \(G\) is a Tverberg graph if the diametral disks, or balls in higher dimension, induced by the edges of \(G\) have a common point. Soberón and Tang [6] studied this point of view for Hamiltonian structures in the plane, proving that every odd planar point set admits a Hamiltonian cycle which is a Tverberg graph, and that every even planar point set admits a Hamiltonian path with the same property. Pirahmad, Polyanskii, and Vasilevskii [7] refined and extended this framework, obtaining Tverberg Hamiltonian cycles in the plane, Tverberg matchings in higher-dimensional Euclidean spaces, and red-blue variants for diametral balls.

A parallel line of work concerns spanning trees. Abu-Affash, Carmi, and Maman [8] proved that if \(T\) is a maximum-weight spanning tree of a finite planar point set, then the diametral disks induced by the edges of \(T\) have a common point; more precisely, the center of the smallest enclosing circle of the point set belongs to all these disks. Barabanshchikova and Polyanskii [9] later generalized this phenomenon, proving that max-sum trees in Euclidean spaces are Tverberg graphs and strengthening related intersection results for matchings. Thus, maximum-sum matchings and maximum-weight spanning trees belong to a broader family of extremal geometric graphs whose edges induce commonly pierced disks or balls.

Another important motivation comes from a conjecture of Fingerhut, mentioned by Eppstein [10] and motivated by network-design problems of Fingerhut, Suri, and Turner [11]. The conjecture asked whether, for every Euclidean maximum-sum matching \(\{(a_i,b_i) : 1 \le i \le n\}\) of \(2n\) planar points, there exists a point \(o\) such that \[\|a_i-o\| + \|b_i-o\| \le \frac{2}{\sqrt3}\|a_i-b_i\|\] for every \(i\). Equivalently, the ellipses with foci \((a_i,b_i)\) and major axis length \((2/\sqrt3)|a_i-b_i|\) should have a common point. Barabanshchikova and Polyanskii [12] confirmed this conjecture by proving the corresponding common-intersection theorem for ellipses induced by a maximum-sum matching. This connects maximum-sum matchings not only with diametral disks, but also with families of ellipses and more general convex sets induced by matching edges.

Maximum-length matchings also appear in classical geometric optimization. For example, Fekete and Meijer [13] studied relations between maximum matchings, minimum stars, and Steiner stars. More recently, local optimality conditions for Euclidean maximum matchings were investigated by Biniaz, Maheshwari, and Smid [2]. They introduced \(k\)-local maximum matchings and obtained approximation bounds comparing locally maximum matchings with globally maximum matchings. This local-to-global perspective is complementary to the present article: local optimality asks how much information is needed to approximate global optimality, while our cycle-gain characterization gives an exact condition for global optimality.

The present article follows a structural route. Rather than proving a new piercing theorem for disks or ellipses, we characterize maximum-sum red-blue matchings through cycle gains and through distance-difference regions associated with ordered pairs of red points. This extends the \(n = 3\) characterization by Chacón-Rivera and Pérez-Lantero [1] to arbitrary \(n\) in a form that separates algebraic optimality from geometric certificates. We then study balanced, or equilibrium, matchings, for which every red-blue perfect matching has the same total weight. The equilibrium condition leads to additive distance matrices and to geometric level-set characterizations. In the squared Euclidean case, this becomes an orthogonality condition between the spans of the two color classes; in the Euclidean case, it yields hyperbolic level-set constraints and a collinear-separation classification in the nondegenerate case.

2 Bichromatic max-sum matchings↩︎

2.1 Characterization of bichromatic max-sum matchings of \(n\) red points and \(n\) blue points↩︎

Consider an arbitrary continuous (semi)metric \(d : \mathbb{R}^2 \times \mathbb{R}^2 \to \mathbb{R}\) satisfying the following properties:

  1. \(d(x,y) \ge 0\) for all \(x,y \in \mathbb{R}^2\).

  2. \(d(x,x) = 0\) for all \(x \in \mathbb{R}^2\).

  3. \(d(x,y) = d(y,x)\) for all \(x,y \in \mathbb{R}^2\).

  4. For any fixed points \(p,q \in \mathbb{R}^2\) with \(p \neq q\) and any real constant \(t\), the level set \(\{ z \in \mathbb{R}^2 : d(p,z) - d(q,z) = t \}\) is path-connected.

Note that the first three properties are the standard properties of any semimetric, whereas the fourth property is satisfied by semimetrics such as the Euclidean distance (a metric) and the squared Euclidean distance.

Let \(R = \{ a_1, a_2, \dots, a_n \}\) be a set of \(n\) red points, \(B = \{ b_1, b_2, \dots, b_n \}\) a set of \(n\) blue points, and suppose that \(M = \{ (a_i,b_i) : i = 1, \dots, n \}\) is a matching of \(R \cup B\). Define the sets \[H(a_i,a_j) = \{ x \in \mathbb{R}^2 : d(a_i,b_j) - d(a_j,b_j) \le d(a_i,x) - d(a_j,x) \},\] and write \(h(a_i,a_j) = H(a_j,a_i)\). If \(M\) is a 2-local max-sum, then \(H(a_i,a_j) \cap H(a_j,a_i) \neq \emptyset\) for every \(i \neq j\). Geometrically speaking, \(H(a_i,a_j)\) is the region of every possible point \(x\) in the plane for which \(\{ (a_i,x), (a_j,b_j) \}\) is a max-sum matching, while \(h(a_i,a_j)\) is the region of every possible point \(x\) in the plane for which \(\{ (a_i,b_i), (a_j,x) \}\) is a max-sum matching. See Figure 1. Observe that for the Euclidean distance, the boundaries are distance-difference level curves with foci \(a_i\) and \(a_j\) (see Figure 1 (a)); for the squared Euclidean distance, the boundaries are parallel lines, and \(S(a_i,a_j)\) is a strip (see Figure 1 (b)).

Figure 1: The regions H(a_i,a_j) and h(a_i,a_j), and their intersectionS(a_i,a_j)=H(a_i,a_j)\cap h(a_i,a_j).

Chacón-Rivera and Pérez-Lantero [1] characterized any max-sum matching of \(3\) red points and \(3\) blue points in terms of certain intersection of the \(H\)-sets and the \(h\)-sets. Precisely,

Theorem 1 ([1]). The matching \(\{ (a_i,b_i) : i \in \{1,2,3\} \}\) is a maximum-sum matching of \(R \cup B\) if and only if the five intersections \[H(a_1,a_2) \cap H(a_2,a_3) \cap H(a_3,a_1), \quad h(a_1,a_2) \cap h(a_2,a_3) \cap h(a_3,a_1)\] \[H(a_1,a_2)\cap h(a_1,a_2), \quad H(a_2,a_3)\cap h(a_2,a_3), \quad \text{and} \quad H(a_3,a_1)\cap h(a_3,a_1)\] are not empty.

When \(M\) is a max-sum matching, the previous characterization for \(n = 3\) implies a local triangular intersection of the \(H\)-sets in the general case.

Lemma 1. Let \(n \ge 3\). If \(M\) is max-sum, then for every three distinct indices \(i,j,k\), \[H(a_i,a_j) \cap H(a_j,a_k) \cap H(a_k,a_i) \neq \emptyset.\]

Proof. Fix three distinct indices \(i,j,k\), and let us restrict to the sets \(R_{ijk} = \{ a_i,a_j,a_k \}\) and \(B_{ijk} = \{ b_i,b_j,b_k \}\), and the restricted matching \[M_{ijk} = \{ (a_i,b_i),(a_j,b_j),(a_k,b_k) \}.\]

We first claim that \(M_{ijk}\) is a max-sum matching of \(R_{ijk} \cup B_{ijk}\). By contradiction, suppose it is not the case. Then there exists a permutation \(\tau\) of \(\{i,j,k\}\) such that \[d(a_i,b_{\tau(i)}) + d(a_j,b_{\tau(j)}) + d(a_k,b_{\tau(k)}) > d(a_i,b_i) + d(a_j,b_j) + d(a_k,b_k).\] Define \(\widetilde{M}\) as the matching of \(R \cup B\) by replacing \[(a_i,b_i),(a_j,b_j),(a_k,b_k) \qquad \text{with} \qquad (a_i,b_{\tau(i)}),(a_j,b_{\tau(j)}),(a_k,b_{\tau(k)})\] and leaving every other pair of \(M\) unchanged. Then \[\sum_{(a,b) \in \widetilde{M}} d(a,b) > \sum_{(a,b) \in M} d(a,b),\] contradicting that \(M\) is max-sum. Therefore, \(M_{ijk}\) is max-sum on \(R_{ijk} \cup B_{ijk}\).

By Theorem 1, applied to the ordered triple \((a_i,a_j,a_k)\), we obtain \[H(a_i,a_j) \cap H(a_j,a_k) \cap H(a_k,a_i) \neq \emptyset,\] proving the claim. ◻

We now prove an algebraic characterization for the general case \(n \ge 4\). For every subset \(\{ a_{i_1}, a_{i_2}, \dots, a_{i_m} \}\) of \(R\), define \(C = (a_{i_1}, a_{i_2} \dots, a_{i_m})\) as the directed (red) cycle of the red vertices \((a_{i_1}, a_{i_2}, \dots, a_{i_m})\), where \(i_1, \dots, i_m\) are distinct and \(m \ge 2\). Also, define its cycle gain \[\operatorname{gain}(C) = \sum_{j=1}^m d(a_{i_j},b_{i_{j+1}}) - d(a_{i_j},b_{i_j})\] where \(i_{m+1} = i_1\). Thus, \(\operatorname{gain}(C)\) measures the change in total weight obtained by replacing the matched pairs \((a_{i_1},b_{i_1}), \dots, (a_{i_m},b_{i_m})\) with the cyclically shifted pairs \((a_{i_1}, b_{i_2}), \dots, (a_{i_m},b_{i_1})\). See Figure 2.

Figure 2: A directed red cycle C=(a_1,a_2,a_3,a_4). The gain of C is the change in total weightobtained by replacing the solid matching edges (a_i,b_i) with the dashed cyclically shifted edges(a_i,b_{i+1}), where b_5=b_1.

Theorem 2. The matching \(M = \{ (a_i,b_i) \}_{i=1}^n\) is a max-sum matching of \(R \cup B\) if and only if \(\operatorname{gain}(C) \le 0\) for every directed red cycle \(C = (a_{i_1}, \dots, a_{i_m})\) (with \(2 \le m \le n)\).

Proof. Suppose that \(M\) is max-sum. Let \(C = (a_{i_1}, a_{i_2}, \dots, a_{i_m})\) be a directed red cycle. Consider the matching \(M_C\) obtained from \(M\) by fixing all pairs outside the cycle and replacing the pairs \((a_{i_1}, b_{i_1}), \dots, (a_{i_m}, b_{i_m})\) with \((a_{i_1},b_{i_2}), \dots, (a_{i_{m-1}},b_{i_m}), (a_{i_m}, b_{i_1})\). Define \[\operatorname{cost}(M) = \sum_{(a,b) \in M} d(a,b).\] Since \(M\) is max-sum, we obtain \[\operatorname{cost}(M_C) \le \operatorname{cost}(M) ~ \Longleftrightarrow ~ \sum_{j=1}^m d(a_{i_j},b_{i_{j+1}}) \le \sum_{j=1}^m d(a_{i_j},b_{i_j}) ~ \Longleftrightarrow ~ \operatorname{gain}(C) \le 0,\] proving the necessity.

Conversely, suppose that \(\operatorname{gain}(C) \le 0\) for every directed red cycle \(C\). Let \(M^*\) be any other red-blue perfect matching. Then there is a permutation \(\sigma\) of \(\{1, \dots, n\}\) such that \[M^* = \{ (a_i, b_{\sigma(i)}) : 1 \le i \le n \}.\] Decompose \(\sigma\) into disjoint cycles. If \((i_1,i_2,\dots,i_m)\) is one nontrivial cycle of \(\sigma\), then its contribution to \[\sum_{i=1}^n [d(a_i,b_{\sigma(i)}) - d(a_i,b_i)]\] is exactly \[\sum_{j=1}^m [d(a_{i_j},b_{i_{j+1}}) - d(a_{i_j},b_{i_j})] = \operatorname{gain}(a_{i_1}, a_{i_2}, \dots, a_{i_m}),\] where \(i_{m+1} = i_1\). Fixed points of \(\sigma\) contribute \(0\). Therefore, by decomposing \(\sigma\) into disjoint cycles and using our assumption, we have \[\sum_{i=1}^n [d(a_i,b_{\sigma(i)}) - d(a_i,b_i)] = \sum_{i=1}^n d(a_i,b_{\sigma(i)}) - \sum_{i=1}^n d(a_i,b_i) \le 0\] from which \[\sum_{i=1}^n d(a_i,b_{\sigma(i)}) \le \sum_{i=1}^n d(a_i,b_i).\] Since \(M^*\) was arbitrary, we conclude that \(M\) is max-sum. ◻

Note that Theorem 2 does not need \(d\) to be continuous, the properties P1-P4, or even to be a semimetric.

Geometrically, having a non-empty cyclic intersection of \(H\)-sets is a sufficient condition for a matching to be max-sum, as we now show.

Lemma 2. Let \(M = \{ (a_i,b_i) \}_{i=1}^n\) be a matching of \(R \cup B\). If \[\bigcap_{j=1}^m H(a_{i_j},a_{i_{j+1}}) \neq \emptyset\] for every directed red cycle \(C = (a_{i_1}, \dots, a_{i_m})\) (with \(2 \le m \le n)\), then \(M\) is a max-sum matching. See Figure 3.

Figure 3: A cyclic intersection certificate for a directed triangle C=(a_1,a_2,a_3).

Proof. By Theorem 2, it is enough to prove that \(\operatorname{gain}(C) \le 0\) for every directed red cycle \(C\). Fix \(C = (a_{i_1}, a_{i_2}, \dots, a_{i_m})\). Choose \[x \in \bigcap_{j=1}^m H(a_{i_j},a_{i_{j+1}}).\] Then for every \(j = 1, \dots, m\), \[x \in H(a_{i_j}, a_{i_{j+1}}) ~ \Longrightarrow ~ d(a_{i_j},b_{i_{j+1}}) - d(a_{i_{j+1}},b_{i_{j+1}}) \le d(a_{i_j},x) - d(a_{i_{j+1}},x).\] Adding these \(m\) inequalities yields \[\sum_{j=1}^m [d(a_{i_j},b_{i_{j+1}}) - d(a_{i_{j+1}},b_{i_{j+1}})] \le \sum_{j=1}^m [d(a_{i_j},x) - d(a_{i_{j+1}},x)] = 0.\] Noting that \(i_{m+1} = i_1\) and relabeling, we obtain \[\sum_{j=1}^m [d(a_{i_j},b_{i_{j+1}}) - d(a_{i_j},b_{i_j})] \le 0.\] That is, \(\operatorname{gain}(C) \le 0\). Since \(C\) was arbitrary, \(\operatorname{gain}(C) \le 0\) for every directed red cycle \(C\). Therefore, by Theorem 2, \(M\) is max-sum. ◻

2.2 Bichromatic matching equilibrium↩︎

We say that a matching \(M = \{ (a_i,b_i) : a_i \in R, b_i \in B, 1 \le i \le n \}\) is balanced or in equilibrium if the total sum of the lengths defined by the segments \(a_i b_i\) is invariant under any permutation of points of the same color. Rigorously, given a weight function \(d : R \times B \to \mathbb{R}\) in the plane, we say \(M\) is balanced if \[\sum_{i = 1}^n d(a_i,b_i) = \sum_{i = 1}^n d(a_i,b_{\sigma(i)})\] for each of the \(n!\) permutations \(\sigma : \{ 1, 2, \dots, n \} \to \{ 1, 2, \dots, n \}\).

First, we characterize the property of equilibrium in a given matching using cycle-gains.

Theorem 3. The matching \(M = \{ (a_i,b_i) : 1 \le i \le n \}\) is balanced if and only if \(\operatorname{gain}(C) = 0\) for every directed red cycle \(C = (a_{i_1},a_{i_2},\dots,a_{i_m})\) with \(2 \le m \le n\).

Proof. Suppose first that \(M\) is balanced. Let \(C = (a_{i_1},a_{i_2},\dots,a_{i_m})\) be a directed red cycle. Let \(M_C\) be the matching obtained from \(M\) by keeping all pairs outside \(C\) fixed and replacing \[(a_{i_1},b_{i_1}), \dots, (a_{i_m},b_{i_m}) \quad \text{with} \quad (a_{i_1},b_{i_2}), \dots, (a_{i_{m-1}},b_{i_m}), (a_{i_m},b_{i_1}).\] Since \(M\) is balanced, \(M\) and \(M_C\) have the same total weight. Cancellation of the pairs outside \(C\) yields \[\sum_{j=1}^m d(a_{i_j},b_{i_{j+1}}) = \sum_{j=1}^m d(a_{i_j},b_{i_{j}}).\] Therefore, \(\operatorname{gain}(C) = 0\).

Conversely, suppose that \(\operatorname{gain}(C) = 0\) for every directed red cycle \(C\). Let \(M^*\) be any red-blue perfect matching. Then there exists a permutation \(\sigma\) of \(\{1, \dots, n\}\) such that \(M^* = \{ (a_i,b_{\sigma(i)}) : 1 \le i \le n \}\). Decompose \(\sigma\) into disjoint cycles. Each nontrivial cycle contributes exactly the gain of the corresponding directed red cycle, and fixed points contribute 0. Since every cycle gain is 0, we obtain \[\sum_{i=1}^n [d(a_i,b_{\sigma(i)}) - d(a_i,b_i)] = 0.\] Hence \[\sum_{i=1}^n d(a_i,b_{\sigma(i)}) = \sum_{i=1}^n d(a_i,b_i).\] Since \(M^*\) was arbitrary, every red-blue perfect matching has the same total weight. Thus \(M\) is balanced. ◻

Now, we characterize the equilibrium property in terms of the distance matrix of the matching.

Theorem 4. Let \(D = (D_{ij})\) be the \(n \times n\) distance matrix defined by \(D_{ij} = d(a_i,b_j)\). The following are equivalent:

  1. \(M\) is balanced.

  2. For every \(i,k \in \{1, \dots, n\}\) and every \(j,\ell \in \{1,\dots,n\}\), \[D_{ij} + D_{k\ell} = D_{i\ell} + D_{kj}.\]

  3. There exist real numbers \(\alpha_1, \dots, \alpha_n\) and \(\beta_1, \dots, \beta_n\) such that \(D_{ij} = \alpha_i + \beta_j\) for every \(i,j\). Equivalently, \[d(a_i,b_j) = \alpha_i + \beta_j\] for every red point \(a_i\) and every blue point \(b_j\).

Proof. We prove (1) \(\Rightarrow\) (2). Assume \(M\) is balanced. Fix \(i \neq k\) and \(j \neq \ell\). Choose two permutations \(\sigma\) and \(\tau\) which agree everywhere except at \(i\) and \(k\), and such that \[\sigma(i) = j, \quad \sigma(k) = \ell,\] while \[\tau(i) = \ell, \quad \tau(k) = j.\] Since \(M\) is balanced, the matching defined by \(\sigma\) and the matching defined by \(\tau\) have the same total weight. Moreover, all terms cancel except those involving \(i\) and \(k\). Therefore, \[d(a_i,b_j) + d(a_k,b_\ell) = d(a_i,b_\ell) + d(a_k,b_j).\] Thus \[D_{ij} + D_{k\ell} = D_{i\ell} + D_{kj}.\]

Now we prove (2) \(\Rightarrow\) (3). Assume every \(2 \times 2\) alternating difference vanishes. Define \[\alpha_i = D_{i1}, \quad \beta_j = D_{1j} - D_{11}.\] Using condition (2) with indices \(i,1,j,1\), we obtain \[D_{ij} + D_{11} = D_{i1} + D_{1j}.\] Hence \[D_{ij} = D_{i1} + D_{1j} - D_{11} = \alpha_i + \beta_j.\] So \(D\) has additive form.

Finally, suppose (3) holds. For any permutation \(\sigma\), \[\sum_{i=1}^n D_{i,\sigma(i)} = \sum_{i=1}^n (\alpha_i + \beta_{\sigma(i)}) = \sum_{i=1}^n \alpha_i + \sum_{j=1}^n \beta_j.\] Note that the right-hand side is independent of \(\sigma\). Therefore every red-blue perfect matching has the same total weight. Hence \(M\) is balanced. ◻

Finally, we can characterize the equilibrium property in terms of certain level-sets, thus adding a geometric interpretation of the balance. Assume that the weight function is induced by a function \(d : \mathbb{R}^2 \times \mathbb{R}^2 \to \mathbb{R}\). For \(i,k \in \{ 1, \dots, n \}\), let us define the red-pair distance-difference function \[\Phi_{ik}(x) = d(a_i,x) - d(a_k,x).\] For \(j,\ell \in \{ 1, \dots, n \}\), let us define the blue-pair distance-difference function \[\Psi_{j\ell}(x) = d(x,b_j) - d(x,b_\ell).\]

Theorem 5. The matching \(M\) is balanced if and only if, for every pair of red points \(a_i,a_k\), all blue points lie on a common level set of \(\Phi_{ik}\). That is, for every \(i,k\), there exists a real number \(\lambda_{ik}\) such that \[B \subset \{ x \in \mathbb{R}^2 : \Phi_{ik}(x) = \lambda_{ik} \}.\] Equivalently, \(M\) is balanced if and only if, for every pair of blue points \(b_j,b_\ell\), all red points lie on a common level set of \(\Psi_{j\ell}\). That is, for every \(j,\ell\), there exists a real number \(\mu_{j\ell}\) such that \[R \subset \{ x \in \mathbb{R}^2 : \Psi_{j\ell}(x) = \mu_{j\ell} \}.\]

Figure 4: Equilibrium as a level-set condition.

Proof. By Theorem 4, \(M\) is balanced if and only if \[d(a_i,b_j) + d(a_k,b_\ell) = d(a_i,b_\ell) + d(a_k,b_j)\] for every \(i,j,k,\ell\). Rearranging gives \[d(a_i,b_j) - d(a_k,b_j) = d(a_i,b_\ell) - d(a_k,b_\ell).\] In terms of \(\Phi_{ik}\), this says \[\Phi_{ik}(b_j) = \Phi_{ik}(b_\ell)\] for every pair of blue points \(b_j,b_\ell\). Therefore, for each fixed red pair \(a_i,a_k\), the function \(\Phi_{ik}\) is constant on \(B\). Equivalently, all blue points lie on a common level set of \(\Phi_{ik}\). See Figure 4 (a).

Similarly, the same equality can be arranged as \[d(a_i,b_j) - d(a_i,b_\ell) = d(a_k,b_j) - d(a_k,b_\ell).\] In terms of \(\Psi_{j\ell}\), this says \[\Psi_{j\ell}(a_i) = \Psi_{j\ell}(a_k)\] for every pair of red points \(a_i,a_k\). Therefore, for each fixed blue pair \(b_j,b_\ell\), the function \(\Psi_{j\ell}\) is constant on \(R\). Equivalently, all red points lie on a common level set of \(\Psi_{j\ell}\). See Figure 4 (b).

Thus the two level-set formulations are equivalent to \(M\) being balanced. ◻

In the language of \(H\)-sets, note that \[H(a_i,a_k) = \{ x : \Phi_{ik}(x) \ge \Phi_{ik}(b_k) \}\] while \[h(a_i,a_k) = \{ x : \Phi_{ik}(x) \le \Phi_{ik}(b_i) \}.\] Balancedness implies \[\Phi_{ik}(b_1) = \Phi_{ik}(b_2) = \cdots = \Phi_{ik}(b_n).\] Therefore, in equilibrium, \[\Phi_{ik}(b_i) = \Phi_{ik}(b_k),\] so the two boundary level sets \[\Phi_{ik}(x) = \Phi_{ik}(b_i) \quad \text{and} \quad \Phi_{ik}(x) = \Phi_{ik}(b_k)\] coincide. More strongly, every blue point lies on the same level set: \[B \subset \{ x : \Phi_{ik}(x) = \Phi_{ik}(b_i) \}\] Thus, for every red pair \(a_i,a_k\), all blue points lie on the common boundary level set between \(H(a_i,a_k)\) and \(h(a_i,a_k)\).

2.2.1 Squared Euclidean distance↩︎

Assume now that \(d(p,q) = \|p - q\|^2\). Let \[U_R = \operatorname{span}\{ a_i - a_k : 1 \le i,k \le n \} \quad \text{and} \quad U_B = \operatorname{span}\{ b_j - b_\ell : 1 \le j,\ell \le n \}.\]

Corollary 1. For the squared Euclidean distance, \(M\) is balanced if and only if \(U_R \perp U_B\). In other words, \[(a_i - a_k) \cdot (b_j - b_\ell) = 0\] for every \(i,j,k,\ell\).

Figure 5: Squared Euclidean equilibrium.

Proof. For squared Euclidean distance, \[D_{ij} = \| a_i - b_j \|^2.\] The \(2 \times 2\) alternating difference is \[D_{ij} + D_{k\ell} - D_{i\ell} - D_{kj}.\] Expanding, \[\|a_i - b_j\|^2 + \|a_k - b_\ell\|^2 - \|a_i - b_\ell\|^2 - \|a_k - b_j\|^2 = -2(a_i - a_k) \cdot (b_j - b_\ell).\] By Theorem 4, \(M\) is balanced if and only if all these alternating differences vanish. Therefore \(M\) is balanced if and only if \[(a_i - a_k) \cdot (b_j - b_\ell) = 0\] for every \(i,j,k,\ell\), which is equivalent to \(U_R \perp U_B\). ◻

Consequently, by Corollary 1, in the squared Euclidean case:

  1. If \(R\) contains three noncollinear points, then all blue points coincide. See Figure 5 (b).

  2. If \(B\) contains three noncollinear points, then all red points coincide. See Figure 5 (c).

  3. If both color classes contain at least two distinct points and neither color class collapses to one point, then both \(R\) and \(B\) are collinear, and their supporting directions are perpendicular. See Figure 5 (a). Conversely, every configuration satisfying this orthogonality condition is balanced.

2.2.2 Euclidean distance↩︎

Assume now that \(d(p,q) = \|p - q\|\). The main issue with this metric is that it yields hyperbolic level sets rather than affine hyperplanes. To characterize the equilibrium of red-blue matchings \(M\), we focus on the number of distinct red and blue locations, rather than the cardinality of \(R\) and \(B\).

Clearly, if \(R\) has exactly one distinct location or \(B\) has exactly one distinct location, then \(M\) is automatically balanced. Indeed, if all red points coincide at, say, \(a\), then \[\sum_{i} \| a_i - b_{\sigma(i)} \| = \sum_i \| a - b_{\sigma(i)} \| = \sum_j \| a - b_j \|,\] which is independent of \(\sigma\). The blue-collapse case is symmetric.

Suppose \(R\) collapses into two distinct points \(p\) and \(q\). By Theorem 5, \(M\) is balanced if and only if all blue points lie on one common level set \[\{ x \in \mathbb{R}^2 : \|p - x\| - \|q - x\| = \lambda \}\] for some real number \(\lambda\). Note that, geometrically, this level set is

  • a branch of a hyperbola with foci \(p,q\), if \(0 < |\lambda| < \|p-q\|\);

  • the perpendicular bisector of segment \(pq\), if \(\lambda = 0\);

  • one of the two exterior rays of the line \(pq\), if \(|\lambda| = \|p-q\|\).

The symmetric statement holds if \(B\) has exactly two distinct locations: if \(B\) collapses into two distinct points \(p'\) and \(q'\), then \(M\) is balanced if and only if all red points lie on one common level set \[\{ x \in \mathbb{R}^2 : \|x - p'\| - \|x - q'\| = \mu \}.\]

Before we study the characterization for the general case, we state and prove two elementary facts about Euclidean distance-difference level sets.

Lemma 3. If \(p,q,r \in \mathbb{R}^2\) are noncollinear, then for any real numbers \(\lambda,\mu\), the system \[\begin{cases} \|p-x\| - \|q-x\| = \lambda, \\ \|p-x\| - \|r-x\| = \mu \end{cases}\] has at most two solutions \(x \in \mathbb{R}^2\).

Proof. Put \(\rho = \|p-x\|\). Then \[\|q-x\| = \rho - \lambda, \qquad \|r-x\| = \rho - \mu.\] Squaring and subtracting \(\|p-x\|^2 = \rho^2\) from each equation gives \[2(q-p) \cdot x = \|q\|^2 - \|p\|^2 + 2\lambda\rho - \lambda^2,\] and \[2(r-p) \cdot x = \|r\|^2 - \|p\|^2 + 2\mu\rho - \mu^2.\] Since \(p,q,r\) are noncollinear, the vectors \(q-p\) and \(r-p\) are linearly independent. Hence these two linear equations determine \(x\) as an affine function of \(\rho\). Substituting this expression into \(\|p-x\|^2 = \rho^2\) gives a quadratic equation in \(\rho\). Therefore there are at most two possible values of \(\rho\), and hence at most two possible points \(x\). ◻

Lemma 4. Let \(u \neq v\), and let \(L\) be a line. If the level set \[\{ x : \|x - u\| - \|x - v\| = \lambda \}\] contains three distinct points in \(L\), then either:

  1. \(\lambda = 0\), and \(L\) is the perpendicular bisector of the segment \(uv\); or

  2. \(|\lambda| = \|u-v\|\), \(L\) is the line through \(u\) and \(v\), and the three points lie on one of the two exterior rays determined by \(u\) and \(v\).

Proof. The level set \(\{x : \|x-u\| - \|x-v\| = \lambda\}\) is empty if \(|\lambda| > \|u-v\|\). If \(\lambda = 0\), it is the perpendicular bisector of \(uv\). If \(0 < |\lambda| < \|u-v\|\), it is a branch of a nondegenerate hyperbola with foci \(u,v\). Hence any line meets it in at most two points. Finally, if \(|\lambda| = \|u-v\|\), equality in the reverse triangle inequality forces \(x,u,v\) to be collinear, with \(x\) lying on one of the two exterior rays determined by \(u\) and \(v\).

Therefore, if such a level set contains three distinct points of a line \(L\), the level set must be one of the two degenerate cases: either \(\lambda = 0\) and \(L\) is the perpendicular bisector of \(uv\), or \(|\lambda| = \|u-v\|\), \(L\) is the line through \(u\) and \(v\), and the three points lie on one exterior ray. ◻

Theorem 6. Suppose \(R\) and \(B\) contain at least three distinct points each. \(M\) is balanced if and only if all red points and blue points of \(R \cup B\) lie on a common line \(L\), and the two color classes are linearly separated on \(L\). That is, after choosing an affine coordinate \(t : L \to \mathbb{R}\), either \[t(a_i) \le t(b_j), \quad \text{for all}~ i,j,\] or \[t(b_j) \le t(a_i), \quad \text{for all}~ i,j.\] Equivalently, the convex hulls of the two color classes are intervals on the same line with disjoint interiors, possibly sharing one endpoint.

Figure 6: Euclidean equilibrium.

Proof. We first prove necessity. Assume that \(M\) is balanced. By Theorem 5, for every pair of red points \(p,q \in R\), all blue points lie on a common level set of \[x \mapsto \|p-x\| - \|q-x\|.\] See Figure 6 (a). Equivalently, for every pair of blue points \(u,v \in B\), all red points lie on a common level set of \[x \mapsto \|x-u\| - \|x-v\|.\] Suppose, for a contradiction, that the red points are not collinear. Since \(R\) contains at least three distinct points, we may choose three noncollinear red points \(p,q,r \in R\). By balancedness, all blue points lie on one level set of \[x \mapsto \|p-x\| - \|q-x\|,\] and also on one level set of \[x \mapsto \|p-x\| - \|r-x\|.\] By Lemma 3, these two levels sets meet at two points at most. Therefore \(B\) contains at most two distinct points, contradicting the hypothesis that \(B\) contains at least three distinct points. Hence \(R\) must be collinear. By symmetry, \(B\) must also be collinear.

Let \(L_R\) be the line containing \(R\) and let \(L_B\) be the line containing \(B\). We prove that \(L_R = L_B\).

Choose two distinct blue points \(u,v \in B\). Since \(M\) is balanced, all red points lie on one level set of \[x \mapsto \|x-u\| - \|x-v\|.\] Since \(R\) contains at least three distinct points on the line \(L_R\), Lemma 4 implies that

  1. \(L_R\) is the perpendicular bisector of \(uv\); or

  2. \(L_R\) is the line through \(u\) and \(v\).

Clearly, if the second alternative occurs for some pair \(u,v\), then \(L_R = L_B\). Suppose instead that the first alternative occurs for every pair of distinct points \(u,v \in B\). Since \(B\) contains at least three distinct collinear points, the perpendicular bisectors of its different pairs cannot all be the same line, as \(L_R\) is fixed. Therefore, this must occur for some pair of blue points, and hence \(L_R = L_B\). Thus all red and blue points lie on a common line \(L\).

To prove that the two color classes are linearly separated, choose an affine coordinate \(t\) on \(L\). Let \(u,v \in B\) with minimal and maximal \(t\)-coordinates among the distinct blue points, so \(t(u) < t(v)\). By balancedness, all red points lie on one level set of \[x \mapsto \|x-u\| - \|x-v\|.\] Restricted to the line \(L\), we get \[\|x-u\| - \|x-v\| = \begin{cases} t(u) - t(v), & t(x) \le t(u), \\ 2t(x) - t(u) - t(v), & t(u) \le t(x) \le t(v), \\ t(v) - t(u), & t(x) \ge t(v). \end{cases}\] On the interval \([t(u),t(v)]\), this function is strictly increasing, so each level set meets that interval in at most one point. On the left exterior ray \(t(x) \le t(u)\), the function is constantly \(t(u)-t(v)\), while on the right exterior ray \(t(x) \ge t(v)\), it is constantly \(t(v)-t(u)\). Since \(t(u) < t(v)\), these two constants are distinct. Hence a single level set cannot contain points on both exterior rays. Because \(R\) contains at least three distinct points and all red points lie on the same level set, all red points must lie on one closed exterior ray: \[t(a_i)\le t(u) \quad \text{for all } i, \qquad \text{or} \qquad t(a_i)\ge t(v)\quad\text{for all } i.\] Since \(u\) and \(v\) are the extreme blue points, this means either \[t(a_i) \le t(b_j) \quad \text{for all}~ i,j, \qquad \text{or} \qquad t(b_j) \le t(a_i) \quad \text{for all}~ i,j.\] Thus the two color classes are linearly separated. See Figure 6 (b). This proves necessity.

To prove sufficiency, suppose that all points of \(R \cup B\) lie on a line \(L\), and the two color classes are linearly separated. Choose an affine coordinate \(t\) on \(L\). Assume, without loss of generality, that \(t(a_i) \le t(b_j)\) for all \(i,j\). Then \[\|a_i - b_j\| = t(b_j) - t(a_i).\] By defining \(\alpha_i = -t(a_i)\), \(\beta_j = t(b_j)\), we get \[\|a_i - b_j\| = \alpha_i + \beta_j\] for every \(i,j\). Hence the Euclidean distance matrix has additive form. By Theorem 4, \(M\) is balanced. The case \(t(b_j) \le t(a_i)\) for all \(i,j\) is identical, using \[\|a_i - b_j\| = t(a_i) - t(b_j).\] Therefore \(M\) is balanced. ◻

References↩︎

[1]
O. Chacón-Rivera and P. Pérez-Lantero, “On maximum-sum matchings of bichromatic points,” Optimization Letters, vol. 20, pp. 403–421, 2026.
[2]
A. Biniaz, A. Maheshwari, and M. Smid, “Euclidean maximum matchings in the plane—local to global,” Algorithmica, vol. 87, no. 1, pp. 132–147, 2025.
[3]
C. Huemer, P. Pérez-Lantero, C. Seara, and R. I. Silveira, “Matching points with disks with a common intersection,” Discrete Mathematics, vol. 342, no. 7, pp. 1885–1893, 2019.
[4]
S. Bereg, O. P. Chacón-Rivera, D. Flores-Peñaloza, C. Huemer, P. Pérez-Lantero, and C. Seara, “On maximum-sum matchings of points,” Journal of Global Optimization, vol. 85, no. 1, pp. 111–128, 2023.
[5]
P. Pérez-Lantero and C. Seara, “Center of maximum-sum matchings of bichromatic points,” Discrete Mathematics, vol. 347, no. 3, p. 113822, 2024.
[6]
P. Soberón and Y. Tang, “Tverberg’s theorem, disks, and hamiltonian cycles,” Annals of Combinatorics, vol. 25, no. 4, pp. 995–1005, 2021.
[7]
O. Pirahmad, A. Polyanskii, and A. Vasilevskii, “On a tverberg graph,” Discrete & Computational Geometry, vol. 71, no. 2, pp. 480–497, 2024.
[8]
A. K. Abu-Affash, P. Carmi, and M. Maman, “Piercing diametral disks induced by edges of maximum spanning tree,” Journal of Graph Algorithms and Applications, vol. 28, no. 3, pp. 3–10, 2024.
[9]
P. Barabanshchikova and A. Polyanskii, “Intersecting diametral balls induced by a geometric graph II,” Discrete Mathematics, vol. 347, no. 1, p. 113694, 2024.
[10]
D. Eppstein, “Centers of maximum matchings - the geometry junkyard.” Available at https://www.ics.uci.edu/~eppstein/junkyard/maxmatch.html (2025/10/24).
[11]
J. A. Fingerhut, S. Suri, and J. S. Turner, “Designing least-cost nonblocking broadband networks,” Journal of Algorithms, vol. 24, no. 2, pp. 287–309, 1997.
[12]
P. Barabanshchikova and A. Polyanskii, “Intersecting ellipses induced by a max-sum matching,” Journal of Global Optimization, vol. 88, pp. 395–407, 2024.
[13]
S. P. Fekete and H. Meijer, “On minimum stars and maximum matchings,” Discrete & Computational Geometry, vol. 23, pp. 389–407, 2000.

  1. Pontificia Universidad Católica de Chile, Facultad de Matemáticas, Chile. opchacon@mat.uc.cl.↩︎