Abstract
We study dynamic matching in a spatial setting. Drivers are distributed at random on some interval. Riders arrive in some (possibly adversarial) order at randomly drawn points. The platform observes the location of the drivers, and can match newly arrived riders immediately, or can wait for more riders to arrive. Unmatched riders incur a waiting cost $c$ per period. The platform can match riders and drivers, irrevocably. The cost of matching a driver to a rider is equal to the distance between them. We quantify the value of slightly increasing supply. We prove that when there are $(1+\epsilon)$ drivers per rider (for any $\epsilon > 0$), the cost of matching returned by a simple greedy algorithm which pairs each arriving rider to the closest available driver is $O(\log^3(n))$, where $n$ is the number of riders. On the other hand, with equal number of drivers and riders, even the ex post optimal matching does not have a cost less than $\Theta(\sqrt{n})$. Our results shed light on the important role of (small) excess supply in spatial matching markets.
Introduction
Matching platforms, such as ride-sharing services or emergency dispatchers, face a fundamental challenge: pairing demand (riders) with supply (drivers) across a geographic space. Conventional wisdom often emphasizes "balancing the marketplace"—striving for a state where supply exactly meets demand. However, this research identifies a significant "spatial tax" inherent in perfectly balanced markets.
When $n$ riders and $n$ drivers are distributed randomly on a line, probability dictates that some matches will inevitably be very far apart. This paper quantifies how "excess supply"—having slightly more drivers than riders—breaks this efficiency barrier, drastically reducing the total distance (and thus time and cost) of matching.
The 1D Spatial Matching Model
The researchers model the problem using a 1D spatial setting, typically an interval. In this model, drivers are represented as points on the line, and riders arrive at random locations. The platform must decide how to pair them, incurring a cost proportional to the distance between the matched pair.
To analyze this, the authors compare three matching behaviors:
- Omniscient Matching: A theoretical benchmark where the platform knows all future rider locations and arrival times, calculating the absolute ex post optimal matching.
- Greedy Matching: A realistic, "naïve" algorithm where each arriving rider is immediately matched to the nearest available driver, ignoring future arrivals.
- Random Walk Representation: The paper’s core analytical innovation. By representing the sequence of drivers and riders as a random walk, the authors "slice" the geographic interval into segments where supply locally exceeds demand, allowing for new bounds on matching costs.
Key Insights: The Power of Excess Supply
The Square Root Barrier
In a perfectly balanced market ($n$ riders, $n$ drivers), the expected matching cost grows at a rate of $\Theta(\sqrt{n})$. As the market scales, the average distance to a match increases significantly, leading to systemic inefficiencies.
The Magic of $\epsilon$
Adding just a small fraction of extra drivers ($1 + \epsilon$) changes the mathematical landscape entirely. In this unbalanced state, the optimal matching cost becomes $O(1)$, meaning the total cost stays constant even as the number of participants $n$ grows toward infinity.
Robustness of Greedy Algorithms
While a greedy algorithm can perform poorly in worst-case scenarios, the authors show that in a random spatial setting with excess supply, it achieves a cost of $O(\log^3 n)$. This is a massive improvement over the $\sqrt{n}$ cost of a balanced market. Excess supply acts as a buffer; in a balanced market, one "greedy mistake" ripples through the system, forcing later riders to match with drivers very far away. Excess supply ensures a "good enough" driver is almost always nearby, preventing these high-cost cascades.
Simulation Findings
Theoretical findings were validated using synthetic simulations for markets with $n = 25, 100, \text{ and } 1000$ riders. The results demonstrate that the value of extra supply is visible even in small-scale markets:
- For $n=25$ riders, just 1 extra driver allows the simple Greedy algorithm to outperform the Omniscient Balanced benchmark.
- For $n=100$, only 4 extra drivers are needed.
- For $n=1000$, only 13 extra drivers (a 1.3% surplus) are required to achieve superior efficiency.
Limitations and Future Work
The current proofs are primarily situated in a 1D world. While the insights are expected to carry over, the mathematical behavior of random walks differs in 2D and 3D spaces. Additionally, the model assumes drivers are at fixed locations until matched, whereas real-world drivers are mobile. Future research will focus on extending this analysis to 2D Euclidean spaces and complex network structures like city street grids to determine if the logarithmic benefits of excess supply remain consistent.
Summary updated