<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Matching Tasks and Workers under Known Arrival Distributions: Online Task Assignment with Two-sided Arrivals</title></titleStmt>
			<publicationStmt>
				<publisher>Association for Computing Machinery (ACM)</publisher>
				<date>06/10/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10516885</idno>
					<idno type="doi">10.1145/3652021</idno>
					<title level='j'>ACM Transactions on Economics and Computation</title>
<idno>2167-8375</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>John P Dickerson</author><author>Karthik A Sankararaman</author><author>Aravind Srinivasan</author><author>Pan Xu</author><author>Yifan Xu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Efficient allocation of tasks to workers is a central problem in crowdsourcing. In this article, we consider a setting inspired by spatial crowdsourcing platforms, where both workers and tasks arrive at different times, and each worker-task assignment yields a given reward. The key challenge is to address the uncertainty in the stochastic arrivals from both workers and the tasks. In this work, we consider a ubiquitous scenario where the arrival patterns of worker "types" and task "types" are not erratic but can be predicted from historical data. Specifically, we consider a finite time horizon T and assume that in each time-step the arrival of a worker and a task can be seen as an independent sample from two (different) distributions.Our model, called Online Task Assignment with Two-sided Arrival (OTA-TSA), is a significant generalization of the classical online task assignment problem when all the tasks are statically available. For the general case of OTA-TSA, we present an optimal non-adaptive algorithm (NADAP), which achieves a competitive ratio (CR) of at least 0.295. For a special case of OTA-TSA when the reward depends only on the worker type, we present two adaptive algorithms, which achieve CRs of at least 0.343 and 0.355, respectively. On the hardness side, we show that (1) no non-adaptive can achieve a CR larger than that of NADAP, establishing the optimality of NADAP among all non-adaptive algorithms; and (2) no (adaptive) algorithm can achieve a CR better than 0.581 (unconditionally) or 0.423 (conditionally on the benchmark linear program), respectively. All aforementioned negative results apply to even unweighted OTA-TSA when every assignment yields a uniform reward. At the heart of our analysis is a new technical tool, called two-stage birth-death process, which is a refined notion of the classical birth-death process. We believe it may be of independent interest. Finally, we perform extensive numerical experiments on a real-world rideshare dataset collected in Chicago and a synthetic dataset, and results demonstrate the effectiveness of our proposed algorithms in practice.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>Assigning workers to tasks is a central challenge in various crowdsourcing platforms. For example, in mobile crowd-sensing <ref type="bibr">[50,</ref><ref type="bibr">51]</ref>, a central platform allocates mobile users to complex data collection and analysis tasks; in joint crowdsourcing <ref type="bibr">[8,</ref><ref type="bibr">29]</ref>, workers answer small questions with varying difficulties; and in spatial crowdsourcing <ref type="bibr">[44,</ref><ref type="bibr">45]</ref>, workers and tasks are matched in the context of a spatial metric space. Another type of such assignment, motivated by the COVID-19 pandemic, involves matching medical volunteers and workers to patients and medical tasks during an emergency.</p><p>More recently, a special class of worker-task assignment, called online task assignment (OTA), became popular in the literature. The basic setting is as follows: We have a set of offline tasks (known to us beforehand) and a set of online worker types. Each time a worker of a certain type arrives, an immediate and irrevocable decision is required: either reject the worker or assign her a task she shows interest in. Each assignment yields a known profit (uniform across all assignments or non-uniform); the goal is to design an allocation policy such that the (expected) total profit is maximized subject to various practical constraints such as the total budget for payments for workers, deadlines of tasks, and so on (see, e.g., Assadi et al. <ref type="bibr">[6]</ref>). There are three common arriving assumptions for the online workers; see the list below.</p><p>-Adversarial Order (AO): the arrival sequence is completely unknown but fixed by an adversary; -Random Arrival Order (RAO): the arrival sequence is sampled uniformly at random from the set of all permutations over the unknown set of workers; -Known Independent Identical distributions (KIID): a random worker is chosen with replacement, from a known distribution each time.</p><p>Ho and Vaughan <ref type="bibr">[21]</ref> considered OTA under RAO, where they assume the profit for each assignment has to be learnt. Assadi et al. <ref type="bibr">[6]</ref> studied a budgeted version of OTA under AO and RAO; in the budgeted version, we have a global total budget and each assignment incurs a cost, which is the amount we need to pay the worker (this is equal to the bid the worker submitted for the task after arrival). The budgeted version of OTA and its generalizations have been systematically studied in the context of truthful mechanism design, where the goal is to elicit truthful bids from the online workers (see, e.g., References <ref type="bibr">[17,</ref><ref type="bibr">18,</ref><ref type="bibr">[40]</ref><ref type="bibr">[41]</ref><ref type="bibr">[42]</ref><ref type="bibr">53]</ref>). In particular, Singer and Mittal <ref type="bibr">[41]</ref> and Singla and Krause <ref type="bibr">[42]</ref> considered the KIID setting, while Zhang et al. <ref type="bibr">[53]</ref> and Subramanian et al. <ref type="bibr">[43]</ref> considered the RAO setting.</p><p>In OTA, the main limiting assumption is that tasks are static (known in advance). This fails to capture various applications where the tasks are not all available at once but come at different times. Hassan and Curry <ref type="bibr">[20]</ref> considered a variant of the worker-task assignment problem under the converse setting to that of the OTA, where the spatial tasks arrive dynamically over time while the workers are all available beforehand: the worker has to travel to the specific location of the task to finish it. Tong et al. <ref type="bibr">[45]</ref> studied a generalized setting where both workers and tasks arrive dynamically: This was motivated by a spatial crowdsourcing platform on university campuses, where anyone on campus can both post micro-tasks (e.g., buying drinks or collecting a package), and perform tasks as a worker. They assumed that the arrival sequence of workers and tasks form a random permutation over the set of all possible workers and tasks, which is unknown to the algorithm (i.e., RAO). They tested their algorithms on two real-world crowdsourcing datasets, namely, gMission <ref type="bibr">[11]</ref> and EverySender.</p><p>Inspired by the above works, we propose a model, called Online Task Assignment with Twosided Arrival (OTA-TSA), where both workers and tasks arrive online each from the KIID arrival setting. A known bipartite graph G = (U , V , E) is given as input (this graph is also called the compatibility graph throughout this article), where U and V represent the respective sets of workertypes and task-types and each type has a specific location attribute, and E represents whether a worker-type has expertise in a task-type or not. We have a finite time horizon T , in which vertices in U and V both arrive sequentially in each time-step. We make the common distributional assumptions on the arrival sequence. in each round (for a total of T rounds), a worker of type u is sampled from a known distribution over U , while simultaneously a task of type v is sampled from another known distribution over V independently. Once a task arrives, it has to be instantaneously and irrevocably be matched to one of the workers (from among the neighbors of the task in G) who have arrived before this time instance; we assume that once a worker joins the system they do not leave until matched to a task or the end of the time-horizon, whichever occurs first. Every assignment f = (u, v) yields a given profit w f , and our goal is to design an allocation policy such that the expected total profit is maximized (the expectation is over both the random online arrivals of workers and tasks and any internal randomization of the algorithm).</p><p>We now motivate the key assumptions in OTA-TSA.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Known independent and identical arrival distributions (KIID).</head><p>In many crowdsourcing platforms, one collects meta-data about the tasks and workers. This data is used to predict both the performance and the arrival patterns of workers and tasks (e.g., References <ref type="bibr">[13,</ref><ref type="bibr">37,</ref><ref type="bibr">39,</ref><ref type="bibr">52,</ref><ref type="bibr">54]</ref>).</p><p>Hence the underlying compatibility graph G and the arrival sequence of tasks and workers is far from being adversarial. We can exploit the rich historical data to predict both the compatibility graph and the arrival distributions of workers and tasks. This motivates us to consider the KIID model, in which we assume the arrivals of tasks and workers follow two separate distributions that are known, identical and independent across the online phase. The KIID arrival setting has been adopted in many previous works (e.g., References <ref type="bibr">[41,</ref><ref type="bibr">42,</ref><ref type="bibr">46]</ref>).</p><p>Retention in the system: workers versus tasks. In our model OTA-TSA, we assume that (a) once a task arrives, it has to be instantaneously and irrevocably assigned to one of the neighboring workers who has arrived so far or get rejected; and (b) once a worker arrives, it will stay in the system until being assigned. OTA-TSA is inspired by applications in market-based recommender systems where the two sides of the market are lopsided with more tasks than workers. One example is ride-hailing during peak hours, where drivers (workers) can be far outnumbered by riders (tasks) <ref type="bibr">[38]</ref>. Any time a worker joins the system, they have an incentive to stay, since the lopsided numbers of workers and tasks imply that eventually a worker will be assigned to some task.</p><p>Adaptive versus non-adaptive algorithms. Non-adaptive algorithms are those whose strategies do not adapt to the (random) outcomes observed during previous rounds such as arrivals of online agents and realizations of random seeds used in algorithms. Otherwise, they are adaptive. Thus, a non-adaptive algorithm is a function mapping the time-step to an action, while adaptive algorithms map the history at the given time-step to an action. Competitive ratio. Consider an input instance of OTA-TSA, denoted by</p><p>where P u and P v represent arrival distributions of workers and tasks, respectively. Note that all information in I is accessible to any algorithm in advance. Consider an offline optimal (OPT), also known as "clairvoyant optimal, " which has the privilege of optimizing matching decisions after observing the full arrival sequence of online workers and tasks. In contrast, any (online) algorithm ALG must adhere to the instantaneous and irrevocable decision requirement upon the arrival of each task. Let E[OPT(I)] and E[ALG(I)] denote the expected performance of an offline optimal OPT and any given algorithm ALG on instance I, respectively, where both expectation is taken over randomness in the arrival sequences of workers and tasks and possible random bits in OPT or ALG itself. The competitive ratio of a maximization program, as studied in this article, is defined as inf</p><p>. Thus, when we say ALG achieves a ratio at least &#945; &#8712; [0, 1], it means that for any instance of the problem, the expected profit obtained by ALG is at least an &#945; fraction of the offline optimal. Note that in our definition, the offline optimal can always get a profit w e with e = (u, v) when matching worker u to task v, irrespective of whether u comes before or after v. This is in sharp contrast with the definition in Reference <ref type="bibr">[47]</ref>, where they assume both the offline and the online algorithm adopt the same weight function w(u, v, t, s), which denotes the profit obtained when matching a supply agent u arriving at time t to a demand agent v arriving at time s. They set w(u, v, t, s) = 0 for all s &lt; t, which ensures that the benchmark (i.e., offline optimal) and the online algorithm have the same set of available actions. This, however, makes the offline optimal defined in Reference <ref type="bibr">[47]</ref> weaker (less powerful) than ours.</p><p>Our contributions. First, we propose a theoretical model, OTA-TSA, where both workers and tasks arrive online. We consider the arrival setting of KIID and assume that the distributions can be learned from historical data.</p><p>Second, we present a non-adaptive algorithm (NADAP) for the OTA-TSA, which is optimal among all possible non-adaptive algorithms (Section 4). We show that NADAP achieves a ratio of almost 0.3, which is larger than the 1/4 achieved by an adaptive algorithm shown in Reference <ref type="bibr">[45]</ref> for the same problem but under the arrival setting of RAO. This is theoretical evidence showing the advantage of using historical data to predict the arrival distributions. Our main approach is to construct and solve an appropriate linear program (LP) and use that LP solution to guide online actions.</p><p>Third, we propose a few adaptive algorithms (see <ref type="bibr">Section 6)</ref>. The first one is a warmup algorithm, GREEDY. We show that it achieves a competitive ratio of at least 0.25 for the unweighted OTA-TSA; however the analysis is not tight. We conjecture that GREEDY obtains a ratio larger than 0.25, which is supported in part by the experimental analysis of Section 8. The second is an adaptive algorithm (ADAP) for OTA-TSA when all the edges incident to each worker-representing the set of all acceptable tasks for that worker-have the same weight, which is referred to as lefthand-side (LHS) vertex-weighted OTA-TSA. We show that ADAP achieves an improved ratio of nearly 0.34. To accomplish this, we construct and solve a stronger LP than the one used for the non-adaptive algorithm and combine this with ideas previously used for other online matching problems. The last algorithm is called SCALED, which can be viewed as a boosted version of NADAP: it samples an available worker for each arriving task following a strengthened distribution extracted from the LP. We show that SCALED achieves a competitive ratio of at least 0.355 for LHS vertex-weighted OTA-TSA.</p><p>Fourth, we show conditional and unconditional negative results for OTA-TSA: no (adaptive) algorithm can achieve a ratio better than 0.423 using the benchmark LP and 0.581 unconditionally, even for the unweighted case (Section 7). Note that Brubach et al. <ref type="bibr">[9]</ref> gave an adaptive algorithm, which yields a ratio of 0.729 for the classical online matching on an unweighted bipartite graph under KIID but with only one-sided arrival. This formally corroborates our intuition that the complexity increases significantly from one-sided arrival to two-sided arrival. Table <ref type="table">1</ref> summarizes the main theoretical findings in this article. Finally, we run numerical experiments to illustrate the various aspects of our algorithm. First, we run simulated experiments to show the behavior of the algorithm on various ranges of the input space. We illustrate when the proposed algorithm ADAP is better than GREEDY and when an algorithm like GREEDY suffices. Second, we use two real-world crowdsourcing datasets, namely, gMission <ref type="bibr">[11]</ref> and EverySender <ref type="bibr">[45]</ref> to show how to use this algorithm in practice. We find that despite having provable guarantees, we are able to obtain much better performance by using the GREEDY algorithm. Our experimental analysis also generalizes this model, where we assume that at each time-step a batch of workers and a batch of tasks arrive, respectively. Third, we use the Amazon product review dataset to simulate a modern recommender system and report the performance of our algorithm on this dataset.</p><p>In the analysis, we define and use a new technical tool, called two-stage birth-death process, which abstracts the random process into a general framework. This technical tool might be of independent interest to prove competitive ratios in other settings.</p><p>Closely-related works. Tong et al. <ref type="bibr">[46]</ref> considered a similar online task assignment problem in spatial platforms, called Flexible Two-sided Online task Assignment (FTOA). The two models are incomparable. The work of Reference <ref type="bibr">[46]</ref> posits that in each round a single vertex, either a worker or a task, is sampled from a known distribution; in contrast, we assume both a worker and a task are sampled according to two respective distributions independently in each round. Additionally, the work of Reference <ref type="bibr">[46]</ref> assumes: <ref type="bibr">(1)</ref> unit weights on all assignments (unweighted);</p><p>(2) the worker and task stay in the system until the deadline (known as input) after arrival; and (3) any available task-worker pair in the system can be matched (thus, a decision for the arriving vertex is not required to be immediate).</p><p>Recently, Truong and Wang <ref type="bibr">[47]</ref> introduced a more general online bipartite matching model with two-sided arrival where the two sides are the supply and demand agents. Similar to our work, they assume that the supply and demand agents arrive in each time-step sampled independently from two known distributions. Also, they assume that once a demand agent arrives, it should either be immediately and irrevocably matched to an available supply agent or discarded. In their model, the arrival distributions of supply and demand agents can differ over time. Additionally, they assume that the supply agent departs from the system after a certain finite number of rounds. Finally, when matching a demand agent v arriving at time t to a supply agent u arriving at time s, they assume that the resulting (known) profit is jointly determined by the two matching agents and the difference in their arrival times. Under this general setting, they get lower and upper bounds on the competitive ratio of 1/4 and 1/2, respectively. Apart from the model, their work differs from ours in the benchmark as well. In particular, they have a weaker offline optimal benchmark compared to our work (see further discussion in the definition of competitive ratio). Collina et al. <ref type="bibr">[12]</ref> considered a problem of two-sided arrival in a non-bipartite setting. They assumed both the arrival and departure of vertices are specified by a (specific) Poisson process and presented an online-matching algorithm that achieves a competitive ratio of 1/8. Recently, Aouad and Sarita&#231; <ref type="bibr">[2]</ref> considered a two-sided dynamic matching problem for both cost minimization and reward maximization. The key difference from our work is that in Reference <ref type="bibr">[2]</ref>, the performance of a policy is evaluated against an optimal online policy instead of an optimal offline as used here, where the former ratio is called approximation ratio, while the latter is called competitive ratio. The authors acknowledged that the benchmark LP there could have an arbitrarily large gap from the optimal offline performance. They cited that fact to justify their benchmark choice of an online optimal. A series of recent works ( <ref type="bibr">[22,</ref><ref type="bibr">24,</ref><ref type="bibr">25]</ref> have considered the two-sided arrival model (called fully online matching) in the adversarial and random order arrival for unweighted graphs. Since the arrival settings there are more general than the one considered in this article, while the unweighted-graph assumption is stronger than those considered in this article, the results are not directly comparable.</p><p>Other related works. We now briefly overview related research for the classical online matching problem; for a more in-depth review, we direct readers to the survey by Mehta <ref type="bibr">[35]</ref>. Ever since the seminal work <ref type="bibr">[28]</ref>, online matching and related models have received significant attention during the last two decades, partly fueled by Internet advertising businesses such as Google and Meta. In the basic model, we are given a bipartite graph G = (U , V , E) where U and V represent, respectively, the offline advertisers and online keywords (impressions). Each time a vertex v &#8712; V arrives, we have to make an instant and irrevocable decision: either reject it, or assign it to an unmatched neighbor u &#8712; U and obtain a profit w e for the match e = (u, v). The central problem is to design an online allocation policy such that the expected profit is maximized. Assumptions on the online arrival process leads to a landscape of different problems. Common arrival assumptions include adversarial order, random arrival order <ref type="bibr">[23]</ref>, and KIID <ref type="bibr">[9,</ref><ref type="bibr">15,</ref><ref type="bibr">19,</ref><ref type="bibr">26,</ref><ref type="bibr">33]</ref>. Online (bipartite) matching models have wide applications beyond online advertising, e.g., online advance admission scheduling <ref type="bibr">[48]</ref>, kidney exchange and organ matching <ref type="bibr">[3,</ref><ref type="bibr">5,</ref><ref type="bibr">34]</ref>, social welfare maximization <ref type="bibr">[1]</ref>, efficient parking allocation <ref type="bibr">[36]</ref>, and dynamic recommendations <ref type="bibr">[10,</ref><ref type="bibr">30]</ref>.</p><p>Departing from the traditional one-sided arrival setting on a bipartite graph, there are several theoretical models that consider a full arrival setting on general graphs. Wang and Wong <ref type="bibr">[49]</ref> introduced a full arrival setting on general graphs with fractional matching. The basic setting is as follows: in each round a single vertex arrives (in an adversarial order) and all its incident edges to previously arrived vertices are revealed; once a vertex v arrives, an online action of either rejecting v or (fractionally) matching it to its neighbors has to be chosen. Dutta and Sholley <ref type="bibr">[14]</ref> considered a similar full arrival setting but assumed that each arriving vertex can be matched to only one of the d preceding vertices. Ashlagi et al. <ref type="bibr">[4]</ref> studied another interesting variant of the full arrival setting where every agent stays in the system for at most d rounds after arrival and in any round we can match arbitrary pairs of agents currently present in the system. Huang et al. <ref type="bibr">[22]</ref> considered a full arrival setting where an online action is required only at the deadline of the vertex. Table <ref type="table">2</ref> provides an overview of the related works.</p><p>Roadmap. The rest of this article is organized as follows. We give a general statement of our problem in Section 2. We show our key technical tool, a two-stage birth-death process (TS-BDP), in Section 3 and the benchmark linear program in Section 4. We present one non-adaptive and three adaptive algorithms and related online-competitive analysis in Sections 5 and 6 and offer conditional and unconditional negative results in Section 7. We describe our experimental results in Section 8, offer detailed proofs involved in TS-BDP in Section 9, and conclude our article in Section 10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">PROBLEM STATEMENT</head><p>Before describing our OTA-TSA model, we define the following terminologies. We group a set of similar tasks and call them "task types. " Similarly, we group similar workers and call them "worker types. " For example, in the context of spatial crowdsourcing, all workers present around a particular location belong to a single worker type.</p><p>Our model is as follows. We have a bipartite graph (known to the algorithm) G = (U , V , E), where U and V represent the set of worker-types and task-types, respectively, and E represents the set of worker-task pairs that are "compatible, " i.e., (u, v) &#8712; E iff any worker of type u shows interest toward tasks of type v. We have a finite time horizon T (known beforehand) and for each time t &#8712; [T ] {1, 2, . . . ,T }, a worker u from U and a task v from V is sampled (we also say u or v arrives or comes interchangeably) independently from known probability distributions P u = {p u } and Q v = {q v }, respectively, with u p u = 1 and v q v = 1. The sampling process is independent across the whole online T time-steps (or rounds). Note that under the current setting, the total number of arrivals of workers is equal to that of tasks, and both are equal to T .</p><p>At each time t &#8712; [T ], we first observe the online arrivals from U and V (in that order), say u and v. We then need to make an instantaneous and irrevocable decision to either reject v or assign v to one of its available compatible workers in U . For each u &#8712; U , once it arrives, it will stay in the system until being assigned to some task. <ref type="foot">1</ref> In our model, we assume that each u has an integral arrival rate,<ref type="foot">foot_2</ref> i.e., T &#8226; p u is an integer for every u, and thus, we can further assume w.l.o.g. this integer to be 1 (by splitting each u into T &#8226; p u copies). <ref type="foot">3</ref> Hence, we have that |U | = T and p u = 1/T for all u. Similar to most of the theoretical works in online matching <ref type="bibr">[9,</ref><ref type="bibr">19,</ref><ref type="bibr">26,</ref><ref type="bibr">33]</ref>, we assume T 1 and some of our results are obtained when assuming T approaches infinity. Note that these two assumptions (i.e., T 1 and T &#8226; p u being an integer) are mild. When T is small, we can use a dynamic programming-based solution at each time-step to solve it to near optimality. And when T &#8594; &#8734;, the quantity T &#8226; p u is arbitrarily close to an integer. We associate a non-negative profit w f with each assignment f = (u, v). Let r v = T &#8226; q v denote the expected number of arrivals of v Table <ref type="table">3</ref>. Glossary of Notation and Acronyms Used</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>[T ]</head><p>Set of times that is equal to {1, 2, . . . ,T } with T being the whole time horizon. G = (U , V , E) Input compatibility graph where U and V are sets of worker and task types, respectively. during the T rounds, which is referred to as the arrival rate of v. We assume this rate to be any number between [0, 1] (upper bounding it by 1 is again w.l.o.g. via simple scaling). Our goal is to design an online-assignment policy such that the total expected profit of all assignments made is maximized.</p><p>Throughout this article, we use edge f = (u, v) and the assignment of v to u interchangeably. Additionally, when we say at time t &#8712; [T ], we mean we are at the beginning of time t either before or after observing the arrivals from U and/or V (clarified in the context) but definitely before the algorithm has made any online action. Table <ref type="table">3</ref> offers a glossary of notation and acronyms used in this article.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">TWO-STAGE BIRTH-DEATH PROCESS</head><p>We propose a new stochastic process, TS-BDP, and use it as a main technical tool to analyze our algorithms and derive negative results. Readers may wish to skip this section temporarily to get a coherent picture of how we design and analyze our algorithms: the technical tools presented here are solely for theoretical analysis purposes.</p><p>The process (described on random variables {X t , Y t } and parameterized by values p and q) is described as follows. Consider a stochastic process with a time horizon T such that, (1) the process starts at t = 1 with X 1 = 0; (2) at every round t, first there is a birth event followed by an independent death event. For the birth event, we have Y t = X t + 1 with probability p/T and Y t = X t with probability 1p/T . For the death event, it has a left boundary point at 0; i.e., if Y t = 0, then X t +1 = Y t , else when Y t &#8805; 1, we have X t +1 = Y t -1 with probability q/T and X t +1 = Y t with probability 1-q/T . We refer to p and q as the birth and death rates of TS-BDP, respectively. TS-BDP differs from the classical birth-death process (BDP), since in BDP we have that in every round, either a (random) birth or a death event occurs while in TS-BDP the two events occur independently in a sequential manner (the birth event is followed by the death event). Thus, TS-BDP is a special case of non-uniform BDP. (TS-BDP is a BDP with a time-horizon 2T where every odd step is a birth event and every even step is a death event.) Definition 3.1. A two-stage birth-death process parameterized by (T , p, q) (time horizon, birth rate, death rate) refers to a sequence of random variables {X t , Y t |t &#8712; [T ]} &#8746; {X T +1 }, which satisfies Fig. <ref type="figure">1</ref>. The random process in a single round of the two-stage birth-death process (TS-BDP) parameterized by (T , p, q). TS-BDP starts with X 1 = 0 and consists of T rounds; in each round, it first goes through a birth process of rate p &#8805; 0 and then followed by another independent death process of rate q &#8805; 0.</p><p>(1) <ref type="figure">1</ref> offers a depiction of the random process in a single round.</p><p>In this article, we are particularly interested in the case when p = 1, q &#8805; 0 is a constant for a sufficiently large T (T &#8594; &#8734;). We denote this specialization with TS-BDP(1, q) (or TS-BDP(q) when the context is clear). For every t &#8712; [T ], let &#916;(t,T ) := Y t -X t +1 and &#916;(T ) := t &#8712;[T ] &#916;(t,T ), the latter can be interpreted as the total number of death events in which Y t gets decreased by 1. Let &#954;(q) := lim T &#8594;&#8734; E[&#916;(T )]. We now state some useful lemmas that we will use later. The detailed proofs are deferred to Section 9 and they involve computer-aided computations that were done on Mathematica 10. All numerical results are precise up to the third decimal place. Lemma 1. (1) &#954;(0) = 0, (2) &#954; (0) = 1/e, where &#954; (0) is the first (right) derivative of &#954;(q) at q = 0.</p><p>e(e-1) ) &#8805; 0.343; and (3) &#954;(1 + 1 e-1 ) &#8804; 0.423. Lemma 3. &#954;(q) is non-decreasing and concave over q &#8712; [0, &#8734;].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">BENCHMARK LINEAR PROGRAM (LP)</head><p>As is common in this line of work, our algorithms use optimal solutions to LP constructed on the offline (expected) graph as a guide to the online algorithm. Additionally, this benchmark LP is used to upper bound the expected value of the optimal solution on a particular (offline) instance. Hence to compute a lower bound on the competitive ratio, it suffices to compute the ratio of the reward obtained by the algorithm to the optimal solution of this benchmark LP. We now describe the benchmark LP we use for our non-adaptive algorithm. Later, we show that this can further be strengthened based on some observations, which is used in our adaptive algorithm. We associate a variable with every edge f in the graph. For each edge f , x f denotes the expected number of matches in any offline optimal matching. For each u (resp. v), let E u (resp E v ) be the set of its neighboring edges. Consider the following LP:</p><p>Lemma 4.1. The optimal value to LP Equation (1) is a valid upper bound for the offline optimal.</p><p>Proof. Let x := (x f ) denote the optimal distribution over the edges for the offline optimal. We now argue that x is feasible for this linear program, which yields the lemma above. Constraint Equation ( <ref type="formula">2</ref>) captures the fact that the expected total number of matches incident to a task v is no more than the expected number of arrivals of v. The same reasoning applies to Constraint Equation (3) but for workers. Constraint Equation ( <ref type="formula">4</ref>) follows from the fact that the expected number of matches is non-negative. The objective function computes the expected reward obtained in the optimal offline solution. Thus, we claim that for any offline optimal, (x f ) should be feasible to the LP above. We therefore have that LP Equation ( <ref type="formula">1</ref>) is a valid benchmark LP, i.e., its optimal value is an upper bound on the offline optimal.</p><p>Throughout the article, we use (x * f ) to denote an optimal solution of benchmark LP (or the stronger LP we define later, as appropriate).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">NADAP: A BEST POSSIBLE NON-ADAPTIVE ALGORITHM</head><p>In this section, we present a non-adaptive algorithm, denoted by NADAP, which is optimal among all possible non-adaptive algorithms. Algorithm 1 describes our algorithm formally. Proof. Consider a given u. Let X t and Y t be the number of copies of u before and after the arrival process for U at time t, respectively. From the assumption that u arrives with probability 1/T in each round, we have Y t = X t + 1 with probability 1/T and Y t = X t with probability 1 -1/T . From NADAP, we have that if Y t &#8805; 1, then it decreases by 1 with probability</p><p>T and it remains unchanged with the remaining probability (here</p><p>From the definition of TS-BDP in 3.1, we have that {X t , Y t } is a TS-BDP(1, x * u ) with a time horizon of T .</p><p>Matching Tasks and Workers under Known Arrival Distributions</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:11</head><p>Let A f be the (random) number of matches for f = (u, v) in NADAP across the T online rounds. Thus, we have</p><p>From Lemma 3, we have that &#954; is non-decreasing and concave over [0, 1]. Thus, &#954;(x )-&#954;(0)</p><p>x -0 should be non-increasing over x &#8712; [0, 1]. We also have that &#954;(0) = 0. Therefore,</p><p>This implies that we have that</p><p>. Since LP Equation ( <ref type="formula">1</ref>) is a valid upper bound on the performance of an optimal offline, by linearity of expectation, we have that NADAP achieves a competitive ratio of &#954; <ref type="bibr">(1)</ref>.</p><p>Negative results for non-adaptive algorithms. We now show that any algorithm that is nonadaptive, cannot achieve a ratio better than &#954; <ref type="bibr">(1)</ref>. In particular, we prove the following lemma. Let OPT-A and OPT-B be the offline optimal algorithm and online optimal non-adaptive algorithm, respectively. With a slight abuse of notation, we use OPT-A and OPT-B to denote the corresponding performance as well. Observe that OPT-A = T for every offline instance. Now, we analyze OPT-B. Since the probability that any v comes at least twice across the T rounds is arbitrarily small (when T &#8594; &#8734;), hence it suffices for OPT-B to specify the online matching policy only for the case when v comes for the first time. Let the policy in OPT-B be {x</p><p>Consider a given u. Let Z u be the expected number of matches of u in OPT-B across the T online rounds. The number of copies of u at t before and after an arrival from U can be captured by a TS-BDP with a birth rate of 1 and a death rate of x u /T , i.e., the corresponding probabilities of a birth and death events are 1/T and x u /T 2 , respectively. Thus, by definition, we have</p><p>Define &#945; u := x u /T . We have u &#945; u &#8804; T due to the fact that u x u &#8804; T 2 . Consequently, The (optimal) performance of OPT-B can be obtained by solving a maximization program as follows: max</p><p>From Lemma 3, we have that &#954;(q) is non-decreasing and concave when q &#8712; [0, &#8734;]. This implies that the maximization Program ( <ref type="formula">5</ref>) is maximized when &#945; u = 1 for everyu, and the resulting optimal value is T &#8226; &#954; <ref type="bibr">(1)</ref>. Thus, we have that OPT-B achieves an online competitive ratio of &#954;(1) on this example.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">ADAPTIVE ALGORITHMS 6.1 Warmup: Greedy</head><p>Our greedy algorithm is formally stated in Algorithm 2 as follows.</p><p>ALGORITHM 2: Greedy Algorithm (GREEDY) Note that for the unweighted case (i.e., when all assignments have unit weights), GREEDY will choose an arbitrary available worker u when a task v arrives. We show that for the unweight case, GREEDY achieves an online competitive ratio at least 1/4. Theorem 6.1. GREEDY achieves a competitive ratio of at least 0.25 for the unweighted OTA-TSA.</p><p>Proof. The arrival setting of random arrival order (RAO) is stricter than that of KIID as studied here. In the RAO, an adversary (with no information of the algorithm) selects two independent uniform random permutations over U and V , &#963; and &#960; , respectively. At each time-step t &#8712; [T ], the algorithm observes a worker &#963; (t) and a task &#960; (t). As shown in Reference <ref type="bibr">[27]</ref>, a lower bound on the competitive ratio of any algorithm under RAO is also one for the KIID model. Thus, it suffices to show that GREEDY achieves a competitive ratio of at least 0.25 for the unweighted OTA-TSA under RAO.</p><p>Consider a graph G = (U , V , E) and assume w.l.o.g. that |U | = |V | = T . At time t, the algorithm sees a neighbor u of &#960; (t) such that &#963; -1 (u) &#8804; t. Let G(&#963; , &#960; ) be the graph of G under (&#963; , &#960; ) such that all vertices in U and V are re-ordered under &#963; and &#960; , respectively, and where an edge f = (u, v) &#8712; E exists iff &#963; -1 (u) &#8804; &#960; -1 (v). Note that GREEDY computes a maximal matching for G(&#963; , &#960; ). Let GREEDY(&#963; , &#960; ) be the total number of matched edges and OPT(&#963; , &#960; ) be the size of the maximum matching. Since GREEDY computes a maximal matching, this implies GREEDY(&#963; , &#960; ) &#8805; OPT(&#963; , &#960; )/2.</p><p>where OPT refers to the size of the maximum matching on G.</p><p>The last inequality is obtained as follows. Let M be a maximum matching of G with OPT = |M|.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Adaptive Algorithm ADAP for the LHS Vertex-weighted Case</head><p>In this section, we consider a relaxed version of the problem where for any u &#8712; U , all edges in E u have the same weight w u &#8805; 0. We refer to this relaxed version as OTA-TSA with LHS vertex-weighted. For this relaxation, one can strengthen the benchmark LP Equation (1) due to the following observation: the probability that an edge can be matched is at most that both the worker and the task is present at least once in the arrival sequence. This boils down to computing the expected value of the minimum of two i.i.d. Poisson random variables with mean upper bounded by 1. We later show that this expected value is at most (1 -1/e) &#8226;r v and hence adding this stronger constraint, we obtain the following stronger LP Equation <ref type="bibr">(6)</ref>. As a side note, this constraint is also valid for the general version of edge-weighted OTA-TSA, but the simpler LP Equation (1) suffices for an optimal non-adaptive algorithm. max</p><p>Lemma 6.2. The optimal value to LP Equation ( <ref type="formula">6</ref>) is an upper bound of the offline optimal for the OTA-TSA with LHS vertex-weighted.</p><p>Proof. Consider a given edge f = (u, v). For any offline instance, let X u and X v be the respective number of arrivals of u and v and X f be the corresponding number of matches for edge e in an offline optimal. We have that X</p><p>From our arrival assumption, we have that X u is the sum of T i.i.d. Bernoulli random variables each with mean 1/T . Thus, X u &#8764; Pois(1) when T &#8594; &#8734;. Similarly, we have that X v &#8764; Pois(r v ). Hence, we have the following:</p><p>The inequality Equation (11) on the second line is due to the following fact: for any given integral k &#8805; 1, we have Pr[Pois(1) &#8805; k] &#8804; 1 -1/e. The inequality Equation <ref type="bibr">(11)</ref> becomes tight when r v &#8764; 0.</p><p>Our adaptive algorithm is inspired by the work <ref type="bibr">[33]</ref>. Let {x * f } be an optimal solution to LP Equation <ref type="bibr">(6)</ref>. Every time when a task v arrives, we generate a random ordered list L of two choices from E v such that it satisfies the below two properties.</p><p>where L(1) and L(2) denote the first and second choices on this list L, respectively.</p><p>Later in this section, we will describe how to efficiently generate a random list satisfying Properties (P1) and (P2). Note that Property (P2) relies critically on the new constraint Equation ( <ref type="formula">9</ref>) added into LP Equation <ref type="bibr">(6)</ref>. The main idea of ADAP is as follows: Upon the arrival of an online task v at time t, we first generate random list L with respect to v, and then check the availability of the first choice L(1) and the second choice L(2) sequentially; make it if it is available. Compared with NADAP, ADAP gives every edge f a second chance to be potentially matched. Property (P1) ensures that the marginal distribution is same as that of the optimal LP solution for the first choice; Property (P2) gives a lower bound on the event that every f is tried as a second choice-a high-enough lower bound ensured by Property (P2) is the reason we have an improvement on the final ratio over the NADAP. Algorithm 3 formally describes ADAP.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ALGORITHM 3: An adaptive algorithm (ADAP)</head><p>1 Let v be a task arriving at time t &#8712; [T ]. 2 Generate a random list L satisfying Properties (P1) and (P2). <ref type="bibr">3</ref> If the first choice L(1) is available, then assign v to L(1); else, if the second choice L(2) is available, then assign v to L(2); otherwise, skip v.</p><p>Theorem 6.3. The adaptive algorithm ADAP achieves a competitive ratio of at least &#954; 1+ 1 e(e-1) &#8805; 0.343 for the OTA-TSA with LHS vertex-weighted.</p><p>Proof. Consider a worker u. Let X t and Y t be the number of copies of u at time t before and after observing an arrival from U . From the problem assumption u arrives with probability 1/T in each round and thus we have Y t = X t + 1 with probability 1/T and Y t = X t with probability 1 -1/T .</p><p>Consider the case when Y t &#8805; 1 and a compatible task v of u arrives at t. Let L be the random list that is generated for v at t. From ADAP, we have that Y t decreases by 1 iff either (1) the assignment f = (u, v) is made as a first choice (L(1) = f ) or ( <ref type="formula">2</ref>) the assignment f = (u, v) is made as a second choice (L(2) = f ) and the first choice L(1) is unavailable. Thus, we have the following:</p><p>The inequality on the second line follows from Properties (P1) and (P2). The inequality on the third line is due to the fact that any given L(1) = (u , v) will be unavailable with probability at least (1 -1/T ) t &#8805; 1/e (this refers to the probability that u never comes in the first t time-steps). Thus, summing over all the neighbors of u, we have</p><p>We have that {X t , Y t } is a TS-BDP with death rate at least</p><p>e ). From the definition of the function &#954;, we have that &#954;(x * u &#8226;q) is equal to the expected number of matches for worker u. Note that x * u is the expected number of matches for u in the benchmark LP Equation <ref type="bibr">(6)</ref>. Thus, the resultant ratio is at least</p><p>The inequality above is due to the fact that &#954;(q) is a concave function when q &#8712; [0, &#8734;], and that x * u &#8804; 1 due to Constraint on u in LP Equation <ref type="bibr">(6)</ref>.</p><p>Matching Tasks and Workers under Known Arrival Distributions 6:15</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Generating a Random List L Satisfying Properties (P1) and (P2)</head><p>The list satisfying the two properties is primarily generated via a randomized procedure that introduces negative correlations. In what follows, we describe two different approaches, both satisfying the required properties.</p><p>The first approach. This idea is due to Manshadi et al. <ref type="bibr">[33]</ref>. For every</p><p>has the meaning that we do nothing when v comes). Create two unit intervals, I 1 and I 2 as follows: (1) Sort {y f | f &#8712; E v } &#8746; {y f } in an increasing order; let y f 1 &#8804; y f 2 &#8804; . . . &#8804; y f n be this order; (2) Let S i be a segment of length y f i with a label f i for each i &#8712; [n]. Let I 1 be the unit interval formed by ordered segements (S 1 , S 2 , S 3 , . . . , S n ) and let I 2 be another unit interval formed by (S n , S 1 , S 2 , . . . , S n-1 ). The random list L based on (I 1 , I 2 ) as follows: (1) Choose a value x &#8712; [0, 1] uniformly at random; (2) Let I 1 (x) and I 2 (x) be the labels of the segments where x falls in on the two unit intervals I 1 and I 2 , respectively; Set L(1) = I 1 (x) and L(2) = I 2 (x).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 6.4. The random list L generated by the above procedure satisfies Properties (P1) and (P2).</head><p>Proof. To prove Property (P1), notice that x takes a value in [0, 1] uniformly at random. Thus each f &#8712; E v , x falls in the segment labelled by f in I 1 with probability</p><p>). Consider the other case y f &gt; 1/2. The event (L(2) = f &#8743; L(1) f ) occurs only when the random value x falls in the segment labelled by f in I 2 and x does not fall in the segment labelled by f in I 1 . Therefore,</p><p>The last inequality follows from y f = x * f /r v &#8804; 1 -1/e for every f &#8712; E v that is due to Constraint Equation <ref type="bibr">(9)</ref>.</p><p>A second approach. This idea is based on a modified version of dependent rounding (DR) <ref type="bibr">[16]</ref> as shown in Reference <ref type="bibr">[9]</ref>, which accepts a more efficient implementation in practice. First, create a star graph with edge set</p><p>f . Second, multiply each value y f by 2 and apply the dependent rounding technique <ref type="bibr">[16]</ref> to this modified vector y = (2y</p><p>with the respective probabilities of 1/2 and 1/2. We justify that L satisfies Properties (P1) and (P2) as follows. Lemma 6.5. The random list L generated by the above DR-based procedure satisfies Properties (P1) and (P2).</p><p>Proof. We prove Property (P1) first. Consider a given edge f &#8712; E v with y f &#8804; 1/2. In this case, we have Y f &#8712; {0, 1}. Since marginal distribution is maintained in DR <ref type="bibr">[16]</ref>, we see that Pr</p><p>For the other case y f &gt; 1/2, we see that Y f = 1 with probability 2 -2y f and Y f = 2 with probability 2y f -1. Thus,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Now, we show Property (P2). Consider a given edge</head><p>As for the case y f &gt; 1/2: We see that with probability 2 -2y f , Y f = 1. Thus,</p><p>The above analysis is similar to that in the proof of Lemma 6.4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.4">Another Adaptive Algorithm</head><p>SCALED for the LHS Vertex-weighted OTA-TSA Recall that LP Equation ( <ref type="formula">6</ref>) is a valid benchmark LP for the LHS vertex-weighted OTA-TSA. Let (x * f | f &#8712; E) be an optimal solution to LP Equation ( <ref type="formula">6</ref>). The adaptive algorithm SCALED presented below can be viewed as a boosted version of NADAP. The main idea is as follows. Suppose a task v arrives at some time t &#8712; [T ], and let E v,t be the set of available edges incident to v at time t after observing the arrival from U . If E v,t is empty, then do nothing; otherwise, sample an edge f &#8712; E v,t with probability x * f / f &#8712;E v, t . Note that (1) E v,t is not a multi-set: some neighbor u of v may have multiple copies at time t after the arrival from U , and in this case, we add only one copy f = (u, v) into E v,t ; (2) E v is deterministic (specified by the input compatible bipartite graph G), while E v,t is stochastic, whose outcome is determined jointly by the arrival sequences from the two sides and the random actions chosen by the algorithm up to time t. ALGORITHM 4: An adaptive algorithm for OTA-TSA: SCALED.</p><p>1 Let v be a task arriving at time t &#8712; [T ] and E v,t be the set of available assignments with respect to v at t after observing the arrival from U .</p><p>Theorem 6.6. Algorithm 4, SCALED, achieves a competitive ratio at least 0.355 for the LHS vertexweighted OTA-TSA.</p><p>Proof. Consider a given worker u. For each given t &#8712; [T ], let A t = 1 indicate that worker u arrives at time t and gets matched at some later time t &#8805; t, t &#8804; T . Thus, E[A] with A = t &#8712;[T ] A t denotes the expected number of times that u gets matched. In the following, we lower bound E[A]/&#964; that yields a competitive ratio for SCALED.</p><p>Assume u arrives at some time t &#8712; [T ] with probability 1/T (denoted by X u,t = 1). For each given t &#8712; {t, t + 1, . . . ,T }, let &#945; t be the probability that u gets matched at time t assuming &#363; remains unmatched at t . For each u &#8712; U and t &#8804; t &#8804; T , let &#967; u ,t = 1 indicate that u is available at time t (after the arrival of U and before any actions of the algorithm). Observe the following chain of reasoning, where the first inequality follows from Jensen's inequality applied to the function z &#8594; 1/z: specifically, we use the fact that if the &#955; i 's are non-negative constants and the Z i 's are non-negative random variables, then</p><p>Matching Tasks and Workers under Known Arrival Distributions 6:17</p><p>from Constraint Equation ( <ref type="formula">7</ref>):</p><p>from Constraint Equation ( <ref type="formula">9</ref>):</p><p>Thus, the probability that an arrival of u at time t gets matched should be</p><p>where the "o(1)" is a vanishing term when T &#8594; &#8734;. Summarizing the analysis thus far, we have</p><p>We can numerically verify that &#1076;(x * u )/x * u is decreasing over x * u &#8712; [0, 1] with &#1076;(x * u )/x * u &#8805; &#1076;(1) &#8764; 0.355. We thus establish a lower bound on the competitive ratio of SCALED for the LHS vertexweighted case.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">NEGATIVE RESULTS</head><p>We now show some negative results, i.e., upper bounds on the competitive ratio that any algorithm can achieve. All our results hold even in the simpler case of unweighted OTA-TSA when all edges take a uniform weight.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.1">Conditional Negative Results</head><p>Theorem 7.1. No algorithm can achieve a competitive ratio better than &#954;(1 + 1/(e -1)) &#8764; 0.423 based on LP Equation (6) even for the unweighted OTA-TSA.</p><p>Proof. Consider an unweighted star graph, where we have one single worker u with p u = 1/T , which is connected to T tasks each having r v = (1/T )/(1 -1/e). We can verify LP Equation ( <ref type="formula">6</ref>) has an optimal solution such that x * f = 1/T for all the T edges and an optimal LP value equal to 1. Now consider an optimal online algorithm, denoted by OPT. We see that every time upon the arrival of any v, OPT will match it to u as long as there is one copy of u available then. Note that in each round, u arrives with probability 1/T , while one of the T tasks arrives with probability v r v /T = (1/T )/(1 -1/e). By the definition of TS-BDP in 3.1, OPT has an expected number of matches equal to &#954;(1/(1e)). Thus, we claim that on this example, OPT achieves a competitive ratio no more than &#954;(1/(1e)) &#8764; 0.423 by Lemma 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.2">Unconditional Negative Results</head><p>We now present an unconditional negative result that is independent of the choice of the benchmark LP. The result stems implicitly from the nature of the online process and can be viewed as the online-offline stochastic gap. In particular, we have the following theorem: Theorem 7.2. No algorithm can achieve a competitive ratio better than &#954; (0)</p><p>1-1/e = 1 e-1 &#8764; 0.581 even for the unweighted OTA-TSA.</p><p>Proof. Consider an unweighted bipartite graph G = (U , V , E), where |U | = |V | = T and |E| = T , which consists of a perfect matching. Let the arrival rates for every u be 1 with p u = 1/T and let every v have an arrival rate of &#1013; (where &#1013; is arbitrarily close to 0) with p v = &#1013;/T . We assume that there exists a dummy node v such that p v = 1&#1013; with v having no neighbors.</p><p>Consider a given f = (u, v). Let OPT-A and OPT-B be the respective offline and online optimal algorithms. Let X f be the number of matches of f in OPT-A after the T rounds. Let X u and X v be the respective number of arrivals of u and v in an offline instance. We have that X f = min(X u , X v ). Observe that X u &#8764; Pois(1) and X v &#8764; Pois(&#1013;). Thus, we have</p><p>Hence, we have that</p><p>Matching Tasks and Workers under Known Arrival Distributions</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:19</head><p>Let Y f be the number of matches of f in OPT-B. Similar to the proof in Theorem 5.1, we have E[Y f ] = &#954;(&#1013;). Thus, the ratio on the above instance is</p><p>.</p><p>Taking &#1013; &#8594; 0, we have that the above value is</p><p>From Lemma 1, &#954; (0) = 1/e; thus, we get our claim.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8">EXPERIMENTS</head><p>In this section, we describe the experimental results in this article. We implement the adaptive and non-adaptive algorithms on both a simulated setup and a public ridesharing dataset collected in the city of Chicago.<ref type="foot">foot_6</ref> </p><p>Preprocessing of a real-world dataset. The dataset has more than 169 million trips since November 2018. Each trip record includes the following information: departure and arrival timestamps, pick-up and drop-off locations, and some other information like the total fare. Following the idea in Reference <ref type="bibr">[31]</ref>, we use the community area to divide the Chicago into 77 regions and categorize all trips according to the predefined community areas. In the context of ridesharing, we assume that driver-types and request-types represent the worker-types and task-types in the OTA-TSA model, respectively. We group the drivers into a "type" if they share the same community area. Similarly, we group the requests into a "type" if they share the same starting and ending community areas.</p><p>In this way, we end up with 77 driver-types and 77 &#215; 77 = 5929 request-types.</p><p>To precisely construct the compatibility graph between the drivers and requests, we focus on the rush hour from 18:00 to 19:00 between August 1 and August 5 in 2022, and we have 36,907 trips in total. By categorizing these trips according to the 77 predefined community areas, we have 2,661 trip types, each associated a capacity of c. Inspired by the setting in Reference <ref type="bibr">[38]</ref>, we continue to filter out those trip types with capacities no larger than 10 and sample 200 trip types randomly, and thus, we get the set of driver-types U with |U | = 52 and the set of requesttypes V with |V | = 200. Here, we construct the arriving distribution among requests by setting</p><p>Similarly, the arriving probability for each driver-type u &#8712; U is computed as p u = c u / u &#8712;U c u . We add an edge between a driver and a request type if the community area of driver type is the same as the starting community area of request type. In the edge-weighted case, for each edge f = (u, v), we use the averaged total fare of request-type v as the final weight of w f ; while in the LHS vertex-weighted case, we use the averaged total fare of driver-type u instead. The detailed setting of all other parameters can be found in Table <ref type="table">4</ref>.</p><p>A synthetic dataset. We generate the bipartite graph by setting the parameters of |U |, |V | and T as shown in Table <ref type="table">4</ref>. Note that we set the number of copy for each driver-type as 1, such that the total number of drivers arriving is the same as |U |. We further assume that all driver-types have the same arriving probability p u = 1/T for every u &#8712; U . Hence, with probability 1 -|U |/T , no drivers will arrive in each round t &#8712; [T ]. We generate the request-type arrival probabilities by choosing a random vector {q v } such that each q v is uniformly distributed over [0, 1] conditioning on v q v = 1. For each pair of u and v, we add an edge between them with probability 0.2. In the edge-weighted case, for each edge f = (u, v), we choose a value from [0, 1] uniformly at random and set it as w f . While in the LHS vertex-weighted case, for each driver-type u, we generate w u from [0, 1] uniformly at random, and then set w f = w u for all edge incident to u.</p><p>Algorithms. We implement all the algorithms analyzed in the article, namely, NADAP, GREEDY, ADAP, and SCALED. Additionally, we test one heuristic, denoted by UR, which selects one of the available drivers uniformly at random upon every arrival of rider. Observe that both GREEDY and UR are agnostic to the underlying LP.</p><p>Results and discussion. We run two types of experiments by varying either the total number of rounds T (i.e., the total number of requests' arrivals) or the total number of drivers's arrivals, while keep all other parameters fixed, as shown in Table <ref type="table">4</ref>. For each instance, we run all algorithms 100 independent trials and take the average as the final performance. The competitive ratios are computed as the ratio of the averaged performance to the optimal value of the corresponding LPs. <ref type="foot">5</ref>We also report the 95% confidence intervals to keep track of the robustness. Figure <ref type="figure">2</ref> shows that the proposed NADAP algorithm always stays above its theoretical lower bound of 0.295, as suggested in Theorem 5.1. This suggests the tightness of our theoretical analysis. Additionally, we see that SCALED is the clear winner in almost all the instances for the edgeweighted case except when T is extremely small, as shown in Figures <ref type="figure">2(a</ref>) and 2(c). Observe that when the total number of rounds (T ) is small, each arriving request has a limited number of drivers to choose from, since the number of drivers who have arrived and are compatible is small. In this case, the advantage of greedily matching an available driver outweighs the potential loss from a mismatch. However, when T increases and each arriving request has more options to choose from, the guidance from the LP becomes increasingly crucial, since it takes the future arrivals into consideration (in expectation). This also explains why ADAP beats GREEDY as T increases in the synthetic dataset. Figure <ref type="figure">2(b)</ref> shows that as the total number of drivers increases, the competitive ratios of GREEDY and UR (the lines for these two algorithms are overlapped) both increase. This is because more available drivers make it less necessary to optimize the matching process. Note that ADAP outperforms GREEDY in the synthetic dataset, but not the real one. This is partially due to that we have less driver-types in the real dataset compared with the synthetic. Thus, we have lower density for the driver arrivals and less need to reserve drivers as ADAP does.</p><p>Figure <ref type="figure">3</ref> shows that, for all tested instances, the competitive ratios achieved by ADAP and SCALED always stay above their corresponding theoretical lower bounds, i.e., 0.343 (Theorem 6.3) and 0.355 (Theorem 6.6), respectively. We notice that the three algorithms, GREEDY, SCALED and UR, all have a similar performance and outperform the rest two. This is expected, since the LHS vertex-weighted setting reduces variations among edge weights, which gives favor to LP-agnostic algorithms. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Matching Tasks and Workers under</head><note type="other">Known Arrival Distributions 6:21</note></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9">PROOFS OF KEY LEMMAS IN THE BIRTH-DEATH PROCESS</head><p>Consider a two-stage birth-death process {X t , Y t |t &#8712; [T ]} &#8746; {X T +1 } with a birth rate of 1, a death rate of q &#8805; 0, and a finite-time horizon T (denoted by TS-BDP(q)). Recall that &#916;(T ) is the (random) number of death events (i.e., Y t gets decreased by 1) in the T rounds, and &#954;(q) = lim T &#8594;&#8734; E[&#916;(T )]. The random process of TS-BDP(q) can be viewed equivalently as follows. First, we generate a random binary string S of length T such that each S(t) &#8764; Ber(1/T ) with t &#8712; [T ], i.e., each S(t) is an independent Bernoulli random variable with mean 1/T . We call S the "birth" string. Second, we apply a "death" process to the random birth string S = S &#8712; {0, 1} T as follows. </p><p>For a given T and S = S, we refer to the above death process applied to S with death rate q as DP(T , S, q).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9.1">Proof of Lemma 1</head><p>Lemma 1. (1) &#954;(0) = 0, (2) &#954; (0) = 1/e, where &#954; (0) is the first (right) derivative of &#954;(q) at q = 0. Proof. This Lemma is proved via the following two observations.</p><p>-When q = 0, for any given S = S &#8712; {0, 1} T , we have &#916; S (T ) = 0, since &#916;(T ) = 0 and thus &#954;(q) = 0. -First, note that we have &#954; (0) = lim q&#8594;0 &#954;(q) q . Additionally, when T &#8594; &#8734;, and S is the all-ones string, we have D &#8764; Pois(q). This implies that lim</p><p>Moreover, we have that lim</p><p>Thus, we have </p><p>Plugging the above expression back into Equation ( <ref type="formula">12</ref>), we have  <ref type="formula">3</ref>) &#954;(1 + 1 e-1 ) &#8804; 0.423. Proof. We prove a stronger version of the Lemma, where we consider an arbitrary given q &#8805; 0. Recall that &#916;(T ) is the expected number of "death" events (i.e., Y t decreases by 1) in the TS-BDP(1, q). Hence, &#954;(q) = lim </p><p>Using computer-aided proof, we have that F 2 (q) lim T &#8594;&#8734; F 2 (T , q) = e -q-1 e q (1 -2q) + e q+1 (q -1) + q + e -1 q -1 .</p><p>Finally, we have that Thus, from Equation ( <ref type="formula">13</ref>), we have F 1 (q) + F 2 (q) &#8804; &#954;(q) &#8804; F 1 (q) + F 2 (q) + Notice that |S | = t -1 and therefore from induction, we have that f a,S &#8804; 0 for all a and S &#8712; {0, 1} t . Therefore, we claim that Property (P1) holds for the case of t. Now, we show that Property (P2) holds for the case of t as well. We split the proof into two cases.</p><p>-Case 1: a &#8805; 2. In this case, we have that f a,Sf a-1,S = (1p) f a,Sf a-1,S + p f a-1,Sf a-2,S + f a-1,Sf a-2,S -(f a,Sf a-1,S )</p><p>From the inductive hypothesis for Property (P2) and Claim 3, we have that f a,S &#8805; f a-1,S . -Case 2: a = 1. In this case, we have f 1,Sf 0,S = (1p) f 1,Sf 0,S + 1 -(f 1,Sf 0,S ).</p><p>From the inductive hypothesis for Property (P2) and Claim 3, we have that f 1,S &#8805; f 0,S .</p><p>Following a similar analysis to above, we can show the case when S[0] = 1. Therefore, we establish our claim. Claim 3. For any S and a &#8805; 2, we have that (1) f a-1,Sf a-2,S -(f a,Sf a-1,S ) &#8805; 0 and (2) 1 -(f 1,Sf 0,S ) &#8805; 0.</p><p>Proof of Claim 3. Recall that f a,S with |S | = T denotes the expected number of death events during the generalized death process with a initial count set as a &#8805; 0 and a fixed birth string S &#8712; {0, 1} T . Consider a given death string S * &#8712; {0, 1} T , where S * (t) = 1 indicates a checking point. The two-stage birth-death process with an initial count a &#8805; 0, a given birth string S, and a given death string S * , denoted by TS-BDP(a, S, S * ), goes as follows: (i) Set C = a and D = 0 at t = 0. (ii) For each time t = 1, 2, . . . ,T : (ii-a) Update C &#8592; C + S(t); (ii-b) If S * (t) = o, then continue to t + 1 (if t &lt; T ) or stop (if t = T ); otherwise, update C &#8592; C -1 and D &#8592; 1, provided that C &#8805; 1. Let f a,S,S * be the value of D (the number of death event) at the end. It will suffice to show that the two inequalities hold for f a,S,S * on any fixed S * &#8712; {0, 1} T .</p><p>Consider the process TS-BDP(a, S, S * ). Let t a &#8712; [T ] be the first checking point such that C + S(t a ) = 0 and S * (t a ) = 1 and thus, we have no death event at t a in TS-BDP(a, S, S * ). Set t a = T + 1 if such t a doesnot exist in TS-BDP(a, S, S * ). When t a &#8804; T : We have in TS-BDP(a +1, S, S * ), C +S(t a ) = 1, and thus, we have have one extra death event at t a and there will be only one, since the two processes TS-BDP(a, S, S * ) and TS-BDP(a + 1, S, S * ) will be the same when t &lt; t a and t &gt; t a . When t a = T + 1 (t a does not exist), the two process will have the same set of updates all the time. This analysis suggests that f a+1,S,S * &#8804; f a,S,S * + 1 for all a &#8805; 0. Thus, we prove the second inequality (which is a = 0). Note that f a-1,S,S *f a-2,S,S * = 1 iff t a-2 &#8804; T and f a,S,S *f a-1,S,S * = 1 iff t a-1 &#8804; T . Since t a-1 &gt; t a-2 , we have that f a-1,S,S *f a-2,S,S * &#8805; f a,S,S *f a-1,S,S * . Thus, we are done.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="10">CONCLUSION AND FUTURE DIRECTIONS</head><p>In this article, we present a mathematical model for crowdsourcing platforms where the number of workers is far fewer than the number of tasks (e.g., UberEats delivering food to customers). We propose an LP-based non-adaptive algorithm for the edge-weighted case, and GREEDY and two LP-based adaptive algorithms for the unweighted and vertex-weighted cases, respectively. These algorithms, as demonstrated in this article, can be theoretically analyzed to prove lower bounds on their competitive ratios. On the hardness side, we establish both conditional (based on benchmark LP) and unconditional hardness results. Finally, we implement all the algorithms on two datasets (a real-world and a synthetic) and evaluate their practical performance numerically.</p><p>Our work suggests several future directions. The primary open question is to formally analyze the performance of GREEDY for both the edge-weighted and vertex-weighted cases. In particular, it would be interesting to prove that GREEDY is optimal for the vertex-weighted case, as observed in the experiments. Another open direction is to propose an improved benchmark LP that closely approximates the best offline (expected) solution.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>ACM Trans. Econ. Comput., Vol. 12, No. 2, Article 6. Publication date: June 2024.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>Here, we assume that each worker has the capacity to perform only one task. This is w.l.o.g., since if a worker type u can perform multiple tasks, we can split u into multiple copies each with a capacity to perform one task. This establishes the matching constraint for each worker.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_2"><p>This is a common assumption in the classical online bipartite matching under known distributions, see Reference<ref type="bibr">[15]</ref> for a discussion on the motivation and technical reasons for this assumption.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_3"><p>This is without loss of generality for theoretical competitive-ratio analysis, though it may increase computational complexity when applied in practice. ACM Trans. Econ. Comput., Vol. 12, No. 2, Article 6. Publication date: June 2024.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_4"><p>Let v be the task arriving at time t &#8712; [T ].Recall that E v be the set of edges incident to v in the input graph.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_5"><p>Sample an edge f = (u, v) &#8712; E v with probability x * f /r v . If worker u is available, then assign v to u; otherwise, skip v.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_6"><p>https://data.cityofchicago.org/Transportation/Transportation-Network-Providers-Trips/m6dm-c72p</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_7"><p>LP Equation (1) for the edge weighted case and LP Equation (6) for the LHS vertex-weighted case.</p></note>
		</body>
		</text>
</TEI>
