Manuscript Offprint
arXiv:2608.12176Harmonic Ranking for Edge-Weighted Oblivious Matching
Abstract
We study edge-weighted oblivious bipartite matching. The weight of every potential edge is known, but its existence is revealed only when the edge is probed, and a successful probe between two free vertices must be accepted immediately. We give an explicit randomized algorithm with certified competitive ratio , improving the previous best guarantee of (Huang, Sun, Wu, and Zhao, FOCS 2025). The result is computer-assisted and is verified by a reproducible exact-integer computation. The same algorithm has a -competitive online implementation for the vertex-weighted random-arrival model, improving the previous unweighted guarantee of Mahdian and Yan (STOC 2011) and the vertex-weighted guarantee of Peng and Tang (EC 2025).
Our algorithm, Harmonic Ranking, is a role-symmetric generalization of Ranking. It assigns an independent random rank to each vertex and probes a potential edge in decreasing order of
This harmonic priority arises from a budget-balanced gain split and a mutual-proposal interpretation. The analysis lifts two cutoff curves into indicators, reducing the exponential-size factor-revealing problem to a polynomial-size directed minimum-cut instance. A maximum-flow computation with rounded-down integer capacities gives a rigorous certificate. Independently, we observe that the finite-grid unweighted relaxation of our factor-revealing program coincides exactly with a Mahdian–Yan program.
Keywords: oblivious matching, Ranking, randomized greedy, min-cut, max-flow, factor-revealing program.
1 Introduction
The performance of an algorithm is measured by its competitive ratio: the largest such that, on every instance, the expected weight of the algorithm’s matching is at least times the weight of a maximum-weight matching. The deterministic greedy algorithm, which probes potential edges in nonincreasing order of weight, is -competitive, and no deterministic algorithm can achieve a better ratio.
A recurring principle behind successful randomized greedy matching algorithms is to attach randomness to vertices and let the resulting vertex ranks induce the probing order. The challenge in the edge-weighted setting is how to combine the ranks of the two endpoints. Tang et al. (2023) use the rank of only one endpoint, resulting in a one-sided rule for a symmetric problem. Huang et al. (2025) restore symmetry through a product of the two endpoint scores, but leave the probing priority and the gain-sharing rule as separate design choices. Our guiding principle is that the gain-sharing rule itself should determine the probing order. This leads to Harmonic Ranking, the following symmetric generalization of Ranking.
Harmonic Ranking with score function Fix a nonincreasing, right-continuous function . Independently sample rank for every vertex . Give every potential pair priority Probe the potential pairs in descending priority, breaking ties by any admissible rule in Section 2.4.
Theorem 1.1.
There exists an explicit score function such that for every edge-weighted oblivious instance , satisfies
This improves on the guarantee of the one-sided edge-weighted algorithm of (Tang et al., 2023), and on the guarantee of the two-sided algorithm of (Huang et al., 2025).
Online consequence for vertex-weighted matching.
The Ranking algorithm was originally introduced by Karp et al. (1990) for online bipartite matching. In the vertex-weighted random-arrival model, Harmonic Ranking has a standard online implementation: process arrivals in order and maximize the harmonic priority among the arriving vertex’s available neighbors. If equal global priorities are ordered by arrival time, this execution is pathwise equivalent to the global harmonic-priority scan. Section 7 gives the coupling argument.
Corollary 1.2.
Assuming that the number of online vertices is known in advance, Online Harmonic Ranking is -competitive for vertex-weighted bipartite matching with random arrivals.
This simultaneously improves the guarantee for unweighted graphs (Mahdian and Yan, 2011) and the guarantee for vertex-weighted graphs (Peng and Tang, 2025).
1.1 Technical overview
Harmonic Ranking from score-balanced sharing.
The design of Harmonic Ranking is not ad hoc. It emerges from the randomized primal–dual framework and its economic interpretation through gain sharing. In online bipartite matching, offline vertices are viewed as items and online vertices as buyers. Each item posts a price determined by its random rank and the current arrival time, and the arriving buyer chooses the available neighboring item that offers the greatest utility.
The main obstacle to extending this interpretation to edge-weighted graphs is its inherent asymmetry. An edge weight belongs to a pair, rather than to either endpoint, so there is no canonical choice of which endpoint should be the item and which should be the buyer. We remove this asymmetry through mutual proposals. We first specify how the weight of a potential pair would be divided between and if that pair were selected. Each free vertex then proposes along the available incident pair that offers it the largest prospective gain. The algorithm probes a pair precisely when its two endpoints propose to each other.
For this procedure to be well defined, a mutual proposal must exist whenever an available pair remains. A general gain-sharing rule need not satisfy this requirement: the proposals may instead form a directed cycle of length greater than two. We show that, among positive complementary rank-based gain-sharing rules, ruling out such cycles on every instance uniquely forces score-balanced sharing, up to rescaling its underlying score function. Under this rule, multiplying each endpoint’s prospective gain by its own score produces the same harmonic edge priority. The formal characterization and its proof appear in Section 2.
From the variational formulation to min-cut and max-flow.
We first establish edge-weighted analogues of the two structural ingredients underlying analyses of Ranking: a cutoff lemma and an alternating-path insertion lemma. For Harmonic Ranking, these results yield a two-curve variational lower bound in the spirit of (Huang et al., 2019; Jin and Williamson, 2022; Peng and Tang, 2025).
A direct grid discretization that enumerates the possible curve pairs has exponential size, making fine-grid factor-revealing optimization infeasible. Our guarantee is enabled by a new lifting: we represent each one-dimensional threshold curve by its two-dimensional indicator
on the unit square. Under this representation, the threshold conditions become directed precedence constraints. Once the score is fixed to be constant on a uniform grid, they produce a polynomial-size directed network whose minimum-cut value lower-bounds the continuous variational objective. The maximum-flow problem on the same network is its strong dual. Numerical optimization is used only to choose a candidate score; after that choice is fixed, a reproducible exact-integer maximum-flow computation verifies the stated guarantee.
A second conceptual contribution of our framework is a complementary variational hierarchy for the edge-weighted, vertex-weighted, and unweighted analyses. At the two-monotone unweighted level, the complementary exact whole-cell game has the same optimum value as the polynomial-size program of (Mahdian and Yan, 2011).
1.2 Further related work
Stochastic query–commit matching.
In the stochastic query–commit model, each potential edge has a known weight and realization probability . The standard formulation assumes independent edge realizations, permits adaptive probes, and requires every successful probe to be committed immediately. Early formulations and commitment variants were studied by Chen et al. (2009) and Costello et al. (2012). Gamlath et al. (2019) gave a -approximation for edge-weighted bipartite graphs. Derakhshan and Farhadi (2023) improved this to for an absolute constant , and Chen et al. (2025) subsequently obtained a -approximation. For the unweighted and vertex-weighted cases, which are closely connected to online stochastic matching, the state-of-the-art -approximation for query–commit matching is due to Chen et al. (2024); see their paper for the related literature.
Tang et al. (2023) observed that a guarantee holding for every fixed realized graph transfers by averaging to stochastic instances, even under arbitrarily correlated realizations. The same argument shows that Theorem 1.1 gives a -approximation for edge-weighted stochastic query–commit matching on bipartite graphs against the expected omniscient optimum, while using neither the probabilities nor adaptive probing.
Online bipartite matching.
The randomized primal–dual analysis, also known as the gain sharing framework, was developed by Devanur et al. (2013). It provides a unified analysis of the optimal competitive ratio for online bipartite matching on unweighted Karp et al. (1990) and vertex-weighted graphs Aggarwal et al. (2011) under adversarial arrivals.
Random arrivals permit stronger guarantees. In the unweighted setting, Karande et al. (2011) obtained , and Mahdian and Yan (2011) obtained . For vertex-weighted matching, the primal–dual analyses of (Huang et al., 2019) and (Jin and Williamson, 2022) were further sharpened by Peng and Tang (2025), who obtained a guarantee. Our online consequence belongs to this latter vertex-weighted random-arrival setting: Section 7 connects the standard online rule directly to Harmonic Ranking through an arrival-order coupling.
Ranking on general graphs.
The Ranking algorithm extends naturally to general, non-bipartite graphs. A sequence of works has progressively improved its competitive ratio to (Chan et al., 2018; Derakhshan et al., 2026; Derakhshan and Yu, 2026). In a different direction, Huang et al. (2020) adapted Ranking to the fully online matching model, where vertices depart in an adversarial order and matching decisions are made upon departure, and established a competitive ratio on general graphs. This guarantee was subsequently improved to by Derakhshan and Yu (2026).
Randomized greedy rules beyond Ranking.
Dyer and Frieze (1991) studied the uniformly random-edge greedy rule, whose worst-case guarantee on general graphs does not exceed . Aronson et al. (1995) introduced Modified Randomized Greedy (MRG), which samples a uniformly random decision order together with independent uniformly random preference orders, and proved a guarantee strictly above . Tang et al. (2023) analyzed the weaker Random Decision Order (RDO) rule, which randomizes only the decision order while allowing arbitrary fixed preference orders. They obtained guarantees of on bipartite graphs and on general graphs; the latter immediately gives the same guarantee for MRG.
1.3 Roadmap
Section 2 derives Harmonic Ranking from gain sharing and mutual proposals. The score-balanced characterization explains the design of the algorithm but is not used in the competitive-ratio proof. Section 3 establishes the cutoff and alternating-path insertion lemmas and highlights the absence of cutoff-curve monotonicity. Section 4 develops the two-curve variational game. Section 5 then restricts to uniform-grid step functions, derives an exact minimum cut for the finite cellwise game, and writes its strongly dual maximum-flow program. Section 6 constructs a -step score and verifies the guarantee by reproducible exact-integer computation. The proof of Theorem 1.1 is then complete. Section 7 derives Corollary 1.2 by a direct coupling with Online Harmonic Ranking. Section 7.2 states an independent unweighted-grid correspondence, whose details are moved to Appendix A. Finally, Section 8 discusses open questions.
2 Score-Balanced Sharing and Harmonic Ranking
We first formalize the model and the primal-dual gain-sharing framework, then characterize the score-balanced rule and establish the equivalence between Mutual Proposals and Harmonic Ranking.
2.1 Model and notation
An edge-weighted oblivious instance is a tuple
where and are disjoint finite vertex sets. The instance is fixed before the algorithm samples its private randomness. The algorithm is given , but not ; probing reveals whether . When a probe reveals an edge and both endpoints are free, the pair must be added to the matching. The reward is the total weight selected.
Define
and let denote the algorithm’s random reward. All probabilities and expectations are over the algorithm’s private randomness with fixed. When the instance is fixed, we abbreviate and . Throughout, “pair” means a potential pair in , whereas “edge” means a realized pair in .
2.2 Primal–dual gain sharing
The standard fractional matching relaxation and its fractional vertex-cover dual are
\begin{array}[]{lll@{\qquad\qquad}lll}\text{\rm(P)}&\displaystyle\max&\displaystyle\sum_{uv\in E}w_{uv}x_{uv}&\text{\rm(D)}&\displaystyle\min&\displaystyle\sum_{z\in L\cup R}\alpha_{z}\\[4.0pt] &\text{\rm s.t.}&\displaystyle\sum_{e\ni z}x_{e}\leq 1\quad(z\in L\cup R)&&\text{\rm s.t.}&\alpha_{u}+\alpha_{v}\geq w_{uv}\quad(uv\in E),\\ &&x_{e}\geq 0\quad(e\in E)&&&\alpha_{z}\geq 0\quad(z\in L\cup R).\end{array}A gain-sharing rule specifies how the weight of a selected edge is credited to its endpoints. If the credits are nonnegative and sum to the selected weight, then in every run. It is therefore enough to establish, for every edge ,
The scaled expectations are then dual feasible, and weak duality gives
This is usually presented as an analysis of a given algorithm. Here we also use it as an algorithm-design principle: first decide how the weight of a hypothetical selected pair would be shared, and then let the two prospective shares determine which pair should be probed.
2.3 Mutual Proposals
Fix a measurable gain-sharing rule
Every vertex independently samples a rank . On a potential pair , define the two prospective gains
They depend only on the known weight and sampled ranks, not on whether the pair is realized, and complementarity gives .
Mutual Proposals with gain-sharing rule Initially every vertex is free and every potential pair is unprobed. Call an unprobed pair with two free endpoints available. At each stage, every free vertex incident to an available pair proposes along one that maximizes its own prospective gain in (3). Resolve all ties using the same common total order on potential pairs. If one or more pairs are proposed by both endpoints, probe the first such pair in that order. A failed probe marks the pair as probed; a successful probe matches its endpoints. Then recompute all proposals. If available pairs remain but no pair is proposed by both endpoints, the procedure is stuck.
When a successful probe selects , assign the analytical credits and . Thus every selected weight is split exactly between its endpoints, as required by the primal–dual argument.
At any stage, orient an arc from each proposing vertex toward the other endpoint of its proposal. Every nonisolated vertex has out-degree one, so each nontrivial component of this proposal graph contains a directed cycle. Because the graph is bipartite, such a cycle is either a mutual two-cycle or has length at least four. We call the latter a long proposal cycle, and call long-cycle-free on the sampled domain if no such cycle can arise in any finite weighted bipartite residual instance, under any assignment of ranks in , and with any common total tie order. If is long-cycle-free, Mutual Proposals is well-defined: whenever an available pair remains, some component contains a two-cycle and hence a mutually proposed pair. Each probe then either deletes one pair or matches two vertices, so the procedure terminates after finitely many probes.
Theorem 2.1.
Let satisfy
The following statements are equivalent.
- The rule is long-cycle-free on the sampled domain.
- There is a function such that
The function is unique up to multiplication by a positive constant.
Proof.
Define the positive odds ratio
Consider a four-cycle whose consecutive vertices have ranks , and let be the weight of the clockwise edge from rank to rank , with indices modulo four. The vertices remain distinct when some ranks coincide. Write
If , choose the weights so that
The prescribed ratios multiply to one, and at every vertex
so the proposal graph is a strict clockwise long cycle. If , the reverse orientation gives the same contradiction. Thus long-cycle-freeness forces for every four ranks.
Assign the consecutive ranks . Since , the four-cycle identity becomes
Fix a reference rank and set . The last identity gives . Combining this with complementarity that yields
Changing rescales by one positive constant. If is any other representation, then
so for some .
Conversely, suppose has the form The local preference score of at , multiplied by the vertex-dependent constant , is the common priority
Around a directed proposal cycle, the priority of each outgoing edge is at least that of the incoming edge. One strict comparison gives an impossible strict cyclic inequality. If all priorities are equal, each outgoing edge must precede the incoming edge in the common tie order, again producing an impossible strict cycle. Hence no long proposal cycle exists. ∎
The characterization itself does not orient the rank scale. Requiring a smaller partner rank to be weakly more attractive makes nonincreasing.
From now on, we restrict to score functions that are nonincreasing and right-continuous. We denote by the corresponding score-balanced gain sharing rule:
Finally, we establish that Mutual Proposals equals Harmonic Ranking.
Lemma 2.2.
For every score function and every rank realization, Mutual Proposals with gain-sharing rule is well-defined and produces exactly the same matching as .
Proof.
For every available ,
Because the multiplying factor is fixed at each vertex, every vertex orders its incident pairs by the common priority . Thus the highest-priority available pair is always proposed by both endpoints, so Mutual Proposals never gets stuck.
Say that one pair precedes another when it has larger numerical priority, or when the priorities are equal and it is earlier in the tie-breaking order. When Mutual Proposals probes a pair , every unprobed pair preceding is either unavailable or vertex-disjoint from ; otherwise a shared endpoint would propose the preceding pair. Starting from the global scan, we may therefore move ahead of all such pairs: each exchange passes either a no-op or a vertex-disjoint probe and preserves both acceptances. Repeating this exchange after each Mutual Proposals probe transforms the global scan into the Mutual Proposals sequence. Hence both select the same matching. ∎
In the remainder of the paper, we study the Harmonic Ranking algorithm. For its analysis, when is selected, assign endpoint gains
Unmatched vertices receive gain zero. Then
2.4 Tie-breaking
The mutual proposals algorithm resolves all ties using a single common total order on potential pairs. This global consistency is crucial for preventing long cycles: without such a requirement, a cycle of arbitrary length could arise when all involved pairs have identical priorities.
However, we consider the Harmonic Ranking algorithm and allow a broader class of tie-breaking rules. Specifically, we call a tie-breaking rule admissible if the resulting total scan order is a measurable function of the vertex ranks and satisfies the following local monotonicity property: decreasing the rank of a vertex leaves the relative order of all pairs not incident to unchanged, and cannot move any pair incident to later relative to any pair not incident to .
As long as this property is satisfied, all structural properties established in the next section continue to hold. The common total order on potential pairs used by the mutual proposals algorithm is admissible, as are various rank-dependent tie-breaking rules. In particular, the tie-breaking convention introduced for the online specialization in Section 7 is admissible. Consequently, all competitive guarantees proved for Harmonic Ranking below extend to the online setting.
3 Cutoffs and alternating paths
The cutoff and vertex-insertion arguments in this section are standard ingredients in analyses of unweighted and vertex-weighted Ranking (Mahdian and Yan, 2011; Huang et al., 2019; Jin and Williamson, 2022; Peng and Tang, 2025). The challenge in the edge-weighted setting is not that rank-perturbation techniques cease to apply, but that the additional structure introduced by edge weights limits how finely we can classify algorithmic outcomes while preserving monotonicity under a one-rank perturbation.
In classical online bipartite matching, condition on the arrival order and on every offline rank except that of the offline endpoint of a target edge . As this last rank ranges over , the three outcomes— is strictly earlier, is selected, and is strictly earlier—occupy three consecutive, possibly empty intervals, up to boundary conventions. The same offline-rank trichotomy underlies the vertex-weighted analyses. It need not survive, however, when the varied coordinate is the arrival timestamp of the online endpoint. In the conventional vertex-weighted formulation, this loss is reflected in the fact that the upper boundary , viewed as a function of the online timestamp, need not be nondecreasing.
The robust classification is necessarily coarser. In the notation below, after fixing and varying , we distinguish whether is matched no later than , or whether is strictly earlier than , with respect to the probing order. The first class is downward closed in , even though runs in which is strictly earlier and runs in which itself is selected may be interleaved within it. Symmetrically, after fixing and varying , the class in which is no later may interleave the outcomes “ is strictly earlier” and “ is selected.” This binary classification restores a cutoff in every one-dimensional section, but it does not force either cutoff curve to be monotone across sections.
Figure 1 summarizes the structural distinction among the three matching models. Fix a realized target edge and all other ranks. Informally, the rank square splits into the region where is strictly earlier, the region where is strictly earlier, and the region where is selected. Every vertical section of and every horizontal section of is an interval. What differs across the models is whether their boundary curves are nondecreasing across sections.
x$$y$$U$$S$$V(a) unweightedboth monotonex$$y$$U$$S$$V(b) vertex-weighted monotone onlyx$$y$$U$$S$$V(c) edge-weightedneither guaranteedy=a(x)$$x=b(y)
Figure 1: Threshold geometry. The blue region is where is strictly earlier, the red region is where is strictly earlier, and is where is selected. Vertical sections of and horizontal sections of are intervals. Whole-curve monotonicity holds for both boundaries in unweighted Ranking, only for in the vertex-weighted random-arrival model, and is not guaranteed in the edge-weighted model. The curves are schematic. Example 3.3 gives a concrete edge-weighted instance in which both boundaries are nonmonotone.
3.1 Cutoffs
Fix an instance , a target edge , and the ranks of all vertices other than the ones explicitly varied. For a vertex , write for the induced instance obtained by deleting and restricting and . We compare vertices by the order in which they become matched in the resulting total scan, treating an unmatched vertex as later than every matched vertex. Earlier scan positions have weakly larger priority. Because the fixed target edge is realized, at least one of and is eventually matched, and they become matched at the same step if and only if is selected. Hence the event that is matched no later than is the disjoint union of the events that is strictly earlier than and that is selected.
Changing one rank can reorder the incident edges of that vertex, so the usual one-line monotonicity proof for one-sided perturbed greedy does not apply. The following weaker statement is exactly what the two-curve analysis needs.
Lemma 3.1.
Fix all ranks except . If is matched strictly earlier than when , then is matched strictly earlier than for every .
Proof.
Consider the execution with , and suppose that is matched through the edge . At the time when is probed, every probed pair incident to is rejected. Consequently, the decisions made up to and including the probe of are unaffected by the presence of ; equivalently, running the greedy algorithm on produces the same matching up to the probe of , and in particular selects .
Now increase the rank of from to . By the tie-breaking property, every pair incident to moves weakly later relative to every pair not incident to , although the relative order among the -incident pairs may change. Therefore, no pair that was probed before in the original execution is displaced by a -incident pair. Since the execution restricted to is unchanged, the edge is still probed while both and are unmatched, and hence is matched at the same time as before. Because all pairs incident to can only move later, cannot be matched before the probe of . Thus remains matched strictly earlier than , as claimed. ∎
Corollary 3.2.
For every fixed , there is a cutoff such that, away from the boundary ,
Symmetrically, for every fixed , there is such that exactly describes the region where is strictly earlier than .
Proof.
For fixed , Lemma 3.1 makes the set of for which is strictly earlier than upward closed. Its infimum, with the natural conventions for the empty and full sets, is the required . Interchanging and gives . ∎
3.1.1 Monotonicity of Cutoffs
We emphasize that no monotonicity assumption is imposed on the cutoff functions and . Indeed, we provide a concrete example showing that both cutoff curves can be non-monotone.
This stands in contrast to the vertex-weighted setting studied by Huang et al. (2019), where is shown to be nondecreasing. By symmetry, in the unweighted setting both cutoff functions are therefore necessarily monotone; see Fig. 1. We return to this monotonicity property in Section 7.
Example 3.3.
Let
with target edge . Take
Vary
The three relevant priorities are
x$$y$$0$$1$$1$$\left(0,\frac{1}{3}\right)$$\left(\frac{1}{3},0\right)$$\left(\frac{1}{4},\frac{1}{4}\right)$$U$$V$$S$$a(t)=b(t)=t$$y=a(x)$$x=b(y)shared
Figure 2: Exact cutoff curves for Example 3.3. The blue boundary is , the red boundary is , and the bicolored diagonal is shared: for . Each cutoff decreases from to before increasing along the diagonal. The shading shows the interiors of and ; boundary membership is tie-dependent. The open circle records that ranks lie in .
Away from priority ties, the region occurs when , the region occurs when , and is selected when . Boundary membership depends on the tie-breaking rule and does not affect the cutoff values below. A direct comparison gives, up to boundary conventions,
In particular,
Both curves decrease on and increase afterward, so they are simultaneously nonmonotone in this instance. Figure 2 plots their exact geometry.
This example is size-minimal in the natural sense. A nonempty -region requires an alternative realized edge incident to , and a nonempty -region requires one incident to . A simple bipartite graph therefore needs an additional vertex on each side and at least the three realized edges , , and .
3.2 Alternating paths
The cutoff alone compares the order in which the two endpoints are matched. To lower-bound the gain of a specific endpoint, we also need to know what happens when the opposite vertex and all of its incident edges are restored.
Lemma 3.4.
Let , and fix a total order on the edges of a bipartite graph . Compare greedy on with greedy on , where the latter skips the -incident edges in the same order. Whenever a vertex is matched in the reduced run, it has already been matched in the full run by the point when the reduced run selects ’s matching edge.
Proof.
Couple the two scans in their common edge order, skipping -incident edges in the reduced run. The first discrepant acceptance, if any, must be an edge accepted only in the full run. Thereafter an edge off the resulting alternating path sees the same availability in both runs, so each discrepant acceptance must extend the path at its exposed endpoint. The partial matchings prevent branching. Moreover, every interior vertex is matched in both runs and is unavailable in the full run, so no accepted edge can close a cycle. Induction therefore shows that the discrepant accepted edges occur in the order
and alternate between the two runs:
where means that is probed first. Thus each -vertex on the path is matched in the full run before the edge that matches it in the reduced run is probed. Every -vertex off the path has the same status in both runs. If no -incident edge is accepted, the runs coincide. The claim follows. ∎
Remark 3.5.
The symmetric difference between two arbitrary rank realizations need not be a path; it may be an alternating even cycle. Lemma 3.4 uses the more controlled comparison between a graph and the graph obtained by deleting one vertex. That is the comparison needed below.
3.3 An edgewise threshold bound
Recall the sampled-domain gain-sharing rule from (4). When a cutoff takes the unsampled boundary value , we use the analytical extension
These values are never inputs to the algorithm. Fix , let , and run the reference process on .
Lemma 3.6.
If is not selected, then
If is selected, then . The symmetric statement holds for and .
Proof.
If , the right-hand side of (9) is zero, so assume .
Fix . Then is matched strictly before through a non- edge. Up to its selection, every probed -incident edge has changed no state, so the same edge matches in the reference run on . The reference edge, its numerical priority , and the relative order of all non- pairs are independent of under the tie-breaking convention. Necessarily for every ; otherwise would be probed while both endpoints were free. Right-continuity as gives
By Lemma 3.4, when the common scan reaches ’s reference edge, is already matched in . Unless is selected, the priority of the edge matching is at least , so
The statement for is symmetric. ∎
4 The two-curve variational game
Continue conditioning on all ranks except and . Define
The first two events mean, respectively, that is strictly earlier and that is strictly earlier. They are disjoint. Since is a realized edge, if neither endpoint is earlier then is selected. Consequently, almost everywhere,
Lemma 3.6 gives
Consequently,
Definition 4.1.
Let be the measurable pairs whose indicators (10)–(11) satisfy almost everywhere.
For every gain-sharing function and pair , define
For a score function , define
Proposition 4.2.
For every score function and every edge-weighted oblivious instance ,
Proof.
Fix a positive-weight realized edge , and condition on all ranks other than and . The resulting cutoff pair belongs to by Definition 4.1. Integrating (16) gives
After averaging over the conditioned ranks, sum this bound over a maximum-weight matching :
Zero-weight edges require no separate argument. ∎
The factor-revealing value of the score-balanced family is therefore
where is defined on sampled ranks in (4) and has the boundary extension (8). Equation (19) is a max–min problem over one score function and two arbitrary threshold curves. The inner problem is infinite dimensional. Actual realizable cutoff pairs form a subset of ; the infimum over is therefore a relaxation and gives a certified lower bound. We do not claim that every pair in is realizable by an instance. The supremum ranges over the admissible nonincreasing, right-continuous score functions in Section 2, including step functions. From Section 5 onward we restrict to score functions that are constant on a uniform grid. The resulting cut and flow problems are finite and satisfy strong duality.
5 The finite-grid variational game and exact cut–flow duality
The two-curve game in Section 4 is stated on the full rank square. From this point onward we work at a fixed grid resolution. Both the score and the cut indicators are represented cell by cell, so every optimization problem below is finite-dimensional. Proposition 5.2 shows that, for every grid size and every height vector satisfying (20), the maximum-flow value lower-bounds , and hence . Together with the fixed-score variational guarantee, this converts every finite flow certificate directly into an algorithmic guarantee.
The indicator lifting turns the exponentially many threshold pairs into the cuts of one polynomial-size directed network. The associated flow problem is the ordinary maximum-flow problem on that same network. Finite max-flow/min-cut duality therefore gives equality and attainment on both sides. We first derive the network for an arbitrary step score; Section 6 then supplies an explicit -step score and a reproducible exact-integer verification.
5.1 Step scores and discrete integration by parts
The network below represents a finite factor-revealing relaxation for a step score. Fix , write , and partition into cells
Choose step heights
and define
The value is an unsampled boundary convention used only for bookkeeping.
For this choice of , the step-score guarantee is certified by an ordinary finite maximum-flow/minimum-cut calculation. No limiting argument or numerical quadrature is needed.
For , define
where the last equality is the discrete counterpart of the zero endpoint condition . Thus right-continuity gives
Also define
These are exact finite increments: records the drop of across a cell boundary, and is the corresponding discrete integration-by-parts coefficient. The score order makes , and
Moreover, discrete complementarity is the linear identity
Hence ; every -dependent objective-arc capacity is linear in , and all capacities are affine in . In particular, the unsampled bookkeeping height supplies the final increment
Write . For , define
The admissible cellwise threshold pairs are
For , put
The telescoping identities
follow immediately from (22)–(23); the analogous identities hold for .
5.2 The exact cell network
Define binary labels
Every threshold pair satisfies
Conversely, every binary pair satisfying (30)–(32) is induced by some threshold vectors . Notice again that the vectors and are not required to be monotone. Source-side membership will encode label one. The local implication leaves exactly three states:
\begin{array}[]{@{}ccl@{}}\hline\cr\hline\cr(X_{ij},Y_{ij})&(U_{ij},S_{ij},\widetilde{V}_{ij})&\text{region}\\ \hline\cr(1,1)&(1,0,0)&U\\ (0,1)&(0,1,0)&S\\ (0,0)&(0,0,1)&V\\ \hline\cr\hline\cr\end{array}The last two implications link these states into a chain within each row and column, but do not link distinct row cutoffs or distinct column cutoffs. Figure 3 previews one representative of every arc family before we list their capacities.
-grid-grids$$\mathsf{Y}_{ij}$$\mathsf{Y}_{ik}$$\mathsf{Y}_{kj}$$\mathsf{Y}_{i+1,j}$$\mathsf{X}_{ij}$$\mathsf{X}_{i,j+1}$$t$$r_{ji}/m^{2}$$1/m^{2}$$r_{ij}/m^{2}$$q_{ij}/m^{2}$$q_{jk}/m^{2}$$\infty$$\infty$$\inftyobjective archard implication
Figure 3: Representative arcs of the finite threshold network. The two boxes are independent copies of the cell grid . The two blue arcs from into the -grid stand for the full -indexed fans in (34); the red arcs enforce the three implications in (35).
For , abbreviate
Create nodes , together with source and sink . After normalization by the cell area , the objective arcs are
\begin{array}[]{@{}lll@{}}\hline\cr\hline\cr\text{arc}&\text{capacity}&\text{cut contribution}\\ \hline\cr s\to\mathsf{Y}_{ij}&r_{ji}/m^{2}&r_{ji}\widetilde{V}_{ij}/m^{2}\\ \mathsf{Y}_{ij}\to\mathsf{X}_{ij}&1/m^{2}&S_{ij}/m^{2}\\ \mathsf{X}_{ij}\to t&r_{ij}/m^{2}&r_{ij}U_{ij}/m^{2}\\ \mathsf{X}_{ij}\to\mathsf{Y}_{ik}&q_{ij}/m^{2}&q_{ij}U_{ij}\widetilde{V}_{ik}/m^{2}\quad(k\in[m])\\ \mathsf{X}_{ij}\to\mathsf{Y}_{kj}&q_{jk}/m^{2}&q_{jk}U_{ij}\widetilde{V}_{kj}/m^{2}\quad(k\in[m])\\ \hline\cr\hline\cr\end{array}The hard implication arcs are
whenever the indices exist, each with capacity . Adjacent row and column arcs suffice, because their transitive closure enforces all within-section threshold precedences. We add no cross-coordinate arcs encoding monotonicity of or : neither property is available in the edge-weighted setting. Thus the three hard-arc families encode, respectively, exclusivity, the row cutoff structure, and the column cutoff structure.
A cut of value at most one always exists, so replacing every in (35) by capacity leaves the minimum cut unchanged. Let denote this equivalent ordinary finite-capacity network, and let and denote its minimum-cut and maximum-flow values.
Proposition 5.1.
For every fixed -level step profile,
Proof.
The network has nodes and exactly arcs, including both objective and implication families and counting parallel and zero-capacity arcs separately. For each , telescoping gives
Hence both the source-only cut and the cut with every nonterminal on the source side have capacity at most one. A minimum cut crosses no capacity- implication arc, so its labels satisfy (30)–(32) and correspond to an admissible threshold pair. For any such cut, its capacity is
Substitute and . The first term is , (28) converts the two -terms into and ; and (27) converts the two interaction families into and . Thus (36) equals . Conversely, every admissible threshold pair defines a cut with this value. Minimizing over cuts gives the second equality, and ordinary max-flow/min-cut duality gives the first. ∎
Proposition 5.2.
For every and every satisfying (20),
Proof.
The first inequality follows from (19). For the second, fix any . Independently choose one representative and one representative for each cell. The representatives are strictly ordered by their cell indices, and the finitely many sampled pairs almost surely avoid the null overlap set. Hence the arrays and form nonoverlapping row and column thresholds and define some .
The sampled boundary is an endpoint of the cell containing , with the endpoint left unchanged; the same holds for . Cellwise constancy and monotonicity of in its second coordinate therefore give
The sampled indicators agree with the discrete indicators induced by . Therefore
Taking expectation over the representatives turns the last sum into . Thus for every ; taking the infimum proves the second inequality. ∎
Theorem 5.3.
For every and every -level score function whose heights satisfy (20), and for every instance , satisfies
Proof.
Proposition 4.2 gives
Now apply Proposition 5.2 and the identity from Proposition 5.1. ∎
5.3 Why the formulation is polynomial
For an -level score function, each curve has possible threshold vectors, so a direct enumeration of the pair has cases. For a fixed step profile, the minimum-cut network represents all of them with nodes and arcs. For a fixed table , every -dependent capacity is linear in , and the resulting flow problem is a linear program. The outer map from scores to that table remains nonlinear, however, through and . We use numerical search only to choose a candidate step profile, and then certify that fixed parameter choice exactly.
6 A -Step Score and Exact-Integer Verification
Section 5 constructed a finite-flow lower bound for every step score. We now specify a -step score function and a reproducible exact-integer maximum-flow computation for its network. A complete verification artifact is publicly available.
Positive rescaling changes neither the algorithm nor its gain-sharing rule: for every ,
We therefore normalize the first height to one when displaying the score.
Set . The supplementary file finite_rank_scores_n240.txt contains exactly 240 integers . Write ; these are the step heights of
0$$0.1$$0.2$$0.3$$0.4$$0.5$$0.6$$0.7$$0.8$$0.9$$1$$0$$0.2$$0.4$$0.6$$0.8$$1rank normalized height
Figure 4: The normalized heights , plotted at their cell midpoints. The algorithm uses the corresponding -step piecewise-constant score.
The numerical search was guided by the three-parameter profile
with
Using the sampling offset , the checked integers are generated by
This smooth formula explains only how the candidate was selected. The proof uses the checked integer list: the artifact verifier confirms its count, positivity, and monotonicity. Put only for the telescoping formulas. The capacities are computed from the exact identities
The verifier independently recomputes all stored - and -capacities from these identities, including the normalization in (34), and checks that the declared integer scale is . For every objective arc of exact rational capacity , the checker uses integer capacity
Every hard implication arc receives the scaled big- capacity . The source-only cut and the cut placing every nonterminal node on the source side each have normalized capacity at most one, so a minimum cut below one never crosses a hard arc.
| grid size | |
|---|---|
| step heights | positive integers |
| stored rounded capacities | |
| network nodes | |
| forward arcs | |
| integer scale | |
| computed flow value | |
| source-reachable cut value | |
| implied factor |
Lemma 6.1.
If the rounded integer network has a feasible flow of value , then
Proof.
Every rounded objective capacity is no larger than its exact capacity, while each scaled big- capacity is exact. After division by , any feasible flow in the rounded network is therefore feasible in the exact rational network. ∎
Theorem 6.2 (Exactly verified -step score function).
The supplied step function satisfies
Proof.
The integer checker exhibits a feasible flow and the source-reachable cut in its terminal residual graph, both of value
Thus max-flow/min-cut duality verifies this value exactly for the rounded network, and Lemma 6.1 transfers its feasible flow to the exact rational network. The equal-valued cut verifies optimality but is not needed for the lower-bound direction. ∎
The supplementary README records the artifact hashes, exact commands, expected output, resource requirements, and implementation details.
Proof of Theorem 1.1.
Apply Theorem 5.3 to , and use Theorem 6.2. This gives
for every . ∎
7 Online Harmonic Ranking
In the vertex-weighted online model, every offline vertex has a known weight , and every edge incident to has that weight. Online vertices arrive in a uniformly random order and reveal their neighborhoods on arrival. After discarding zero-valued offline vertices, we assume . We also assume that is known in advance.
For the coupling below, fix an arbitrary order on and use the following admissible specialization of Section 2.4: among equal-priority pairs, order first by increasing rank of the -endpoint and then by , with any remaining ties broken by a fixed order. This rule is admissible: lowering a rank weakly improves every incident pair, while comparisons among nonincident pairs are unchanged.
Online Harmonic Ranking Independently sample an offline rank for every . Independently sample uniform timestamps with order statistics Assign the -th arriving online vertex the timestamp . Match , if possible, to an available neighbor maximizing breaking ties by .
Proof of Corollary 1.2.
Fix the graph, the arrival order, and all sampled ranks and timestamps. For a potential pair , its Harmonic Ranking priority is
For fixed , the positive factor is common to all neighbors. Hence maximizing (40) is exactly maximizing .
Under the identification and , the above admissible specialization orders equal numerical priorities first by increasing . Within a fixed arrival , this first key is constant, so tied pairs are ordered exactly by , as in Online Harmonic Ranking. For fixed , is nonincreasing in , with equality resolved in favor of the earlier arrival. Thus, if a pair of a later arrival precedes a pair of an earlier arrival, the two pairs are vertex-disjoint. A stable sort by arrival time swaps only adjacent pairs of this kind. Their probes commute, so the sort groups the scan into arrival blocks without changing the matching. Within each block, the scan is precisely Online Harmonic Ranking, since both executions use the same order on tied offline neighbors; unrealized pairs and probes after the online vertex is matched are harmless no-ops.
Thus the online matching is pathwise equal to on the edge-weighted instance . Assigning the order statistics of independent uniforms to a uniformly random arrival order makes the labeled timestamps independent and uniform, also independently of the offline ranks. Theorem 1.1 therefore gives the claimed ratio. ∎
The online guarantee above uses the score-balanced gain-sharing rule , because it is inherited from the preceding edge-weighted analysis. The vertex-weighted variational benchmark considered below, however, allows the full class of complementary monotone gain-sharing rules. We record this distinction next.
7.1 Complementary gain-sharing rules and the variational hierarchy
Let be the class of measurable gain-sharing rules that are nondecreasing in the first coordinate, nonincreasing in the second, and satisfy
Let
Here every carries the boundary extension (8). Then . Define
Thus .
| model | gain-sharing rule | cutoff geometry |
|---|---|---|
| edge-weighted (EW) | arbitrary | |
| vertex-weighted (VW) | nondecreasing, arbitrary | |
| unweighted (UW) | nondecreasing |
Table 1: Gain-sharing classes and cutoff geometry in the three matching models.
The common functional (17) gives
The first inequality uses both and ; the second uses . These are structural factor-revealing values.
7.2 Exact recovery of the Mahdian–Yan finite-grid value
The variational hierarchy above is formulated in the language of complementary gain sharing and cutoff geometry. At its unweighted endpoint, the natural classical benchmark is the strongly factor-revealing program underlying the previous analysis of random-arrival Ranking by Mahdian and Yan. The two descriptions appear quite different: our formulation is a max–min game over complementary gain-sharing tables and pairs of monotone cutoff paths, whereas the Mahdian–Yan formulation is a polynomial-size linear program with cumulative rows and transpose-balance constraints. The following result shows that their optimal values agree exactly at every finite grid resolution.
For every grid size , Appendix A defines the exact whole-cell unweighted value , its reflected complementary two-path value , and the Mahdian–Yan program .
Theorem 7.1 (Exact finite-grid value correspondence).
For every ,
Equation (42) is exact for each fixed ; it is neither an asymptotic statement nor a numerical coincidence. At the level of optimal certificate values, it shows that the complementary primal–dual formulation loses no strength relative to the Mahdian–Yan program at the unweighted endpoint. Equivalently, provides a polynomial-size value characterization of the exact whole-cell cutoff game. In this precise sense, the variational hierarchy developed here recovers the full finite-grid strength of the classical unweighted analysis rather than defining a parallel relaxation with a merely similar value.
The first equality is proved in Appendix A by reflecting both grid coordinates and both cutoff paths, followed by an overlap-removal argument. The second equality is proved in Appendix B: transpose balance is partially dualized into a complementary price table, fixed-price contraction identifies the inner problem with the two-path game, and monotone-price normalization restricts the price to the required monotone class. The outer gain-sharing optimization ranges over the grid discretization of the full class , rather than over the score-balanced subclass; the theorem does not assert that the optimum is attained within that subclass.
8 Discussion
In this work, we introduce the Harmonic Ranking algorithm and prove a competitive ratio of . We conclude with several observations that emerged from our investigation but are not needed for the main results.
In Section 7, we formalize a hierarchy of factor-revealing problems corresponding to the edge-weighted, vertex-weighted, and unweighted settings:
Our computer-assisted analysis shows that , while Peng and Tang (2025) showed that . Thus, although the remaining quantitative gap is small, it is natural to ask for the exact values of these three quantities and, in particular, whether the inequalities in the hierarchy are strict. Our numerical experiments suggest a rather delicate picture.
Edge-weighted versus vertex-weighted.
As discussed in Section 5, if we relax the gain-sharing functions from the score-balanced family to the more general family , then, after discretization, the resulting max-flow formulation becomes a linear program. Numerically, imposing the additional monotonicity constraint on one cutoff curve—the structural property available in the vertex-weighted setting—does not appear to improve the optimal value. More precisely, our computations suggest
where denotes a numerical observation rather than a proved equality.
At the same time, we see no structural reason for the optimal gain-sharing function in the larger family to be score-balanced. We conjecture that the first inequality above is strict. If so, the distinction between the edge-weighted and vertex-weighted analyses would arise not from the additional monotonicity of the cutoff curve, but from its interaction with the admissible class of gain-sharing functions.
Vertex-weighted versus unweighted.
For both the vertex-weighted and unweighted settings, the discretized factor-revealing problems can be formulated as linear programs. At every grid size we tested, the corresponding optimal values are distinct, with the unweighted program attaining the larger value. It remains unclear, however, whether this separation persists in the continuum limit or whether the two sequences converge to the same value as the grid becomes arbitrarily fine.
The numerical scale of these possible separations is reminiscent of the fine distinctions among the approximation thresholds for problems such as MAX 2-AND, MAX DI-CUT, and MAX CUT (Brakensiek et al., 2026). We do not intend to suggest that the hierarchy studied here has comparable significance. In particular, our hierarchy concerns the power of a specific factor-revealing, primal–dual analysis rather than a separation between the underlying matching problems themselves. Nevertheless, we find the phenomenon conceptually intriguing: seemingly modest changes in the structural information available to the analysis may lead to distinct optimal constants, even when the differences occur only at the third decimal place. We record these observations both as directions for future work and as potentially useful clues toward understanding the limits of this analysis framework.
AI Disclosure
The Harmonic Ranking algorithm and the Mutual Proposals framework were conceived entirely by the authors, without AI assistance. The minimum-cut and maximum-flow formulation was developed through iterative discussions between the authors and OpenAI’s GPT-5.6 Sol. Prompted by a numerical coincidence between values reported by Peng and Tang and the Mahdian–Yan bound, the authors strongly conjectured that the variational problem admits a polynomial-size representation. The proof of the exact correspondence with the Mahdian–Yan program reported in the appendix was subsequently completed independently by GPT.
The final score function was constructed through numerical experimentation. The authors initially proposed , and early experiments strongly suggested that a ratio of was attainable. Experiments with a general complementary gain-sharing rule then produced ratios near . GPT subsequently proposed the final -step function by fitting the numerical results. The authors performed the early numerical experiments; as the capabilities of available AI systems improved, the subsequent numerical exploration was soon taken over by AI.
The overall architecture of the paper, including the organization of its arguments, was designed by the authors. AI assistance was used extensively to develop technical details and fill in substantial parts of the exposition. The authors have reviewed the final manuscript and assume full responsibility for all definitions, claims, proofs, computations, and presentation.
References
G. Aggarwal, G. Goel, C. Karande, and A. Mehta Online vertex-weighted bipartite matching and single-bid budgeted allocations. In SODA, pp. 1253–1264. Cited by: §1.2.
J. Aronson, M. E. Dyer, A. M. Frieze, and S. Suen Randomized greedy matching. II. Random Structures & Algorithms 6 (1), pp. 55–73. External Links: Document Cited by: §1.2.
J. Brakensiek, N. Huang, A. Potechin, and U. Zwick Separating MAX 2-and, MAX di-cut, and MAX CUT. SIAM J. Comput. 55 (3), pp. S23–268. Cited by: §8.
T.-H. H. Chan, F. Chen, X. Wu, and Z. Zhao Ranking on arbitrary graphs: rematch via continuous linear programming. SIAM Journal on Computing 47 (4), pp. 1529–1546. External Links: Document Cited by: §1.2.
N. Chen, N. Immorlica, A. R. Karlin, M. Mahdian, and A. Rudra Approximating matches made in heaven. In Automata, Languages and Programming, Lecture Notes in Computer Science, Vol. 5555, Berlin, Heidelberg, pp. 266–278. External Links: Document Cited by: §1.2.
Z. Chen, Z. Huang, D. Li, and Z. G. Tang Prophet secretary and matching: the significance of the largest item. In Proceedings of the 2025 Annual ACM–SIAM Symposium on Discrete Algorithms, Philadelphia, PA, USA, pp. 1371–1401. External Links: Document Cited by: §1.2.
Z. Chen, Z. Huang, and E. Sun Stochastic online correlated selection. In Proceedings of the 65th Annual IEEE Symposium on Foundations of Computer Science, Los Alamitos, CA, USA, pp. 2275–2294. External Links: Document Cited by: §1.2.
K. P. Costello, P. Tetali, and P. Tripathi Stochastic matching with commitment. In Automata, Languages and Programming, Lecture Notes in Computer Science, Vol. 7391, Berlin, Heidelberg, pp. 822–833. External Links: Document Cited by: §1.2.
M. Derakhshan and A. Farhadi Beating -approximation for weighted stochastic matching. In Proceedings of the 2023 Annual ACM–SIAM Symposium on Discrete Algorithms, Philadelphia, PA, USA, pp. 1931–1961. External Links: Document Cited by: §1.2.
M. Derakhshan, M. Roghani, M. Saneian, and T. Yu Improved approximation for ranking on general graphs. In Proceedings of the 2026 Annual ACM–SIAM Symposium on Discrete Algorithms, Philadelphia, PA, USA, pp. 52–84. External Links: Document Cited by: §1.2.
M. Derakhshan and T. Yu A unified framework for analysis of randomized greedy matching algorithms. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, New York, NY, USA, pp. 1960–1971. External Links: Document Cited by: §1.2.
N. R. Devanur, K. Jain, and R. D. Kleinberg Randomized primal-dual analysis of RANKING for online bipartite matching. In Proceedings of the 24th Annual ACM-SIAM Symposium on Discrete Algorithms, Philadelphia, PA, USA, pp. 101–107. External Links: Document Cited by: §1.2.
M. Dyer and A. Frieze Randomized greedy matching. Random Structures & Algorithms 2 (1), pp. 29–45. External Links: Document Cited by: §1.2.
B. Gamlath, S. Kale, and O. Svensson Beating greedy for stochastic bipartite matching. In Proceedings of the Thirtieth Annual ACM–SIAM Symposium on Discrete Algorithms, Philadelphia, PA, USA, pp. 2841–2854. External Links: Document Cited by: §1.2.
Z. Huang, N. Kang, Z. G. Tang, X. Wu, Y. Zhang, and X. Zhu Fully online matching. Journal of the ACM 67 (3), pp. 17:1–17:25. External Links: Document Cited by: §1.2.
Z. Huang, E. Sun, X. Wu, and J. Zhao Edge-weighted matching in the dark. In Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science, Los Alamitos, CA, USA, pp. 797–817. External Links: Document Cited by: §1, §1.
Z. Huang, Z. G. Tang, X. Wu, and Y. Zhang Online vertex-weighted bipartite matching: beating with random arrivals. ACM Transactions on Algorithms 15 (3). External Links: Document Cited by: §1.1, §1.2, §3.1.1, §3.
B. Jin and D. P. Williamson Improved analysis of RANKING for online vertex-weighted bipartite matching in the random order model. In Web and Internet Economics, Lecture Notes in Computer Science, Vol. 13112, Cham, pp. 207–225. External Links: Document Cited by: §1.1, §1.2, §3.
C. Karande, A. Mehta, and P. Tripathi Online bipartite matching with unknown distributions. In Proceedings of the 43rd Annual ACM Symposium on Theory of Computing, New York, NY, USA, pp. 587–596. External Links: Document Cited by: §1.2.
R. M. Karp, U. V. Vazirani, and V. V. Vazirani An optimal algorithm for on-line bipartite matching. In Proceedings of the 22nd Annual ACM Symposium on Theory of Computing, New York, NY, USA, pp. 352–358. External Links: Document Cited by: §1, §1.2.
M. Mahdian and Q. Yan Online bipartite matching with random arrivals: an approach based on strongly factor-revealing LPs. In Proceedings of the 43rd Annual ACM Symposium on Theory of Computing, New York, NY, USA, pp. 597–606. External Links: Document Cited by: §1, §1.1, §1.2, §3.
B. Peng and Z. G. Tang Revisiting ranking for online bipartite matching with random arrivals: the primal–dual analysis. In Proceedings of the 26th ACM Conference on Economics and Computation, New York, NY, USA, pp. 820–835. External Links: Document Cited by: §1, §1.1, §1.2, §3, §8.
Z. G. Tang, X. Wu, and Y. Zhang Toward a better understanding of randomized greedy matching. Journal of the ACM 70 (6). External Links: Document Cited by: §1, §1, §1.2, §1.2.
Appendix A Proof of the Unweighted Grid Correspondence
This appendix proves the unweighted correspondence stated in Theorem 7.1. The proof is independent of the edge-weighted competitive-ratio analysis.
We work throughout on the finite grid of Section 5. In the unweighted specialization, both threshold vectors are nondecreasing, and the gain rule may range over all complementary monotone tables. The proof has two conceptual steps. First, reflecting both grid coordinates turns the whole-cell game into a complementary two-path game. Second, Appendix B identifies that two-path game with the Mahdian–Yan program .
Fix . Let be the set of tables
that are nondecreasing in , nonincreasing in , and satisfy
with the appended boundary values and .
Let
For , define
and
A.1 The complementary two-path game
Let
For and , put
Let consist of the tables , , with the implicit boundary , satisfying
Complementarity and monotonicity imply and that is nonincreasing in its first coordinate.
For , define
and
Under the reflection used below, the whole-cell gain-sharing table and cutoff pair are mapped to the complementary gain-sharing table and a reflected path pair , respectively. The reflected pair initially satisfies the additional transpose-overlap-free condition stated in Lemma A.1.
Lemma A.1 (Direct whole-cell reflection).
For , define
Then is a bijection from onto .
Moreover, if , then
where
with and .
Proof.
Reversing both indices turns monotonicity of in its second coordinate into monotonicity of in . Complementarity is preserved, and becomes . The same index reversal is its own inverse, so is a bijection.
Fix and define reflected paths by
Because and are nondecreasing, .
Under the index change , ,
Hence the whole-cell nonoverlap condition becomes . Conversely,
recovers the original threshold vectors. Thus (47) bijects with .
Write
The reflection gives and . Since , the middle-state indicator is . Therefore
The required counts are
and
Expanding the four gain terms now gives
which proves the claim. ∎
Lemma A.2 (Transpose-overlap removal).
For every ,
Proof.
Write , , and define
Since and similarly for , multiplying (45) by gives
Suppose . Put , and let be the first index in the plateau on which . Since is nondecreasing,
Replace by . Monotonicity of is preserved, at least one transpose overlap is removed, and no new overlap is created.
Let . By (48), the change in , new value minus old value, is
The equality uses complementarity. For the first inequality, is nonincreasing in its first coordinate and , hence
Repeating the operation terminates because strictly decreases. Thus every pair in can be transformed into one in of no larger value. Since , the two minima are equal. ∎
Corollary A.3.
Proof.
Lemma A.1 identifies the two table classes, and Lemma A.2 removes the only additional restriction created by the reflection. Maximizing over the corresponding gain-sharing tables gives the result. ∎
A.2 The Mahdian–Yan program
For completeness, we state the program used in Theorem 7.1. The index is the cumulative active-rank row, is the passive rank, and is an auxiliary state rank. Let , and define
The program is
subject to
We call (50) the crossed-coverage constraints and (54) the transpose-balance constraints. The notation follows Mahdian and Yan’s original formulation; we state the program in full here for self-containment.
The remaining balance–price step.
The reflection argument above does not by itself prove
That identity requires dualizing the transpose-balance equations and normalizing the resulting complementary price table. These steps are carried out in Appendix B.
Proof of Theorem 7.1.
Corollary A.3 gives . Corollary B.8 gives . Combining the two identities proves
∎
Remark A.4 (Scope of the correspondence).
Theorem 7.1 is an equality of optimum values for the exact whole-cell unweighted discretization and the Mahdian–Yan program . It is not a variable-by-variable isomorphism, and it does not assert that every optimizer in has the score-balanced representation used in Theorem 1.1.
Appendix B Balance–Price Duality
This appendix proves the second equality in Theorem 7.1,
The argument has three steps:
Let be the feasible region defined by (50)–(53), the identities
and no transpose-balance equations. Define
and
For an arbitrary real , this infimum is allowed to be .
The monotone price class is
\mathcal{A}_{m}:=\left\{F\in\mathcal{D}_{m}:\begin{array}[]{l}0\leq F_{\ell r}\leq 1,\\ F_{\ell r}\geq F_{\ell+1,r}\quad(\ell<m),\\ F_{\ell r}\leq F_{\ell,r+1}\quad(r<m)\end{array}\right\}.B.1 Partial balance dualization
Lemma B.1 (Exact partial balance dual).
Proof.
For each , dualize the independent balance equation with a free multiplier . For notational convenience extend the multipliers antisymmetrically by
This introduces no additional degrees of freedom. The partial Lagrangian over is
Since
we may write
Set
Then , and this parametrizes bijectively. Since and ,
Hence
It remains only to justify that the partial Lagrangian dual is exact. The deleted constraints are linear equalities in a finite-dimensional LP. Maximizing over their free multipliers together with the dual variables for the constraints defining recovers the full dual of . The primal is feasible, for example at , and its nonnegative objective is bounded below. LP strong duality therefore gives the claim. ∎
B.2 Fixed-price contraction
We next show that, for a monotone price , the fixed-price LP contracts exactly to the two-path optimization problem.
For , define the reflected table
Then is nondecreasing in , nonincreasing in , and satisfies . Hence , with , belongs to , and this reflection bijects with .
Put and define
The two increments are related by .
Using , summation by parts gives
Scale . The constraints on are order/equality constraints together with covers . Since , coordinatewise truncation preserves feasibility and cannot increase the cost, so we may impose .
Duplicate every variable into copies and , duplicate every order and equality constraint, and replace every cover by
We call these the crossed-cover constraints. Giving each copy half of the original objective coefficient preserves the optimum: gives , while a feasible pair gives .
After setting , all order and crossed-cover constraints are directed implications between variables in . Their matrix is a directed node–arc incidence matrix with unit bound rows and is totally unimodular. Since all right-hand sides are integral, the entire bounded doubled-cover polytope is integral. Hence every feasible point is a finite convex combination of binary feasible points; in particular, a binary optimum exists. Let denote the binary feasible set; we call its elements binary doubled covers. Equation (59) becomes
We now describe the structure of a binary doubled cover. Each variable , , is called a state. A state is occupied if it equals , and the -row is full if for every .
Fix the passive rank and one copy, and suppress both from the notation. Constraint (52) identifies all states with ; call their common value , and write for . For two states , write if the order constraints imply . The partial order is generated by
For a set of states , let be its upward closure under . In particular,
We call a diagonal generator and its closure a diagonal cone. By (62), a diagonal cone contains no tail state; in contrast, the closure of a full row contains every state in every later row.
For binary , define
Thus exactly when the -row is full. The crossed-cover constraints are equivalent to
For each passive rank , define the generator sets
Replace, for each , the occupied states in the - and -copies by and , respectively. Every generator was already occupied in the original cover by (63), and the original occupied sets were upward closed. Hence the new cover is componentwise contained in the original one. It remains feasible and has the same full-row generators. We call such a cover canonical.
Reflect the row and passive-rank coordinates by and . For each , the full-row generators form a prefix in . Let and be their respective prefix lengths:
We call these rows declared full; a row is physically full if all of its states are occupied after taking the order closure.
For , define
If , then the reflected -row is not declared full, and (63) forces the corresponding -diagonal state to equal . Hence is the largest position of an -diagonal generator forced by the -copy.
Let
Equation (62) gives the exact row structure
The -row formula is obtained by interchanging and . In particular,
Since , the cost of the canonical cover is
where
and empty sums are zero.
Conversely, given any pair , declare the rows and , add the diagonal generators forced by (63), and take upward closures. The resulting pair satisfies the order and crossed-cover constraints, hence is a feasible canonical doubled cover with (66)–(68).
We now identify nondecreasing generator sequences with the active coordinates of the paths in . Let
For , let be given by for and . Put
Then . Writing , equation (45) becomes
For , define the transpose-overlap set
We call transpose-overlap-free if .
Lemma B.2 (Canonical reduction and cost identity).
Every canonical doubled cover has a componentwise contained canonical representative whose generator sequences belong to and are transpose-overlap-free. Moreover, a minimizer of over may be chosen transpose-overlap-free, and every transpose-overlap-free satisfies
Proof.
Monotone generators. For an arbitrary sequence , define
Then is nondecreasing, and for every . Indeed, if , then holds exactly for . Thus replacing by leaves the largest diagonal cone forced at every height unchanged, while it can only remove -row generators and their upward closures. The resulting cover is therefore componentwise contained in the original one. Apply the same operation to .
Overlap removal. Suppose , and put . Since is nondecreasing, . Let be the first index in the plateau , and replace by . Monotonicity is preserved.
At the cover level, the reflected -row ceases to be declared full. The only additional diagonal requirement that could arise from (63) lies in the transposed -row . But , so that row is already declared full. Hence no new occupied state is introduced, while one -row generator is removed. After taking closures again, the new canonical cover is componentwise contained in the old one. No new overlap is created because only decreases. Repetition terminates because decreases.
For the compact path objective, the same update changes only and , the latter decreasing by one. The change in , new value minus old value, is
The equality uses complementarity, while and monotonicity in the second coordinate give
Thus a minimizing pair may be chosen transpose-overlap-free.
Cost identity. For nondecreasing ,
The condition is equivalent to
Summation by parts in (69) gives
Let
Since is nondecreasing,
Thus the two residual sums in (73) are indexed by and , respectively. Complementarity gives
Finally, double counting the pairs gives , and therefore
Comparison with (71) proves the cost identity. ∎
Theorem B.3 (Fixed-price contraction).
For every , define for , with . Then
Proof.
Let be the reflected table associated with . Start with a minimum doubled cover in (60) and replace it by its canonical reduction. Lemma B.2 gives a componentwise contained canonical cover with nondecreasing, transpose-overlap-free generators . Because all , its cost cannot increase, and the cost identity gives
Conversely, take a minimizer of over and use Lemma B.2 to remove all transpose overlaps without increasing its value. The canonical construction above gives a feasible doubled cover of cost . Equation (60) gives the reverse inequality. The bijection between and completes the proof. ∎
B.3 Minimax formulation of monotone prices
We next evaluate the maximization over monotone price tables explicitly. The resulting expression consists of the total aggregate mass together with an explicit penalty determined by the differences between transposed entries of the aggregate matrix.
Lemma B.4 (Compact price domain).
For an arbitrary real table ,
Consequently, for , finiteness is equivalent to . For every , the infimum defining is unchanged if one imposes .
Proof.
For any nonnegative matrix , define
The array is independent of and nondecreasing in , so satisfies the homogeneous forms of (50)–(53). Hence, for every feasible and every , the point is feasible, and increases by . If some , choose , where denotes the matrix unit with a in position and zeros elsewhere, and let ; then . Conversely, if , the objective is nonnegative. Since on , entrywise nonnegativity is equivalent to .
Let . For the compactness statement, replace a feasible by its coordinatewise truncation , set , and recover from consecutive differences in . Thus . The order relations and equalities are preserved. Also, if two nonnegative numbers have sum at least , then truncating both at leaves their sum at least . Hence every crossed-coverage constraint is preserved. Since is nondecreasing in and is nondecreasing and -Lipschitz, . Hence, for , every feasible point has a capped feasible replacement of no larger cost. Since the capped region is a subset of the original feasible region, the two infima are equal. The capped feasible region is closed and bounded in a finite-dimensional space, and hence compact. ∎
Let . By Lemma B.4, restricting the inner minimization to does not change its value for . And set
Thus is the scaled total mass assigned to the ordered pair , after summing over the state index . In this notation the objective of is .
For , identify the ordered pair with the interval , and define and . Thus measures the difference between a matrix entry and its transposed entry; it vanishes exactly when . Let , ordered by inclusion. A family is upward closed if , , and imply . Define
Lemma B.5 (Interval-order minimax).
The map is a bijection from onto the order polytope
Moreover, if , then
Proof.
For , price monotonicity compares with , hence . Moving the left endpoint left or the right endpoint right can only increase , so implies . Conversely, these inequalities, together with and , recover both coordinate monotonicities and the bounds in (56).
Grouping each off-diagonal term with its transpose gives
For every feasible ,
Every level set is upward closed, so the last display is at most . Conversely, the indicator of an upward-closed family attaining the maximum in (75) belongs to the order polytope and attains . Therefore
Both and are compact and convex, and (77) is bilinear. The finite-dimensional minimax theorem therefore allows the max and min to be interchanged, which gives (76). ∎
B.4 Balanced completion by predecessor transport
By Lemma B.1 and , we already have . To prove the reverse inequality, it is enough, by (76), to choose a minimizer with aggregate matrix and construct a point feasible for the original uncapped region , with aggregate matrix , such that
and
We construct such a balanced completion below.
We first make a normalization that preserves feasibility and adds no occupied states. By (66), an -row that is not declared full can nevertheless be physically full only if
Equivalently, such a row has , , and . Call such a row exceptional; define exceptional -rows symmetrically.
Starting from a canonical transpose-overlap-free binary doubled cover, every exceptional row can be eliminated without adding occupied states. Indeed, if has an exceptional row, let . Then , so the reflected row is physically full. Replace by . Since is the last zero of the nondecreasing sequence , the sequence remains nondecreasing. This change only declares an already physically full row, and hence adds no occupied -state. Recompute the -copy using the canonical generator rule. Relative to the old generator set, this removes exactly the diagonal generator forced by the former non-fullness of the newly declared -row, while all other full-row and forced-diagonal generators remain present.
Thus every crossed-cover constraint other than the one corresponding to the deleted generator retains its previous canonical witness, and that remaining constraint is now witnessed by the newly declared full -row. Consequently, the resulting pair is again a feasible canonical doubled cover. Its -occupied set is unchanged, whereas its -occupied set can only shrink. The only possible new transpose overlap would involve the newly declared reflected row , but such an overlap would require , contrary to . At each step the integer increases by one and is at most , so alternating between the two copies terminates.
We call the resulting canonical doubled cover saturated; in a saturated cover, every physically full row is declared full.
Lemma B.6 (Predecessor transport).
Among the minimizers of (76), one may choose one whose scaled cumulative array admits a representation
as a finite convex combination of saturated canonical binary doubled covers with generator sequences . Let be the aggregate matrix defined in (74).
Suppose that , for and , satisfy
Then there is a point , with scaled cumulative array and aggregate matrix , such that
In particular, taking and all other requests equal to zero moves any from to , while preserving feasibility and total mass.
Proof.
A saturated minimizing representation. Choose a minimizing , and put . By integrality of the bounded doubled-cover polytope, is a finite convex combination of binary doubled covers. Apply to each component the canonical reduction, the monotone and transpose-overlap normalization of Lemma B.2, and then the saturation procedure above; denote the result by , and put .
Every transformation above produces another feasible binary doubled cover. Therefore their convex combination is feasible for the doubled polytope. Averaging the two copies shows that is feasible for the capped one-copy system. Indeed, averaging the two crossed-cover inequalities gives the corresponding one-copy cover inequality, while the order and equality constraints are preserved under averaging. Since every component is binary, , so the cap is also satisfied.
At the level of occupied states, each normalized component is componentwise contained in the original one. Since , (59) therefore shows that the fixed-price cost of is no larger than that of for every . By (77) and the definition of , the objective in (76) is the maximum of these fixed-price costs. Hence the objective value at is no larger than that at . Since is already a minimizer, equality holds, and is again a minimizer.
Finally, replace every normalized component by it and its copy-swapped version, each with half of the original weight. Copy swapping preserves all the stated properties. After renaming components and weights, and relabeling as , we obtain
In particular, the weighted averages of the - and -copies are both .
Movable capacity in one component. Fix a component, suppress its index, and set for . For all , define its contribution to the aggregate matrix by
Defining also at will be needed when a coordinate is transposed.
Consider the -copy. Fix , put , , and , and abbreviate for , with . If , then , also when .
Now let , and write and . Once is fixed, the coordinatewise largest feasible predecessor is
Let be any feasible replacement for the predecessor row , with all other states fixed. Then
by the two cumulative-order relations. The tail equalities force all coordinates , , to have a common value, and the order relations bound this value by . Thus every feasible predecessor is coordinatewise bounded by the vector displayed in (83).
Conversely, satisfies the tail equalities and all order constraints linking rows and . Increasing the current predecessor toward only relaxes the constraints coming from row and the crossed-cover constraints. Hence is indeed the coordinatewise largest feasible predecessor. Consequently, is exactly the one-step movable capacity in this copy. Also put .
Equations (66)–(67) and (83) give the following mutually exclusive cases:
\begin{array}[]{c|ccc}\text{condition}&W^{A}_{kr}&\kappa^{A}_{kr}&U^{A}_{kr}\\ \hline\cr t<x&0&0&0\\ t=x&m-(z-x)^{+}&m-(z-x)^{+}&0\\ x<t\leq z&1&0&1\\ t>\max\{x,z\}&0&0&0.\end{array}The only point requiring more than direct substitution is the third line. In the case , formula (66) gives
This row is physically full if and only if and . Since , this is precisely the exceptional configuration , which is excluded by saturation. Outside this configuration, direct substitution into (83) gives , and hence . Consequently
The last equality uses that : the set is a prefix, so if and only if .
If , then . At the transposed coordinate of the -copy, the local parameters are and . The row-count calculation in the third line of (84), which remains valid at first index because of the convention in (82), gives . Hence . By symmetry, and .
Restoring the component index and using (81), we obtain
Transport within one atom. Fix a component , a copy , and a column . Call this copy–column piece an atom. Its coefficient in the second average in (81) is . A subatom of coefficient is realized by splitting off doubled-mixture weight ; augmenting one cumulative row by states on that subatom raises its weighted row total by .
Put , and let denote the occupied-state count of reflected row in the designated copy; thus for , and for . By (84), this atom has positive movable capacity at most one source rank. If that rank is , put . Positive movable capacity can occur only in the case of (84). Hence row is the last declared full row. Since , row exists; it is not declared full and, by saturation, is not physically full. Consequently, .
Fix , put , and define for . The row counts in (67) are nonincreasing, so
For , set . Then , so choose nested subatoms with coefficients . Proceed inductively for . On , reflected row is already full. For , the inclusion implies that reflected row was filled on at the preceding step. Thus, on , the successor row of is full. Formula (83) therefore permits reflected row to be filled completely.
The operation adds states per unit coefficient and hence raises original cumulative row by . It also preserves feasibility: the predecessor construction preserves the order constraints, a full row satisfies the tail equalities, and every crossed-cover inequality can only be relaxed because all changes are from to .
Thus the weighted cumulative-row totals for each increase by . For either the pre- or post-modification cumulative array , write , with . The modification increases by exactly for , and leaves all other cumulative-row totals unchanged. Since , the consecutive differences telescope: decreases by , increases by , and every intermediate entry is unchanged. Thus the requested mass is transported from to , with total aggregate mass preserved.
Simultaneous realization. For fixed , let be the finite set of atoms with that movable source. These sets are pairwise disjoint, because an atom has at most one movable source. For , let be its coefficient and its capacity per unit coefficient. Then . By (79) and (86), the requests can be allocated so that
A greedy allocation from the atom capacities gives such numbers. For each atom , (88) gives . Hence the initial subatoms, one for each , can indeed be chosen pairwise disjoint.
Within atom , choose disjoint initial subatoms of coefficients , one for each , and apply the nested construction above. To realize all splittings in a single finite mixture, represent a doubled component of weight by an interval of length . A subatom of coefficient uses an interval of length . Take the common refinement of the finitely many initial and nested interval partitions. Partitions belonging to different copies or columns may overlap, but on each cell of the common refinement all prescribed modifications are unambiguous. Operations belonging to different copy–column pieces affect disjoint order systems, while within a fixed piece the initial subatoms for different destinations are disjoint. Moreover, all modifications are coordinatewise increases, so every crossed-cover inequality remains satisfied. Thus every cell of the common refinement carries a feasible binary doubled cover.
Let be the weighted average of the modified doubled covers and put . Copy swapping preserves feasibility, and therefore is feasible for the doubled polytope. Equivalently, is feasible for the capped one-copy system. Setting and with , gives .
Since the aggregate matrix is linear in by (74), the atom-level changes add and give exactly (80). Each request removes and adds the same amount, so the total aggregate mass is preserved. This completes the proof. ∎
Theorem B.7 (Monotone-price normalization).
Proof.
Choose a capped minimizer in (76) with the saturated binary-mixture representation furnished by Lemma B.6. Write for its aggregate matrix and for its interval-imbalance vector, and put .
The interval flow. Construct a network with source , sink , and one node for each . Add arcs and of capacities and , respectively, and, whenever , an arc of capacity .
The cut with all interval nodes on the sink side has capacity , so no minimum cut crosses a capacity- arc. Hence the interval nodes on the source side of a minimum cut form an upward-closed family. Conversely, every upward-closed defines a cut of capacity
If denotes the maximum-flow value, max-flow/min-cut duality and the definition of give
Decompose a maximum flow into source–sink paths. Since a direct containment arc exists for every strict inclusion, each positive-value path may be shortened to , without changing its value or endpoint loads, where
The shortcut arcs have sufficient capacity because the total flow is at most . For a positive interval , let be the flow on ; for a negative interval , let be the flow on . Thus .
Transporting the flow. A path of value from to generates the requests
each of amount ; a request whose displayed strict inequality fails is omitted. Equivalently, these amounts are added to and , respectively.
For every negative interval , set , and add the unmatched request of amount , equivalently adding to .
For a positive interval , the first-request mass actually sourced at is at most . For a negative interval , the second-request and unmatched mass actually sourced at is at most . The first-request sources lie above the diagonal (), whereas the second and unmatched sources lie below the diagonal (). Hence the two bounds never need to be added at the same source coordinate. These are the only source types, so (79) holds.
Moreover, every nontrivial request has source rank at least : the first has source rank because ; the second has source rank because ; and the unmatched request has source rank because . Lemma B.6 therefore realizes all requests simultaneously.
Let be the resulting aggregate matrix and let be its interval imbalance. By (80), request effects superpose. For one path, the net effect is to decrease by and increase by . Indeed, when and , the two changes at the intermediate interval cancel; if or , the remaining request gives the same endpoint effect directly.
The unmatched request raises the imbalance of a negative interval from to zero and affects no other off-diagonal imbalance. A positive interval has residual imbalance , and an initially balanced interval remains balanced. Consequently,
The last equality holds because predecessor transport only moves aggregate mass.
Homogeneous completion. Define the nonnegative residual matrix . Use the homogeneous feasible direction constructed in the proof of Lemma B.4, with its matrix parameter equal to . By that construction, the scaled aggregate matrix increases by exactly . Adding this direction to the transported point therefore gives . For every , this adds only to the reverse entry , and hence eliminates the residual imbalance. Thus .
The homogeneous direction preserves every constraint of the uncapped region . It may violate the auxiliary cap, but that cap is not a constraint of . Moreover, , together with from (74), gives the transpose-balance constraints of . Hence the completed point is feasible for .
By (92) and the choice of the initial minimizer,
Therefore
The second inequality uses , and the last equality is Lemma B.1. Hence all inequalities are equalities. ∎
Corollary B.8 (Balance–price duality).
Proof.
By Theorem B.7, . The map , defined by , is a bijection from to , with inverse . For corresponding and , Theorem B.3 gives
Therefore
where the last equality is the definition of . ∎