$O(\mbox{depth})$-Competitive Algorithm for Online Multi-level Aggregation
Niv Buchbinder, Moran Feldman, Joseph Naor, Ohad Talmon

TL;DR
This paper introduces an online algorithm for multi-level aggregation in weighted trees that achieves an O(D)-competitive ratio, significantly improving previous algorithms with much higher competitive bounds.
Contribution
The paper presents the first O(D)-competitive online algorithm for multi-level aggregation, improving upon prior algorithms with exponential competitive ratios.
Findings
Achieves an O(D)-competitive ratio for the problem.
Improves upon the previous D^2 2^D-competitive algorithm.
Applicable to scenarios like multicasting and sensor networks.
Abstract
We consider a multi-level aggregation problem in a weighted rooted tree, studied recently by Bienkowski et al. (2015). In this problem requests arrive over time at the nodes of the tree, and each request specifies a deadline. A request is served by sending it to the root before its deadline at a cost equal to the weight of the path from the node in which it resides to the root. However, requests from different nodes can be aggregated, and served together, so as to save on cost. The cost of serving an aggregated set of requests is equal to the weight of the subtree spanning the nodes in which the requests reside. Thus, the problem is to find a competitive online aggregation algorithm that minimizes the total cost of the aggregated requests. This problem arises naturally in many scenarios, including multicasting, supply-chain management and sensor networks. It is also related to the well…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOptimization and Search Problems · Facility Location and Emergency Management · Vehicle Routing Optimization Methods
\forLoop
126calBbCounter
-Competitive Algorithm for Online Multi-level Aggregation
Niv Buchbinder Department of Statistics and Operations Research, School of Mathematical Sciences, Tel Aviv university, Israel. Email: [email protected]. Research is supported by ISF grant 1585/15 and US-Israel BSF grant 2014414.
Moran Feldman Department of Mathematics and Computer Science, The Open University of Israel. Email: [email protected]. Research supported in part by ISF grant 1357/16.
Joseph (Seffi) Naor Computer Science Department, Technion, Israel. Email: [email protected]. Research is supported by ISF grant 1585/15 and US-Israel BSF grant 2014414.
Ohad Talmon Computer Science Department, Technion, Israel. Email: [email protected]. Research is supported by ISF grant 1585/15 and US-Israel BSF grant 2014414.
Abstract
We consider a multi-level aggregation problem in a weighted rooted tree, studied recently by Bienkowski et al. [7]. In this problem requests arrive over time at the nodes of the tree, and each request specifies a deadline. A request is served by sending it to the root before its deadline at a cost equal to the weight of the path from the node in which it resides to the root. However, requests from different nodes can be aggregated, and served together, so as to save on cost. The cost of serving an aggregated set of requests is equal to the weight of the subtree spanning the nodes in which the requests reside. Thus, the problem is to find a competitive online aggregation algorithm that minimizes the total cost of the aggregated requests. This problem arises naturally in many scenarios, including multicasting, supply-chain management and sensor networks. It is also related to the well studied TCP-acknowledgement problem and the online joint replenishment problem.
We present an online -competitive algorithm for the problem, where is the depth, or number of levels, of the aggregation tree. This result improves upon the -competitive algorithm obtained recently by Bienkowski et al. [7].
Keywords: online algorithms, competitive analysis, aggregation of requests
1 Introduction
Aggregation of tasks is a fundamental tool in optimization, utilized in various areas. Suppose that there is a set of requests that need to be served, where serving several requests together costs less than serving each request individually. There are aggregation constraints on the request system that specify which sets of requests can be jointly served, together with a function that determines the cost of serving any aggregated set of requests. For example, serving all requests together might be impossible or very costly. In general, various cost functions and aggregation constraints give rise to a large family of interesting problems.
Scenarios where aggregation is beneficial are common in supply-chain management, in which producing (or delivering) several demands together can be cheaper than producing them separately [15, 20, 1, 27]. Another example is aggregating control packets in communication networks (e.g., sensor networks) [16, 2, 11, 18]. In this setting, transmitting together several packets going to a joint destination is, again, cheaper than transmitting each packet separately. Aggregation problems were studied extensively for many settings, both in the offline case, in which all requests are known a-priori, and in the online case in which requests arrive over time.
We study a very general online aggregation setting, considered recently by [7], and known as the Online Multi-level Aggregation Problem with Deadlines. In this problem requests arrive over time, and each request specifies a deadline for serving it. Thus, each request is associated with a time interval in which it needs to be served. At any point of time , the online algorithm is only aware of requests whose arrival time is no later than .
There is a tree with non-negative edge costs rooted at a node , and each request is assumed to reside at some tree node. The cost of serving a single request is equal to the cost of the tree path from the node where it resides to the root . Requests whose intervals intersect in time can be aggregated and served together. The aggregate cost of a set of requests is equal to the cost of the subtree rooted at and spanning the nodes where these requests reside. The goal is to minimize the total service cost, i.e., the sum of the costs of the subtrees used for serving the requests.
The online multi-level aggregation problem with deadlines was studied recently by Bienkowski et al. [7] who designed a -competitive algorithm for it, where denotes the depth of the tree. We note that this bound is quite far from the best known lower bound on the competitive factor for the problem which is only [9] (see Section 1.2 for more details). In the offline case, the problem is known to be NP-hard (and APX-hard) even when the aggregation tree is of depth [1, 25, 8]. Currently, the best (offline) approximation factor known for the problem is 2 [6, 7].
1.1 Our Results.
Our main result is a competitive algorithm for the Online Multi-level Aggregation Problem with Deadlines. We have already mentioned that there is a large gap between the lower bound of on the competitive ratio known and the current best upper bound of [7], which is exponential in the depth of the aggregation tree. We obtain a substantial improvement over the upper bound of [7].
Theorem 1.1
There exists an -competitive algorithm for the Online Multi-level Aggregation Problem with Deadlines.
Our Techniques.
Standard reductions allow us to assume that the costs are associated with the tree nodes rather than with the edges. To simplify the presentation, we first present our result for a special kind of aggregation tree known as 3-decreasing trees. In a -decreasing tree, as we traverse any path from the root to a leaf, the edge costs go down by a factor of at least at each step of the path. The idea of our algorithm for -decreasing trees is simple and intuitive. Suppose there is a request that has reached its deadline (and, thus, must be served). The algorithm recursively aggregates requests into a subtree (which eventually will be served), starting from the root of the tree. The aggregation process has to balance between two conflicting objectives. On the one hand, it is beneficial to aggregate as many requests as possible, especially those approaching their deadline. On the other hand, it is necessary to bound the cost of the aggregate subtree, so that it can be related to the optimal solution. We balance between the two by recursively providing budgets to tree nodes that are added to the aggregate subtree. A budget provided to node (that has joined the subtree) can be used to aggregate an additional (yet restricted) set of nodes into the subtree rooted at . These nodes are then also given budgets, which can be used to aggregate additional nodes (recursively).
The analysis of the algorithm is performed by first showing that the total cost of each served subtree is at most , where is the depth of the tree and is the cost of the root . Then, we show that the optimal cost of serving the remaining requests (including requests that at this point of time have not arrived yet) decreases by at least . The two claims together imply the desired bound.
Extending our result to general trees is done via a reduction that transforms a tree into a forest of -decreasing trees. Then, we apply the algorithm for -decreasing trees to each tree of the resulting forest. A very simple argument shows that the algorithm obtained this way has a competitive factor of at most . However, using a more involved analysis we are able to show that the two above claims hold also for general trees, which give us the promised -competitiveness guarantee.
1.2 Related Work.
Several interesting problems are related to the Online Multi-level Aggregation Problem with Deadlines. Suppose that each request accrues a waiting cost over time, rather than having a strict deadline. The cost of satisfying a set of requests is then defined to be the sum of both the service cost and the sum of the waiting costs of the requests. For this problem Bienkowski et al. [7] designed an -competitive algorithm. The best offline approximation for this variant is [26] adapting ideas from [22]. We note that a common choice for the waiting cost is a linear function over time. This model (with slight variations) was considered by Khanna et al. [19] who achieved a competitive factor which is logarithmic in the weight of the aggregation tree.
One of the earliest problems considered in the general setting of aggregation is the TCP-Acknowledgment Problem. In this problem there is a single link over which packets need to be acknowledged by control messages. Any number of control messages can be aggregated into a single packet sent over the single link. The aggregation tree, thus, consists of a single edge. The objective function is composed of two terms: the number of acknowledgments sent over the link and the sum of the waiting times of the control messages. The optimal competitive factors for the TCP-acknowledgment problem are for deterministic algorithms and if randomization is allowed [16, 18, 13]. Interestingly, the TCP-acknowledgment problem is equivalent to the classical Lot Sizing Problem [16, 27], which has been studied extensively by the operations research community.
The aggregation problem for trees of depth is known as the Joint Replenishment Problem in supply-chain management. The best competitive factor known for this special case is with general waiting times, and if requests have deadlines [12, 14, 9]. The best lower bound for general waiting times is 2.754 [9] improving upon an earlier bound of 2.64 by [14]. For the deadline case the best lower bound is [9]. The (offline) Joint Replenishment problem is known to be NP-hard (and APX-hard) [1, 25, 8]. The best approximation ratio currently known for it is [9], which improves upon previous results of [21, 24, 22, 23].
Finally, when the aggregation tree is an infinite half line, Bienkowski et al. [7] gave a -competitive algorithm for the deadline version of the problem, and showed that this is the best possible. For the more general problem with waiting costs, Bienkowski et al. [10] showed that the competitive ratio is between and , improving on an earlier upper bound of for the problem by Brito et al. [12]. It is also known that the optimal offline solution for this case can be computed efficiently [10].
2 Problem Definition and Preliminaries
An instance of the Online Multi-level Aggregation Problem with Deadlines (OMAPD) is defined as a tuple . The first component of the tuple is a tree rooted at some node with non-negative edge costs. We denote by the cost of an edge of , and by the depth of , i.e., the maximum number of edges along any path from the root of to a leaf. The second component of the tuple is a set of time intervals , where each interval is associated with a node , an arrival time and a deadline . A solution for the problem is a sequence of subtrees rooted at that are transmitted at times .111Notice that we abuse notation here and treat trees as sets of nodes. This is done occasionally throughout the paper. The solution is feasible if, for each interval , there exists a tree with transmission time containing the node . Moreover, we say that a tree of the solution having these properties services . The cost of transmitting a tree is denoted by , where is the set of edges of . The cost of the solution is .
In the online setting the tree is known to the algorithm in advance, but the intervals of arrive in an online fashion, i.e., each interval is revealed to the online algorithm only upon its arrival time at . The online algorithm can decide at every given time to transmit a subtree of at this time, however, both the decision to transmit the subtree and the choice of the subtree to transmit must be done without any knowledge about future intervals. The algorithm is -competitive if it produces a feasible solution whose total cost is always at most times the cost of the optimal solution. In the online setting it is often useful to call intervals that have already been revealed to the algorithm, but were not serviced yet, by the term active.
To simplify the presentation of our algorithm, we first modify the problem as described by the following two modifications.
We assume the tree has node costs rather than edge costs. Consequently, the transmission cost of a subtree now becomes . 2. 2.
For each node , we assume is strictly positive.
Proving that these modifications are without loss of generality can be done in a rather standard way. First, we may assume that has only a single child. One may observe that the transmission of a subtree containing multiple children of can always be replaced with the transmission of multiple subtrees, each containing and the part of descending from a single child of . Moreover, this replacement does not change the cost of the transmission. Hence, there is no loss in applying any algorithm independently to every subtree of (more accurately, every instance of the algorithm faces an instance of OMAPD with a tree containing ) and all the nodes descending in from a single child of ). Next, we observe that in OMAPD every interval associated with the root can always be serviced without any cost. Thus, we may assume that our instance does not contain any such intervals. We now transform into a node-cost tree by moving the cost of every edge to its end point which is further away from the root, and then removing the root itself (which is the only node left with no cost). Finally, if some node has cost zero, we may merge it with the next node on the path to the root. Thus, each node has strictly positive cost. It is easy to see that any solution for the original edge weighted instance can be transformed to a solution for the resulting node weighted instance with the same cost and vice-versa. Moreover, the depth of the node weighted instance is always smaller than the depth of the original edge weighted instance. From now on we abuse notation and refer to the variant of OMAPD obtained by our modifications simply as OMAPD.
Finally, a tree is called 3-decreasing if, as we go along any path from the root to a leaf, the cost of each node is smaller than the cost of the previous node by a factor of at least . This definition is used in [7], and it is similar to the weighted version of HSTs defined in [3]. Note, however, that a -decreasing tree is not exactly an (un-weighted) -HST (as defined by [4, 5, 17]) as the costs of the edges along any root to leaf path of a -decreasing tree decrease by factor of at least rather than by exactly . Moreover, different root to leaf paths of a -decreasing tree might differ in their lengths.
3 Algorithm for -Decreasing Trees
In this section we present and analyze an algorithm for OMAPD on -decreasing trees. A generalization of this algorithm for general trees is given in Section 4. Throughout the section we consider a fixed instance of OMAPD in which the tree is a -decreasing tree. Since we have fixed the instance of OMAPD, we can use in this section a somewhat simplified notation. More specifically, we drop the parameter from the notations and and use and to denote the root of and its depth, respectively. We also need to define some new notation. Given a set of nodes we use to denote the total cost of the nodes within it, i.e., . Additionally, given a node we denote by the subtree of rooted at .
We remind the reader that an interval is said to be active if and only if it has already appeared, but has not been serviced yet. Our algorithm transmits a tree whenever an active interval matures, i.e., reaches its deadline. More specifically, our algorithm invokes Algorithm 1 whenever an active interval matures, and Algorithm 1 then selects a subtree of and transmits it. Following the transmission of , our algorithm returns to its idle state until another active interval matures. We note that there might be multiple active intervals that reach maturity at the same time. When this happens, the transmission of might not service all of these intervals, which might result in immediate additional invocation of Algorithm 1. In other words, there might be a zero time gap between consecutive executions of Algorithm 1.
Informally, Algorithm 1 starts the construction of the tree to be transmitted by assigning a budget of to the root of the tree. This budget is then used to recursively add new nodes to the transmission tree (and thus, serve the intervals residing in these nodes). More specifically, each node that is assigned a budget uses it to add to the transmission tree new nodes belonging to its subtree . The total transmission cost of these newly added nodes is roughly equal to the budget of ; and following the addition of these new nodes splits its budget proportionally among them so that this process can be repeated recursively. It is important to note that, when a node chooses nodes from its subtree to add to the transmission tree, it gives priority to satisfying intervals whose deadline is sooner (and thus are, intuitively, more “urgent”).
The following observation shows that each transmission of Algorithm 1 makes progress, and thus, our algorithm, as a whole, terminates.
Observation 3.1
Algorithm 1 halts and the transmission tree contains an active interval.
- Proof.
Observe that Line 1 of Algorithm 1 is guaranteed to be reached at least once in every given execution of Algorithm 1. This line selects an active interval , and the nodes of the path from to are later added to .
We are now ready to present the two main lemmata necessary for the analysis of the algorithm. The first of these lemmata bounds the cost paid by the algorithm for every single transmission. The proof of this lemma is deferred to Section 3.1.
Lemma 3.1
For every subtree of transmitted by the algorithm, .
The presentation of the other main lemma requires some additional notation. Assume the online algorithm transmits overall trees . For every , let be the set of intervals that were not yet serviced by the algorithm after it has made transmissions. Note that includes also intervals that arrive after the transmission time of tree , i.e., they were not active yet when was transmitted. By definition, services all the intervals . Additionally, we use to denote an optimal solution for a set of intervals (more formally, is an optimal solution for the instance of OMAPD).
Our second main lemma can now be stated as follows. We defer its proof to Section 3.2.
Lemma 3.2
* for every .*
Analyzing our algorithm is now straightforward.
Theorem 3.1
There exists an -competitive algorithm for Online Multi-level Aggregation Problem with Deadlines on -decreasing trees.
- Proof.
By Lemma 3.1 the total cost suffered by our algorithm is at most . On the other hand, Lemma 3.2 shows that the cost of the optimal solution is at least .
3.1 Proof of Lemma 3.1.
In this section we prove Lemma 3.1. Let us first recall the lemma.
**Lemma **3.1
For every subtree of transmitted by the algorithm, .
We begin the proof of the above lemma with the following claim.
Lemma 3.3
For every node added to , .
- Proof.
Each time that Algorithm 1 adds nodes to , it adds only nodes belonging to the path from to of a single interval . Since is -decreasing, the total cost of the nodes on such a path is upper bounded by
[TABLE]
On the other hand, Algorithm 1 stops adding nodes to once exceeds , thus completing the proof.
Next, define inductively the level of nodes in as follows. The level of the root is [math]. For node , suppose that node added it to ; then the level of is defined to be the level of plus . Since the nodes of are all descendants of , the level of each node is guaranteed to be at most .
Lemma 3.4
For every node , .
- Proof.
We prove the lemma by induction on the level of . For the root the lemma is immediate since . Next, let be a node in (added by ). Then,
[TABLE]
where the first inequality follows from Lemma 3.3, and the second inequality follows from the induction hypothesis applied to .
Note that for every node such that , by construction,
[TABLE]
Hence, the following observation can be proved by induction.
Observation 3.2
In each level of , the sum of , taken over all nodes , is at most
We now observe the following.
[TABLE]
The first inequality follows since Lemma 3.4 guarantees that for every node . The second inequality follows since there are at most possible levels, and Observation 3.2 shows that the sum of in each level is at most .
3.2 Proof of Lemma 3.2.
In this section we prove Lemma 3.2. We begin by recalling the lemma.
**Lemma **3.2
* for every .*
To prove the lemma it suffices to construct a solution servicing all the intervals of whose cost is at most . The lemma will then follow since, being an optimal solution, is not more expensive then any other feasible solution for .
Let us now construct the above mentioned solution . Recall that is the subtree of transmitted by the algorithm at its -th transmission, and let us denote by the time of this transmission. There are a few assumptions that we can make about . First, we may assume that transmits at most one subtree at every given time (otherwise, we may merge subtrees transmitted at the same time without increasing the total cost). Second, we may assume that makes its first transmission at time because that is the time of the earliest deadline among the deadlines of the intervals of (specifically, the interval whose deadline triggered the -th transmission of the algorithm is in and its deadline is ). Given these assumptions, there must be exactly one transmission of at time . Let us denote the subtree transmitted at this time by .
We obtain the solution from the optimal solution by applying the following two steps to the last solution.
Remove from the solution. 2. 2.
Reconstruction step: Scan the intervals of in a non-decreasing order of their deadline. For every such interval we do the following to guarantee that it is serviced by .
- •
Find the subtree of the current solution transmitted within the range which contains the largest fraction of the path from to (breaking ties arbitrarily), and add to this subtree the remaining part of this path. Note that the above tree might contain all the path, in which case there is no need to add anything.
- •
If the current solution makes no transmissions within the range , then introduce into it a new transmission transmitting the subtree consisting solely of the path from to . The location of this new transmission within the range can be chosen arbitrarily.
Observation 3.3
The solution is a feasible solution for .
- Proof.
The construction of guarantees that every interval of is serviced by before its deadline.
We are left to prove that the cost of is at most . It is clear that Step 1 in the procedure for constructing decreases the cost by , thus, it suffices to show that the second step increases the cost of by at most . The rest of this section is devoted to proving this claim.
We say that a node is reconstructed whenever it is added to some transmission of the solution during Step 2 of the above procedure.
Lemma 3.5
The reconstruction step obeys the following claims.
Only nodes of are reconstructed. 2. 2.
Each node of is reconstructed at most once.
- Proof.
Consider a node which is reconstructed, and let be the interval whose processing by the reconstruction step caused the first reconstruction of . Thus, is on the path from to . If does not belong to , then must service by some transmission other than within the range . Since this transmission is not removed, the processing of by the reconstruction step could not cause the reconstruction of any node, which contradicts the definition of . Hence, any node which is reconstructed must belong to .
It remains to prove the second part of the lemma. The fact that was reconstructed when was processed means that prior to ’s processing the interval did not contain any transmission involving . Since the reconstruction step scans the intervals in a non-decreasing order of their deadlines, this means that any interval for which is on the path from to must have a deadline . Hence, when is processed by the reconstruction step, the range already includes a subtree containing , and thus, does not cause another reconstruction of the node .
The last lemma shows that only a limited set of nodes (namely, the nodes of ) might be reconstructed. Lemma 3.7 shows that even within this limited set there is a significant subset of nodes that are not reconstructed. The following lemma proves a few technical claims used later in the proof of Lemma 3.7.
Lemma 3.6
Let be a node that is reconstructed. Then, and .
- Proof.
Let be the interval that caused the reconstruction of . Since belongs to (intervals outside of are not processed by the reconstruction step), it must be that is not serviced by . On the other hand, the fact that caused the reconstruction of nodes means that it is not serviced by any subtree of other than , thus, it must be active at time .
The above observations imply that when Algorithm 1 constructed it left the inner loop growing while there were still active intervals associated with nodes of ; which can only happen when . Next, consider any node . Since Algorithm 1 scans the intervals in a non-decreasing deadline order while growing , must have been added to due to being on the path from to of some interval having a deadline . Assume towards a contradiction that does not contain this path. Clearly, this assumption implies that services by some subtree transmitted during the range . Since any subtree servicing must include , is already present within the range when is processed by the reconstruction step; which contradicts the definition of as the interval whose processing caused the reconstruction of .
Lemma 3.7
There exists a set of nodes obeying the following properties.
. 2. 2.
. 3. 3.
* for all .* 4. 4.
The nodes of are not reconstructed.
- Proof.
We start with a set obeying all the properties other than Property 4, and let it evolve while maintaining these properties. The evolution of ends as soon as it obeys also Property 4. More specifically, we initially set . Observe that this set indeed satisfies all the properties other than Property 4. If also satisfies Property 4 then we are done. Otherwise, there must be a node in the current set which is reconstructed. Since we maintain as a set obeying Property 1, must belong to . Hence, by Lemma 3.6, it must hold that and .
At this point we evolve by removing from it and adding the nodes of instead. Since , Property 1 is preserved. Additionally, , and thus, Property 2 is preserved as well. Finally, Property 3 also remains valid since Algorithm 1 sets for each node (where the inequality holds since Lemma 3.6 implies ).
We can now repeat the above evolution step as long as Property 4 is violated. However, this evolution cannot continue forever since each step of it replaces a single node with nodes appearing lower than it in . Hence, the evolution presented is guaranteed to end up eventually with a set obeying Property 4 (as well as the three other properties).
To conclude the proof of Lemma 3.2 we note that, by combining all the properties of in Lemma 3.7, we get that there must exist a set of node in which are not reconstructed and have a total cost of at least . Together with the claim of Lemma 3.5 that only nodes of are reconstructed, and even they can only be reconstructed once, we get that the increase in the cost of during the reconstruction step is at most .
4 Algorithm for General Trees
In this section we show how the algorithm from Section 3 can be modified to be -competitive also for OMAPD on general trees. We begin by describing a reduction, originally showed by [7], transforming a general tree into a forest of -decreasing trees.
Given a tree , we construct a forest of -decreasing trees as follows. The nodes of are the same as the nodes of . We connect each node with an edge to the first node on the path from to whose cost obeys . If there is no such , then becomes the root of a new tree. Each node in the forest is now associated with a set of all nodes on the path from to in the original tree (without , but including itself). If does not exist (i.e., is a root in the new forest), then the associated set is defined as the set of nodes on the path from to the root of the original tree (this time, including ).
Observation 4.1
The forest consists solely of -decreasing trees.
- Proof.
By definition, if is a node of which is not a root of its tree, then the father of in obeys .
Assume that consists of trees . Notice that and have the same set of nodes, and thus, each interval is naturally associated with a node in one of the trees in the forest. Let be the set of intervals associated with the nodes of .
Our algorithm for general trees runs an independent instance of the algorithm for -decreasing trees from Section 3 on each tree with its corresponding set of intervals . For convenience, we denote the algorithm from Section 3 by from this point on. Whenever an instance of chooses to transmit a subtree , we transmit instead the tree . It is useful to call the virtual tree transmitted by , and the concrete tree transmitted by . Observe that the concrete tree is always a subtree of the original tree , and thus, this is a description of a valid algorithm for the original problem (OMAPD on general trees).
We next show that the total cost of the optimal solutions for all the subtrees of the forest is bounded by the optimal cost of the original instance. Formally, let denote the cost of the optimal solution for an instance of OMAPD. Then,
Observation 4.2
.
- Proof.
Consider the optimal solution for the instance of OMAPD. Based on this optimal solution we construct a solution for every one of the instances as follows. Whenever the optimal solution for transmits a subtree , the solution for the instance transmits the subtree . One can verify that is indeed a tree since the set of nodes on the path connecting every node to is a subset of the set of nodes connecting to in .
We complete the proof by observing that the costs of the above solutions add up to exactly , and thus, the total cost of the optimal solutions for the instances cannot exceed this value.
The above observation implies that in order to analyze our algorithm it is enough to relate the cost of the concrete trees transmitted by each instance of to the cost of the optimal solution for the instance of OMAPD faced by this instance of . Notice that this is slightly different from what we do in Section 3 since in Section 3 we relate the cost of the virtual trees transmitted by an instance of to the cost of the optimal solution for the instance of OMAPD faced by this instance of . Nevertheless, we show in the rest of this section that the arguments from Section 3 can be used, almost without change, to prove also the more ambitious goal we need to prove here. More specifically, we prove the following proposition.
Proposition 4.1
For every , the total cost of the concrete trees transmitted by the instance of assigned to is at most .
Clearly Theorem 1.1 follows from Observation 4.2 and Proposition 4.1. To prove Proposition 4.1 we need to define some additional notation. Assume transmit trees when given . For every , let be the set of intervals from that were not yet serviced by the algorithm after it has made transmissions. Note that includes also intervals that arrive after the -th transmission, i.e., they were not active yet when this transmission was made. Using this notation we can state the following lemma, which is a counterpart of Lemma 3.2, and also follows from it.
Lemma 4.1
* for every and .*
To prove Proposition 4.1 we also need the following counterpart of Lemma 3.1.
Lemma 4.2
If the instance of corresponding to transmits a virtual tree , then .
One can verify that Lemmata 4.1 and 4.2 imply Proposition 4.1 in the same way that Lemmata 3.1 and 3.2 imply Theorem 3.1. Thus, it remains to prove Lemma 4.2. Recall that generates each one of the virtual trees it transmits by executing Algorithm 1, and consider the execution of Algorithm 1 which generated the virtual tree .
The sets might not be disjoint. However, for the purposes of the proof it is useful to assume they are disjoint. In other words, if a node appears in several sets out of , we treat each one of its appearances as unique. Additionally, let us use the shorthand .
By Lemma 3.4, for every node . Recall that is defined by Algorithm 1 only for nodes . We now extend the definition of to all the nodes of by setting for every node . Since, by definition, the nodes of have costs of at most , we get the following corollary.
Corollary 4.1
For every node , .
Next, define levels for the nodes of using the following recursive procedure. The level of the root is [math]. Consider now a node which already has a level . Then, for every node , the nodes of are assigned the levels ; where the last level is assigned to itself. The definition of guarantees that all the nodes of appear on the path from to in , and thus, the difference between the level of and is at most the difference between their heights in . Thus, no node of is given a level larger than by the above procedure.222There is an alternative way to define this level assignment which might help to understand the intuition behind it. Consider a tree defined as follows. The root of is , and the children of every node are the nodes of . One can verify that has exactly the same set of nodes as . Moreover, the height of every node in corresponds to its level according to the level assignment used in Section 3. If we now replace every node with a path consisting of the nodes of in which is the lowest node, then we get a new tree . This time, this tree has the same set of nodes as , and the height of every node in corresponds to its level according to the level assignment used in this section.
Recall that for every node such that , by construction,
[TABLE]
Let us now define for a node an additional set . In other words, is obtained from by replacing every node with the single node whose level is larger by than the level of . Since is identical for every node of we immediately get also whenever . For a node we define . Informally, contains the single node that belongs to the same set as and has a level larger by than . Again, the fact that is identical for every node of a single set guarantees .
Lemma 4.3
In each level , the sum of , taken over all nodes of level , is at most
- Proof.
We have seen that for every node unless . Additionally, the definition of the sets guarantees that each node belongs to a single set , and this set is associated with a node of a lower level than . All this observations, taken together, imply the lemma by a standard induction argument.
We now observe the following.
[TABLE]
The first inequality follows since Corollary 4.1 guarantees that for every node . The second inequality follows since there are at most possible levels, and Lemma 4.3 shows that the sum of in each level is at most .
5 Conclusions
In this paper we have presented an -competitive algorithm for the Online Multi-level Aggregation Problem with Deadlines. This result represents an exponential improvement over the previously best competitive ratio of given by [7]. Nevertheless, the competitive ratio of our algorithm is still quite far from the constant lower bounds proved by [9] and [7]. Narrowing this gap, either by providing an improved algorithm or by proving stronger lower bounds, is an intriguing open problem that we leave open.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Esther Arkin, Dev Joneja, and Robin Roundy. Computational complexity of uncapacitated multi-echelon production planning problems. Operations research letters , 8:63–73, 1989.
- 2[2] B. R. Badrinath and Pradeep Sudame. Gathercast: the design and implementation of a programmable aggregation mechanism for the internet. In Proceedings Ninth International Conference on Computer Communications and Networks, ICCCN 2000, 16-18 October 2000, Las Vegas, Nevada, USA , pages 206–213, 2000.
- 3[3] Nikhil Bansal, Niv Buchbinder, Aleksander Madry, and Joseph Naor. A polylogarithmic-competitive algorithm for the k -server problem. J. ACM , 62(5):40, 2015.
- 4[4] Yair Bartal. Probabilistic approximations of metric spaces and its algorithmic applications. In FOCS’96: Proceedings of the 37th Annual IEEE Symposium on Foundations of Computer Science , pages 184–193, 1996.
- 5[5] Yair Bartal. On approximating arbitrary metrices by tree metrics. In STOC’98: Proceedings of the 30th Annual ACM Symposium on Theory of Computing , pages 161–168, 1998.
- 6[6] Luca Becchetti, Alberto Marchetti-Spaccamela, Andrea Vitaletti, Peter Korteweg, Martin Skutella, and Leen Stougie. Latency-constrained aggregation in sensor networks. ACM Trans. Algorithms , 6(1), 2009.
- 7[7] Marcin Bienkowski, Martin Böhm, Jaroslaw Byrka, Marek Chrobak, Christoph Dürr, Lukáš Folwarczný, Lukasz Jez, Jirí Sgall, Nguyen Kim Thang, and Pavel Veselý. Online algorithms for multi-level aggregation. Co RR , abs/1507.02378, 2015. To appear in ESA 2016.
- 8[8] Marcin Bienkowski, Jaroslaw Byrka, Marek Chrobak, Neil B. Dobbs, Tomasz Nowicki, Maxim Sviridenko, Grzegorz Swirszcz, and Neal E. Young. Approximation algorithms for the joint replenishment problem with deadlines. J. Scheduling , 18(6):545–560, 2015.
