Improved and Parameterized Algorithms for Online Multi-Level Aggregation
Abstract
We study the online multi-level aggregation problem with deadlines (MLAP-D) introduced by Bienkowski, Böhm, Byrka, Chrobak, Dürr, Folwarczný, Jeż, Sgall, Thang, and Veselý (ESA 2016, OR 2020). In this problem, requests arrive over time at the vertices of a given vertex-weighted tree, and each request has a deadline that it must be served by. The cost of serving a request equals the cost of a path from the root to the vertex where the request resides. Instead of serving each request individually, requests can be aggregated and served by transmitting a subtree from the root that spans the vertices on which the requests reside, to potentially be more cost-effective. The aggregated cost is the weight of the transmission subtree. The goal of MLAP-D is to find an aggregation solution that minimizes the total cost while serving all requests. MLAP-D generalizes some well-studied problems including the TCP acknowledgment problem and the joint replenishment problem, and arises in natural scenarios such as multi-casting, sensor networks, and supply chain management.
We present improved and parameterized algorithms for MLAP-D. Our result is twofold. First, we present an -competitive algorithm where is the depth of the tree. Second, we present an -competitive algorithm where is the caterpillar dimension of the tree. Here, and where is the number of vertices in the given tree. The caterpillar dimension remains constant for rich but simple classes of trees, such as line graphs (), caterpillar graphs (), and lobster graphs (). To the best of our knowledge, this is the first online algorithm parameterized on a measure better than depth. The state-of-the-art online algorithms are -competitive by Buchbinder, Feldman, Naor, and Talmon (SODA 2017) and -competitive by Azar and Touitou (FOCS 2020). Our framework outperforms the state-of-the-art ratios when . Our memory-based algorithms extend transmission subtrees with a cost comparable to transmission subtrees used to serve previous requests. Our simple framework directly applies to trees with any structure and differs from the previous frameworks that reduce the problem to trees with specific structures.
Keywords and phrases:
Online Algorithms, Approximation Algorithms, Graph ProblemsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Online algorithmsEditor:
Pierre FraigniaudSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Aggregation optimization problems have a wide range of applications including supply chain management [2, 18, 22, 31], communication networks [19, 20], and multicasting [5, 13]. The common scenario of these applications is that individually resolving each request can be costly over time. Requests can be aggregated and served as batches under some aggregation constraints to lower service costs.
This work investigates the online multi-level aggregation problem with deadlines (MLAP-D) introduced in [7],111See also [8] for the journal version. which captures two characteristics of aggregation optimization problems. First, the service network is hierarchical and has a rooted tree structure. Second, the requests arrive in an online and dynamic fashion, and the decision-making is irrevocable in serving the requests.
1.1 Online Multi-level Aggregation with Deadlines
In MLAP-D, we are given an undirected tree rooted at . Each vertex is associated with a cost defined by . The tree and the vertex costs are given offline, in advance. A request is associated with a vertex and a time interval . Here, is the location of the request, and are the arrival time and the deadline of the request , respectively. The time starts at zero, and the continuous time model is used. At time , request arrives and the information of ( and ) is revealed. The requests appear in an online fashion, so at time , any information about requests with is not revealed. The output of an algorithm for MLAP-D is a collection of subtrees of rooted at at different times where . A request is served if during the time interval , a rooted subtree contains . It is possible that more than one request is served at the same vertex and the same time. Every request must be served before the deadline . It is noteworthy that we need not serve requests one at a time, as requests with overlapping time intervals can be served simultaneously as a batch, which can be more cost-effective. Let denote a solution for MLAP-D. The cost of is the total cost of the subtrees at different times. More specifically, let
Without loss of generality we assume that the arrival times and deadlines of all requests are distinct, as any instance can be converted to an instance of this form via an infinitesimal perturbation.
We note following [15] that the vertex-weighted formulation captures the edge-weighted problem as follows. First, we can assume that in the edge-weighted instance, only has one adjacent vertex. If has multiple adjacent vertices, we can separate the problem into multiple instances in which has one adjacent vertex. Combining the solution of these separated instances gives a solution of the original instance without any extra cost. Next, we can move the cost of any edge into the endpoint vertex further away from and finally remove and set the vertex adjacent to as the new root.
Given a problem instance , and a deterministic online algorithm ALG, we use to denote the cost of the solution to outputted by ALG. Using the classic online algorithm framework, we compare this cost to that of the offline optimal solution OPT on this instance, which we denote . An algorithm is -competitive if for all problem instances . For a fixed problem instance, we will simply use alg and opt to denote the costs.
MLAP-D was presented as a unification of several aggregation problems on trees [7]. We defer the discussions about these special case problems in Section 1.4. The first non-trivial online algorithm for MLAP-D was -competitive [7], which was later improved to the state-of-the-art -competitive algorithm [15]. Here, is the depth of the tree. There is a paper claiming a -competitive algorithm [26] which we cannot confirm the correctness of. When , the competitive ratio is 2 [10, 11], which remains the highest known lower bound on the competitive ratio of MLAP-D for trees of fixed depth. The problem is NP-hard [2] and APX-hard [10, 27]. Closing the competitive ratio gap between and has been an intriguing open problem.
1.2 Our Contributions
In this work, we present improved competitiveness for MLAP-D. Our result is twofold. First, we present an improved -competitive algorithm. Second, we present an -competitive algorithm where is the caterpillar dimension of the tree. Our competitive algorithms are based on a generic memory-based framework which judiciously constructs an online solution according to historical information.
1.2.1 Our -competitive algorithm
In Section 2, we show the following theorem by our memory-based framework.
Theorem 1.
There exists a -competitive algorithm for MLAP-D.
1.2.2 -competitiveness
To potentially improve the competitive ratio for MLAP-D, we consider a preferable measure over depth, namely, the caterpillar dimension introduced in [25]. The notion of heavy path decomposition was introduced in [30]. A heavy path decomposition of is a vertex-disjoint partition such that (1) each element in is a set of vertices that contains exactly one leaf vertex and forms a path in and (2) any two vertices in an element in must have an ancestor-descendant relationship. Recall that is the root vertex of . Consider a leaf vertex and the - path. Let denote the number of elements in intersecting the - path. The dimension of the decomposition is where denotes the set of leaf vertices in . The caterpillar dimension of is the minimum dimension among all heavy path decompositions. See Figure 1 for an example.
The caterpillar dimension remains constant for certain classes of trees, such as line graphs (), caterpillar graphs (), and lobster graphs (). The caterpillar dimension is at most and , and can be computed in polynomial time, as well as the corresponding heavy path decomposition [25].
In Section 3, we show the following theorem using our memory-based framework.
Theorem 2.
There exists a -competitive algorithm for MLAP-D.
1.3 High-level Technical Overview
1.3.1 The -competitive algorithm
In both the offline and online settings, the fundamental question when designing an algorithm for MLAP-D is to decide how many extra requests to aggregate into the service subtree, beyond the bare minimum required for a feasible solution. The biggest challenge one faces when developing a competitive algorithm is finding a way to lower-bound the performance of the optimum solution for a given instance. Most online algorithms for MLAP-D [9, 15] have been memoryless, in the sense that the algorithm’s decision making is only a function of the current unserved requests and locations, and the relative order of their deadlines. This discards information which can potentially be used to justify further aggregation of the service subtree at a given time . Our main algorithmic contribution is to incorporate memory naturally to inform the algorithm’s decision-making process. From a mathematical standpoint, memory is used in the amortized analysis to ensure that we can attribute the cost of our algorithm alg to the cost of the optimal solution opt without double-counting, which is crucial for establishing a competitive ratio.
Leaving out some technical details, we describe the motivations behind our algorithms as follows. When an active request reaches its deadline at time , we are forced to transmit a service subtree which contains , and so our algorithm begins by initializing the service subtree as the path -. Each in the - path adds a cost of to the algorithm’s solution, and therefore we want to delay making another service which includes until we are sure that opt itself must have outputted services with costs comparable to . Therefore, it is natural that each node receives a budget proportional to which is allocated towards adding extra services to the service subtree, and we call the nodes that the budget is spent on investments. The investment procedure is handled by a recursive function, where deeper nodes are the first to make their investments. The difficulty with this approach is that at different times, several different vertices may invest in the same node, which could lead to over-counting the costs associated with opt.
We use memory to tackle this issue. Before vertices on the path from - start spending their investment budget, they may also add their previous investments to the service subtree and recursively expand the transmission subtree, in a stage of the algorithm we call the expansion stage. This prevents nodes from reinvesting onto previous investments. The expansion stage is handled by a separate recursive process which occurs before the investment stage. It is then for these expansion vertices that we make investments. We decide whether to add those previous investments as follows. After a vertex has made its investment, we set a timer in memory to record when all of the investments we have made are anticipated to reach their deadline. If a vertex at time is an expansion vertex again after the timer has elapsed, then we can make inferences about comparable costs opt must have experienced based on our investments. In this case, we call an anticipated vertex at time . Otherwise, we can infer that there must have been a request that had appeared deeper than and expired before our timer elapsed, which we can also associate with a cost by opt. We call such vertices unanticipated at time .
We briefly provide a broad overview of the analysis. In Section 2.1, we express alg in terms of only the unanticipated expansion nodes. We use the standard amortized analysis techniques, in particular, an accounting argument to redistribute the costs in a top-down fashion based on proof by induction. Then in Section 2.2, we show that the unanticipated expansion nodes serve as a way to lower bound opt. This requires using a charging scheme that defines a one-to-one mapping between the cost accounted for the unanticipated expansion vertices and opt. As a consequence of these two results, we can bound the competitive ratio of the algorithm. When we first define the algorithm, we leave a parameter which controls the extent of aggregation unspecified. Selecting the optimal parameter results in an -competitive algorithm for MLAP-D.
1.3.2 The -competitive algorithm
Our -competitive algorithm utilizes the framework developed by the -competitive algorithm. The main difference is the use of the heavy path decomposition structure while assigning memory-based investment budgets to vertices. Instead of assigning the budget for every vertex to be proportional to its cost , we allow one vertex per path in to have a potentially much larger budget.
Following the same strategy as before, to prove the competitiveness of our algorithm, we show that (1) the cost alg is comparable with the cost of the unanticipated expansion vertices and (2) we can relate the costs of unanticipated expansion vertices to opt directly via a charging scheme. The charging scheme is identical to our -competitive algorithm. The main change to the analysis is to judiciously modify the redistribution accounting argument for the cost based on a proof by induction to show (1). Ultimately, by selecting the optimal parameters for the two different investment budgets, we obtain an -competitive algorithm for MLAP-D.
1.4 Related Work
1.4.1 Online multi-level aggregation with waiting cost
The most related variant of MLAP-D is the setting that each request has a waiting cost instead of a strict deadline. The objective is to minimize the sum of the total service and waiting costs. This problem is termed the online multi-level aggregation problem (MLAP). For general MLAP, an algorithm with competitive ratio was presented in [7] and later improved to [3]. When , MLAP is also called the TCP acknowledgment problem (TCP-AP). The optimal competitive ratio for TCP-AP is 2 for deterministic algorithms [19] and for randomized algorithms [16, 20]. Interestingly, TCP-AP is equivalent to the lot sizing problem [31], which has been extensively studied in the operations research community. When , MLAP is also called the joint replenishment problem (JRP). The state-of-the-art competitive ratio for JRP is 3 [17] and the current best lower bound is 2.754 [11] which improves an earlier bound of 2.64 [17]. When , i.e., the input tree is a line, the upper bound for the competitive ratio is 5 [12] which improves an earlier bound of 8 [14], and the lower bound is 4 [7] which improves an earlier bound of [12]. [4] introduced a unifying framework for problems with delay and deadlines admitting a competitive ratio of for MLAP. A slight variant of MLAP was presented in [21] where the competitive ratio is logarithmic in the cost of the aggregation tree. We refer the reader to [9] for a concise summary for MLAP and MLAP-D.
1.4.2 Offline multi-level aggregation
In offline MLAP-D, the information of all requests, including the location, the arrival time, and the deadline (also the waiting cost for offline MLAP), is given in advance. The offline problem currently has significantly better approximation results than the online problem. For offline MLAP-D, the current best approximation ratio is 2 [6, 7]. For offline MLAP, the current best approximation ratio is [28] by adapting an algorithm in [24] for the multi-stage assembly problem. For offline TCP-AP, there is an optimal dynamic programming algorithm [1]. Offline JRP is NP-hard [2] and APX-hard [10, 27] and the current best approximation ratio is 1.791 [11] improving the previous ratios of 1.8 [23] and 2 [24].
1.4.3 Approximation algorithms parameterized on caterpillar dimension
Quite surprisingly, the only algorithm parameterized on the caterpillar dimension that we are aware of is the advice complexity of the online -server problem on trees [29]. More specifically, to obtain optimal solutions for online -server on trees, it is sufficient to use bits of advice per request. We believe that the caterpillar dimension is a natural measure to evaluate the performance of approximation and online algorithms for challenging problems on trees, especially for problems like MLAP-D where the state-of-the-art competitive ratio is linear in the tree depth.
2 The -competitive Algorithm
In this section, we prove Theorem 1.
We describe the components of Algorithm 1. Once a request reaches its deadline, the procedure OnDeadline is called in order to construct a service subtree to serve . During this procedure, vertices are added to a service subtree in two separate stages, which we call the expansion stage and the investment stage. Vertices added during the procedure ExpansionStage are added to the set and those added during InvestmentStage are added to , and the final transmission tree is taken as the subtree induced on the disjoint union . For each node , the algorithm maintains three pieces of information which are used in both stages: , , and where is the subtree of rooted at which includes all the vertices and edges under . These variables are initialized in the Initialization procedure at the beginning of the problem instance as , and . We later describe how this stored information is used.
We first describe the expansion stage. When an unserved request on reaches its deadline at time , we are forced to output a service subtree containing . In this case, we say that the request is critical. We start by adding the vertices on the path from to to . From here, the algorithm recursively expands the transmission subtree by adding the vertices which are in to if , starting with and then repeating this on its children in . Observe for the first service occurring at that none of the sets are added to , as initially.
We now describe the investment stage. Figuratively speaking, each vertex has a price which the algorithm must invest into before can be added to . We keep track of the remaining cost for a vertex using the variable ; starts at , is decreased with every investment, and is then reset to after has been added to . For each node (starting with the deepest nodes and working upwards), we allocate a budget proportional to for the algorithm to put towards investing into vertices, and once , we add to . The bookkeeping for the spending of budget is done within the Invest procedure. The allocated budget for is , where for our competitive analysis, we find that the best competitive guarantee is obtained when . An important property of the algorithm is that the budget of is only spent on vertices deeper than , and it invests towards the requests in non-decreasing order of deadline. The algorithm stores the set of vertices which invested in into the variable . Once a given node has spent its budget, it sets as the earliest deadline among the remaining unserved requests beneath , or to if there are no such active requests. Therefore, if the next time that is added during the expansion stage occurs at time , then if , the algorithm will also add during the expansion stage.
The following terms and notations will be used throughout the analysis.
Definition 3 (Expansion vertices, Investment vertices).
Consider the transmission subtree transmitted by Algorithm 1 at time . A vertex is an expansion vertex at time if , and an investment vertex at time if . The set of expansion vertices at time will be denoted , and the set of investment vertices at time will be denoted .
As the variables and change value within a single timestep, we make the following definition to refer to the values at specific times unambiguously.
Definition 4 ().
If Algorithm 1 transmits a service subtree at time , we define (respectively, ) to be the value of before (respectively, after) the function call OnDeadline at . and are defined analogously.
Each set of expansion vertices is partitioned into two disjoint sets.
Definition 5 (Anticipated vertices, unanticipated vertices).
We call a vertex anticipated at time if . We call a vertex unanticipated at time if it is an expansion vertex at time and . We denote the set of vertices anticipated at time as , and those which are unanticipated as , so that is a disjoint union.
Our analysis will be split into two parts. First, we express alg solely in terms of the nodes that are unanticipated. The following lemma is proved in Section 2.1.
Lemma 6.
In Section 2.2, we use a charging argument to show that the costs of unanticipated expansion vertices across time can be charged directly to OPT without double-charging. We prove the following.
Lemma 7.
Combining Lemmas 6 and 7 implies
The best choice is which implies Theorem 1. The proof is provided in the full version.
Before proceeding with the proofs for Lemmas 6 and 7, we highlight some important properties of Algorithm 1, which we will refer to throughout the analysis. We give brief justifications of each after stating them.
Observation 8.
For all , the subgraph of induced by is a subtree rooted at .
Observation 8 follows because is added to during OnDeadline, and whenever we add to , we add the entire - path where already, which maintains connectivity of .
Observation 9.
For all and , we have .
Observation 9 holds at because in Initialization, is set to . The variable only changes at times when . Then, during a call at , we only invest in vertices in . Additionally, could not invest into itself as already, and hence at all moments of the algorithm.
Observation 10.
For all , if and , then all ancestors of are in .
Observation 10 is justified as follows. Consider and . Then must have been called for at time . Due to line 29, was the first vertex on - path not in , meaning that all ancestors of must be in already.
Observation 11.
For all , if and is an ancestor of with , then .
Observation 11 is justified as follows. Assume for now that , so where has the earliest deadline among unserved requests in after the investment stage at has completed at . Observe that the investment stage for occurs before the investment stage for , as is an ancestor of . Therefore, when the investment stage for begins, the earliest deadline among unserved request in has a deadline at earliest . Because the investment stage invests towards requests in non-decreasing order of deadline, it follows that if , then at some point the request in with earliest deadline was located at a vertex in . But this implies that at the conclusion of the investment stage for that all requests in have deadline at earliest . Therefore, would be set no earlier than , and therefore . For the other case, if , then after the investment stage for there were no requests in , and so is impossible.
2.1 Upper-bounding ALG
In this section, we prove Lemma 6.
Observe that an investment vertex at time is only added to if a total of is invested by expansion vertices to reduce the variable to zero. As each expansion vertex can invest no more than , we obtain
This yields
| (1) |
Now that we have expressed the cost solely in terms of the expansion vertices, we wish to express the cost solely in unanticipated expansion vertices, as these costs can then be directly associated with opt in Section 2.2. To do so, we must move the costs of anticipated nodes to those which were unanticipated. We first show the following two lemmas.
Lemma 12.
Let be an anticipated vertex at time , then must have been an expansion vertex at a time , in other words for some .
Proof.
Suppose . By definition this means that , and hence clearly . As the variable is originally assigned to in the Initialization of the algorithm, it follows that must have had its value reassigned prior to . As the algorithm’s variable is only reassigned at times for which is an expansion vertex, we therefore know that must have been an expansion vertex at some time before .
Lemma 13.
Let be an anticipated node at time , and let be the latest time before that was an expansion vertex (see Lemma 12). Let be the budget assigned to in the investment stage for . Then .
Proof.
Suppose . According to Lemma 12, we know that must have been an expansion vertex at a time earlier than . Let be the most recent time before for which .
As the variable is not changed between and , we know that , and hence also. Therefore, we know that after leaving the while loop on line 27 within the call at time , it must be the case that there were still pending requests on vertices in , or else would have been set to in line 31. Thus, it must instead be the case that the condition of the while loop failed, and so the entirety of the budget assigned to at time was spent. Observe that each call of will decrease the budget by , but will add to , where . Thus the amount by which the budget decreases is always at most the amount by which increases. As during the iteration at time , must have decreased by at least , it follows that must have increased by at least during the investment stage. As is set to at the beginning of the investment stage, we know initially, and thus if increases by at least during the investment phase, we know . Observing that finishes the proof.
We can now express the cost of all expansion nodes only in terms of the unanticipated nodes.
Lemma 14.
For any , we have
Proof.
We proceed using the accounting method of amortized analysis. For a fixed , consider placing coins of value on each anticipated vertex . Thus the total cost initially on the structure equals the left-hand side of the inequality stated by the Lemma. We will redistribute the costs which are on anticipated nodes, to obtain a rearrangement of costs which is upper-bounded by the larger quantity of the lemma.
We start with the root . We process as follows. If is an unanticipated node of , we do not move the cost from – we will only move the costs off of anticipated nodes. Otherwise if is an anticipated node, then by Lemma 13, . If is anticipated, then we know that all the nodes in were added to , and so we can reallocate this cost of from as an additional cost of at most to each .
We descend the vertices in and repeat this process: we call a expansion node “ready to redistribute” if all of its ancestors have been processed. To process an unanticipated , we do nothing and the cost remains on . For any anticipated currently allocated a cost of , we process by reallocating this as an additional cost of to each node in . Recall by Observation 9 that will only invest into vertices in , and so these costs are strictly pushed to deeper vertices.
Claim 15.
When a vertex at depth is ready to redistribute but has not yet been processed, the allocated costs on vertices is at most .
Proof.
We proceed by induction on . The base case of is trivial, as this corresponds to the fact that all vertices in have an allocated cost of before the root is processed.
Assume inductively that the claim has held true up to a depth , and a vertex at depth is ready to redistribute. This means that when the parent of , call it , was ready to redistribute, all nodes had allocated at most . If is unanticipated, then the cost on is not moved, so none of the vertices in receive any additional costs. This would imply that the costs on vertices in would still be at most , and so the claim will continue to hold after is processed. Otherwise, consider what would occur when was processed if was anticipated. An additional cost of at most would be added to all vertices in (recall that the cost of is reallocated as an additional cost of to each node ). Therefore immediately following the processing of , each would have had a cost of at most . At this point, would be ready to redistribute, and as is a subtree of , the inductive step is finished and we have proven Claim 15.
This redistribution process must terminate eventually, as the tree has a bounded depth of . Observe that this redistribution cost will leave anticipated vertices of with no costs, while an unanticipated vertex in at depth would be left with a cost of . As we have at no point decreased the total cost on the structure , the inequality stated by the lemma follows.
2.2 Charging Scheme against OPT
In this section, we prove Lemma 7.
We accomplish this using a charging argument to map the costs of unanticipated expansion vertices at times to OPT. However, before we can do so, we need to further characterize the unanticipated expansion nodes, which we accomplish in the following lemma.
Lemma 16.
Let denote the pending request which triggered OnDeadline at . Then for any , either is on the - path, or for some .
Proof.
Observe that there are only 2 cases in Algorithm 1 for which a vertex can be added to ; (1) during OnDeadline, if is on the path - and (2) during , if is on the path - where and . Case (1) clearly satisfies the lemma, so we will now assume the second case, that lies on the path - where and . As the lemma is obvious for , we continue under the assumption that .
By Lemma 12, there must be a time such that , let be the most recent such time, and observe that and . As , by Observation 10 we know that . We now make an important claim.
Claim 17.
For any on the path - (where , , and , and defined as before) if then , and .
Proof.
By Observation 11, we have that , as is on the - path. We know that , and we also know that , because is on the - path where , and forms a subtree due to Observation 8. Further observe that it is impossible for to be anticipated at any time with , because this would necessitate that would be anticipated at time by Observation 8, which would contradict the fact that is the latest time before for which is anticipated. With this observation, it follows that . Putting this together, we have that , where we used the fact that . Hence, by definition, proving the claim.
Earlier we found that . Due to Claim 17, we now know that as otherwise , which would contradict the fact that is an unanticipated vertex at time .
Thus , meaning there must have been some such that with was called at time and resulted in the addition of into , and so . Observe that by the time was called, we would have needed all vertices on the path - already present in , and hence must have invested in before was called. Thus, must be at least as deep as . must also be an ancestor of in order for to have invested into by Observation 9, and hence is on the path -, and hence also on the path -. Therefore Claim 17 applies, meaning . Finally, , finishing the proof.
We are now ready to define the charging scheme.
2.2.1 The Charging Scheme
Let be an unanticipated expansion vertex at time . Let be the request which triggered the creation of a service at time , so . Using Lemma 16, we know that is either on the - path, or for . We thus split the charging scheme into two cases:
-
Case 1: is on the path -. Then, OPT must have served within the time . OPT’s service to must have also included , and so we charge the cost of against any of these costs OPT incurs for including in its service history within .
-
Case 2: is not on the path -, and for some . If there are multiple such , we simply fix one arbitrarily for each unanticipated . By Lemma 12 we know that must have been an expansion vertex at a time before , so suppose that this occurred most recently at . Then we would have that . As , we have . Now, as and ALG processes requests in in non-decreasing deadline, it follows that while ALG was investing the budget on at time , there must have been an unserved request on a vertex such that was on the path -. Because is determined as the next pending task in not yet in , we know that . Linking this together, we find that .
Thus OPT must have served within the time , which is a subset of by the above inequality. Such a service must have included , and thus we charge to the associated cost of incurred by OPT during the timeframe .
In both Case 1 and Case 2, we find ourselves charging to a portion of OPT’s service history within which serves where is deeper than . In order to unify these two cases, we call this particular the request associated with unanticipated node at time .
Using the above charging scheme, the cost of any unanticipated vertex at a time is mapped to a cost in opt. To establish Lemma 7, we are left with showing that this mapping is one-to-one, i.e., no one portion of opt is charged to more than once.
Lemma 18.
The charging scheme for ALG consists of unique charges against OPT.
Proof.
Seeking a contradiction, suppose instead that two distinct charges for a vertex and coincide, say at times and where . We will do a case analysis based on whether the charge at is Case 1 or Case 2. Suppose that and are the requests associated (as defined above) to at times and respectively. The charges to OPT’s history must have taken place between times and . Thus, they could only coincide if (utilizing our assumption of distinct arrivals and deadlines for distinct services). In words, this means was present when was an unanticipated expansion vertex at time . This leads to the following observation used throughout the proof.
Observation 19.
For any , if was not served before , we must have .
We split the remainder of the proof into the two cases depending on the type of charging for which occurs at time . We will show that both lead to contradiction.
Case 1.
In this scenario, is on the critical path due to the expiry of , meaning was not served before time , and so satisfies the conditions required for Observation 19. Thus . As , this would imply which would contradict the fact that .
Case 2.
This means at time , for some ancestor of , that . Recall by definition this means that the last time was an expansion node prior to , at time , must have been active where . We know that , as and is a subtree by Observation 8. Therefore it must be true that , as is defined as the latest time before that was an expansion vertex. More strictly, as it is impossible for to invest into at time because , i.e it is an expansion vertex at time . Hence we know .
We know that must not have been served before time , because it was this service which caused to invest into at time , by definition of Case 2 charge. Hence by Observation 19, we know that as . Observe further that could not have been an expansion vertex at time , otherwise would not have invested into at . Therefore the variable would not be affected at time , meaning and thus still. It is impossible for to be an expansion vertex within the time interval , because this would imply that would be an expansion vertex within by Observation 8. Thus it follows that the variable is not changed in the interval , and so .
However, from the discussion in the Case 2 charge definition, we already know that , and so . This contradicts the fact that , thereby finishing the proof.
3 The -competitive Algorithm
In this section, we prove Theorem 2.
We show that Algorithm 1 can be modified in a way which results in the competitive ratio being bounded above by a linear function of the caterpillar dimension of . Throughout this section, we assume that we are given a heavy path decomposition for with dimension .
This section builds upon the work from Section 2, and thus we assume familiarity with Algorithm 1 and the notations and definitions introduced previously. We also introduce some new pieces of notation.
Definition 20 ( and ).
Let be a vertex in . Let denote the path which lies on in . Let be the intersection of the path and the path from to .
The motivation behind Algorithm 2 is that if we wish for the competitive ratio to not be parameterized by the depth of , we cannot follow the accounting method of Lemma 14, because this explicitly descends the tree node-by-node and invariably leads to a function of . If we wish to parameterize instead in terms of , then one would need the accounting method to be performed path-by-path instead.
Algorithm 2 accomplishes this aim by allowing the deepest expansion node at time on each path , which we will denote , to potentially have a much larger budget to spend during the investment stage in comparison to Algorithm 1. Instead of the budget for being for some as was the case in Algorithm 1, for these nodes the budget at time becomes . Our algorithm will specified in terms of two parameters, and , and we will choose their values to optimize our bound on the competitive ratio during the analysis. Additionally, is made to be the only vertex on which can make investments on vertices in . If is not the deepest expansion node on , and if the next unserved request is within , then we stop making investments for , which is done in line 19. The idea is that because has a disproportionally large budget, we can simply use the investments from for as well.
Definition 21 (, Disproportional vertices, recently disproportional vertices).
We define to be the deepest node in , where . We say a vertex is disproportional at time if . That is, is the deepest expansion vertex at time in . Let , and let be the latest time before that was an expansion vertex (which must exist due to Lemma 12). Then we say was recently disproportional at time if was disproportional at time , i.e .
Similar to the proof of Theorem 1, our analysis is split into two parts. First, we express alg in terms of the unanticipated nodes. The following lemma is proven in the full version.
Lemma 22.
Second, we use the same charging argument for Lemma 7 to show that the costs of unanticipated expansion vertices across time can be charged directly to OPT without double-charging. Combining Lemmas 22 and 7 implies
The best choice is and which implies Theorem 2. The proof is provided in the full version.
Crucially, Algorithm 2 has built upon Algorithm 1 using an approach which allows the key lower bound on opt provided by Lemma 7 to continue to hold. To see why the analysis of Section 2.2 can be applied identically to Algorithm 2, observe that Observations 8, 9, 10 and 11 are also true for Algorithm 2. Then, because Section 2.2 only utilizes these observations rather than any features particular to either algorithm, we see that Lemma 7 provides a robust lower bound for opt. Therefore, Algorithm 1 can be used as a generic framework for MLAP-D algorithms.
4 Conclusion
This paper developed a memory-based framework for online MLAP-D, which allowed for a direct analysis in the case of general trees, and improved on competitiveness results. To show the framework was flexible, we demonstrated that it could be modified to provide competitive ratios linear in caterpillar dimension, a measure which unifies several results for special classes of graph which had been considered previously for MLAP-D. Future research could extend the memory-based framework to the problem of MLAP with delay costs, which would likely tighten the upper bounds of competitive ratios for this problem. The framework could also be modified to work for other special tree classes. The most notable open problem in this area remains the wide asymptotic gap for the competitive ratio, where the best-known lower bound remains constant.
References
- [1] Alok Aggarwal and James K Park. Improved algorithms for economic lot size problems. Operations research, 41(3):549–571, 1993. doi:10.1287/OPRE.41.3.549.
- [2] Esther Arkin, Dev Joneja, and Robin Roundy. Computational complexity of uncapacitated multi-echelon production planning problems. Operations research letters, 8(2):61–66, 1989.
- [3] Yossi Azar and Noam Touitou. General framework for metric optimization problems with delay or with deadlines. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 60–71. IEEE, 2019. doi:10.1109/FOCS.2019.00013.
- [4] Yossi Azar and Noam Touitou. Beyond tree embeddings–a deterministic framework for network design with deadlines or delay. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 1368–1379. IEEE, 2020. doi:10.1109/FOCS46700.2020.00129.
- [5] BR Badrinath. Gathercast: The design and implementation of a programmable aggregation mechanism for the internet. In Proceedings Ninth International Conference on Computer Communications and Networks (Cat. No. 00EX440), pages 206–213. IEEE, 2000.
- [6] Luca Becchetti, Alberto Marchetti-Spaccamela, Andrea Vitaletti, Peter Korteweg, Martin Skutella, and Leen Stougie. Latency-constrained aggregation in sensor networks. ACM Transactions on Algorithms (TALG), 6(1):1–20, 2009. doi:10.1145/1644015.1644028.
- [7] Marcin Bienkowski, Martin Böhm, Jaroslaw Byrka, Marek Chrobak, Christoph Dürr, Lukáš Folwarcznỳ, Łukasz Jeż, Jiri Sgall, Kim Thang Nguyen, and Pavel Veselỳ. Online algorithms for multi-level aggregation. In The 24th European Symposium on Algorithms (ESA), 2016.
- [8] Marcin Bienkowski, Martin Böhm, Jaroslaw Byrka, Marek Chrobak, Christoph Dürr, Lukáš Folwarcznỳ, Łukasz Jeż, Jiří Sgall, Nguyen Kim Thang, and Pavel Veselỳ. Online algorithms for multilevel aggregation. Operations Research, 68(1):214–232, 2020. doi:10.1287/OPRE.2019.1847.
- [9] Marcin Bienkowski, Martin Böhm, Jaroslaw Byrka, Marek Chrobak, Christoph Dürr, Lukáš Folwarcznỳ, Łukasz Jeż, Jiří Sgall, Nguyen Kim Thang, and Pavel Veselỳ. New results on multi-level aggregation. Theoretical Computer Science, 861:133–143, 2021. doi:10.1016/J.TCS.2021.02.016.
- [10] Marcin Bienkowski, Jarosław Byrka, Marek Chrobak, Neil Dobbs, Tomasz Nowicki, Maxim Sviridenko, Grzegorz Świrszcz, and Neal E Young. Approximation algorithms for the joint replenishment problem with deadlines. Journal of Scheduling, 18(6):545–560, 2015. doi:10.1007/S10951-014-0392-Y.
- [11] Marcin Bienkowski, Jaroslaw Byrka, Marek Chrobak, Łukasz Jeż, Dorian Nogneng, and Jiří Sgall. Better approximation bounds for the joint replenishment problem. In Proceedings of the twenty-fifth annual ACM-SIAM symposium on discrete algorithms, pages 42–54. SIAM, 2014.
- [12] Marcin Bienkowski, Jaroslaw Byrka, Marek Chrobak, Łukasz Jeż, Jiří Sgall, and Grzegorz Stachowiak. Online control message aggregation in chain networks. In Workshop on Algorithms and Data Structures, pages 133–145. Springer, 2013.
- [13] Edward Bortnikov and Reuven Cohen. Schemes for scheduling control messages by hierarchical protocols. Computer Communications, 24(7-8):731–743, 2001. doi:10.1016/S0140-3664(00)00276-0.
- [14] Carlos Fisch Brito, Elias Koutsoupias, and Shailesh Vaya. Competitive analysis of organization networks or multicast acknowledgment: How much to wait? Algorithmica, 64:584–605, 2012. doi:10.1007/S00453-011-9567-5.
- [15] Niv Buchbinder, Moran Feldman, Joseph Naor, and Ohad Talmon. O (depth)-competitive algorithm for online multi-level aggregation. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1235–1244. SIAM, 2017.
- [16] Niv Buchbinder, Kamal Jain, and Joseph Naor. Online primal-dual algorithms for maximizing ad-auctions revenue. In European Symposium on Algorithms, pages 253–264. Springer, 2007. doi:10.1007/978-3-540-75520-3_24.
- [17] Niv Buchbinder, Tracy Kimbrel, Retsef Levi, Konstantin Makarychev, and Maxim Sviridenko. Online make-to-order joint replenishment model: Primal-dual competitive algorithms. Operations Research, 61(4):1014–1029, 2013. doi:10.1287/OPRE.2013.1188.
- [18] Wallace B Crowston and Michael H Wagner. Dynamic lot size models for multi-stage assembly systems. Management Science, 20(1):14–21, 1973.
- [19] Daniel R Dooly, Sally A Goldman, and Stephen D Scott. Tcp dynamic acknowledgment delay (extended abstract) theory and practice. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 389–398, 1998.
- [20] Anna R Karlin, Claire Kenyon, and Dana Randall. Dynamic tcp acknowledgment and other stories about . Algorithmica, 36:209–224, 2003.
- [21] Sanjeev Khanna, Joseph Seffi Naor, and Dan Raz. Control message aggregation in group communication protocols. In Automata, Languages and Programming: 29th International Colloquium, ICALP 2002 Málaga, Spain, July 8–13, 2002 Proceedings 29, pages 135–146. Springer, 2002.
- [22] Alf Kimms. Multi-level lot sizing and scheduling: methods for capacitated, dynamic, and deterministic models. Springer Science & Business Media, 2012.
- [23] Retsef Levi, Robin Roundy, David Shmoys, and Maxim Sviridenko. A constant approximation algorithm for the one-warehouse multiretailer problem. Management Science, 54(4):763–776, 2008. doi:10.1287/MNSC.1070.0781.
- [24] Retsef Levi, Robin O Roundy, and David B Shmoys. Primal-dual algorithms for deterministic inventory problems. Mathematics of Operations Research, 31(2):267–285, 2006. doi:10.1287/MOOR.1050.0178.
- [25] Jiří Matoušek. On embedding trees into uniformly convex banach spaces. Israel Journal of Mathematics, 114(1):221–237, 1999.
- [26] Jeremy McMahan. A -competitive algorithm for the multilevel aggregation problem with deadlines, 2021. arXiv:2108.04422.
- [27] Tim Nonner and Alexander Souza. Approximating the joint replenishment problem with deadlines. Discrete Mathematics, Algorithms and Applications, 1(02):153–173, 2009. doi:10.1142/S1793830909000130.
- [28] L. L. C. Pedrosa. Private communication reported in [7], 2013.
- [29] Marc P Renault and Adi Rosén. On online algorithms with advice for the k-server problem. Theory of Computing Systems, 56(1):3–21, 2015. doi:10.1007/S00224-012-9434-Z.
- [30] DD SLEATOR and RE TARJAN. A data structure for dynamic trees. Journal of computer and system sciences (Print), 26(3):362–391, 1983. doi:10.1016/0022-0000(83)90006-5.
- [31] Harvey M Wagner and Thomson M Whitin. Dynamic version of the economic lot size model. Management science, 5(1):89–96, 1958.
