Self-Adjusting Linear Networks
Chen Avin, Ingo van Duijn, Stefan Schmid

TL;DR
This paper studies self-adjusting linear networks that dynamically reconfigure to workload demands, balancing reconfiguration costs and performance, and provides theoretical bounds and algorithms for their online optimization.
Contribution
It introduces a formal model for demand-aware self-adjusting linear networks and analyzes their algorithmic complexity and competitive performance.
Findings
Established an $oldsymbol{ ext{Ω}( ext{log}n)}$ lower bound on competitive ratio.
Developed an $oldsymbol{O( ext{log}n)}$-competitive online algorithm for ordered requests.
Showed the problem generalizes the classic dynamic list update problem.
Abstract
Emerging networked systems become increasingly flexible and reconfigurable. This introduces an opportunity to adjust networked systems in a demand-aware manner, leveraging spatial and temporal locality in the workload for online optimizations. However, it also introduces a trade-off: while more frequent adjustments can improve performance, they also entail higher reconfiguration costs. This paper initiates the formal study of linear networks which self-adjust to the demand in an online manner, striking a balance between the benefits and costs of reconfigurations. We show that the underlying algorithmic problem can be seen as a distributed generalization of the classic dynamic list update problem known from self-adjusting datastructures: in a network, requests can occur between node pairs. This distributed version turns out to be significantly harder than the classical problem in…
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 · Distributed systems and fault tolerance · Age of Information Optimization
11institutetext: Ben Gurion University of the Negev
22institutetext: Aalborg University
33institutetext: University of Vienna
Self-Adjusting Linear Networks
Chen Avin Ingo van Duijn Stefan Schmid 112233
Abstract
Emerging networked systems become increasingly flexible and “reconfigurable”. This introduces an opportunity to adjust networked systems in a demand-aware manner, leveraging spatial and temporal locality in the workload for online optimizations. However, it also introduces a tradeoff: while more frequent adjustments can improve performance, they also entail higher reconfiguration costs.
This paper initiates the formal study of linear networks which self-adjust to the demand in an online manner, striking a balance between the benefits and costs of reconfigurations. We show that the underlying algorithmic problem can be seen as a distributed generalization of the classic dynamic list update problem known from self-adjusting datastructures: in a network, requests can occur between node pairs. This distributed version turns out to be significantly harder than the classical problem in generalizes. Our main results are a lower bound on the competitive ratio, and a (distributed) online algorithm that is -competitive if the communication requests are issued according to a linear order.
Keywords:
Self-adjusting datastructures competitive analysis distributed algorithms communication networks.
1 Introduction
Communication networks are becoming increasingly flexible, along three main dimensions: routing (enabler: software-defined networking), embedding (enabler: virtualization), and topology (enabler: reconfigurable optical technologies, for example [15]). In particular, the possibility to quickly reconfigure communication networks, e.g., by migrating (virtualized) communication endpoints [8] or by reconfiguring the (optical) topology [11], allows these networks to become demand-aware: i.e., to adapt to the traffic pattern they serve, in an online and self-adjusting manner. For example, in a self-adjusting network, frequently communicating node pairs can be moved topologically closer, saving communication costs (e.g., bandwidth, energy) and improving performance (e.g., latency, throughput).
However, today, we still do not have a good understanding yet of the algorithmic problems underlying self-adjusting networks. The design of such algorithms faces several challenges. As the demand is often not known ahead of time, online algorithms are required to react to changes in the workload in a clever way; ideally, such online algorithms are “competitive” even when compared to an optimal offline algorithm which knows the demand ahead of time. Furthermore, online algorithms need to strike a balance between the benefits of adjustments (i.e., improved performance and/or reduced costs) and their costs (i.e., frequent adjustments can temporarily harm consistency and/or performance, or come at energy costs).
The vision of self-adjusting networks is reminiscent of self-adjusting datastructures such as self-adjusting lists and splay trees, which optimize themselves toward the workload. In particular, the dynamic list update problem, introduced already in the 1980s by Sleator and Tarjan in their seminal work [21], asks for an online algorithm to reconfigure an unordered linked list datastructure, such that a sequence of lookup requests is served optimally and at minimal reconfiguration costs (i.e., pointer rotations). It is well-known that a simple move-to-front strategy, which immediately promotes each accessed element to the front of the list, is dynamically optimal, that is, has a constant competitive ratio.
This paper initiates the study of a most basic self-adjusting linear network, which can be seen as a distributed variant of the dynamic list update problem, generalizing the datastructure problem to networks: while datastructures serve requests originating from the front of the list (the “root”) to access data items, networks serve communication requests between pairs of nodes. The objective is to move nodes which currently communicate frequently, closer to each other, while accounting for reconfiguration costs.
1.1 Formal Model
We initiate the study of pairwise communication problems in a dynamic network reconfiguration model, using the following notation:
- •
Let denote the (hop) distance between and in a graph .
- •
A communication request is a pair of communicating nodes from a set .
- •
A configuration of in a graph (the host network) is an injection of into the vertices of ; denotes the set of all such configurations.
- •
A configuration is said to serve a communication request at cost .
- •
A finite communication sequence is served by a sequence of configurations .
- •
The cost of serving is the sum of serving each in plus the reconfiguration cost between subsequent configurations .
- •
The reconfiguration cost between is the number of migrations necessary to change from to ; a migration swaps the images of two nodes and under .
- •
denotes the first requests of interpreted as a set of edges on , and denotes the request graph of .
In particular, we study the problem of designing a self-adjusting linear network: a network whose topologoy forms a -dimenstional grid. We are particularly interested in the 1-dimensional grid in this paper, the line:
Definition 1 (Distributed List Update)
Let , , and be as before, with
[TABLE]
representing a list network. The cost of serving a is given by , i.e. the distance between and on . Migrations can only occur between nodes configured on adjacent vertices in .
Recall that the cost incurred by an algorithm A on is the sum of communication and reconfiguration costs. In the realm of online algorithms and competitive analysis, we compare an online algorithm ON to an offline algorithm OFF which has complete knowledge of ahead of time. We want to devise online algorithms ON which minimize the competitive ratio :
[TABLE]
As a first step, we in this paper consider the Distributed List Update problem for the case where the request graph has constant graph bandwidth: i.e. graphs for which there is a configuration in a line network such that any request can be served at constant cost. We refer to such a request graph as linear demand.
1.2 Contributions
This paper initiates the study of a most basic self-adjusting network, a line, which optimizes itself toward the dynamically changing linear demand, while amortizing reconfiguration cost. The underlying algorithmic problem is natural and motivated by emerging reconfigurable communication networks (e.g., based on virtual machine migration or novel optical technologies [9, 15]). The problem can also be seen as a distributed version of the fundamental dynamic list update problem. Our first result is a negative one: we show that unlike the classic dynamic list update problem, which admits for constant-competitive online algorithms, there is an lower bound on the competitive ratio of any deterministic online algorithm for the distributed problem variant. Our second main contribution is a (distributed) online algorithm which is -competitive for long enough sequences.
1.3 Organization
The remainder of this paper is organized as follows. In Section 2, we put the problem and its challenges into perspective with respect to the list update problem. We then first derive the lower bound in Section 3 and present our algorithm and upper bound in Section 4. After discussing related work in Section 5, we conclude in Section 6.
2 From List Update to Distributed List Update
To provide an intuition of the challenges involved in designing online algorithms for distributed list update problems and to put the problem into perspective, we first revisit the classic list update problem and then discuss why similar techniques fail if applied to communicating node pairs, i.e., where requests not only come from the front of the list.
The (dynamic) list update problem [21] introduced by Sleater and Tarjan over 30 years ago is one of the most fundamental and oldest online problems: Given a set of elements stored in a linked list, how to update the list over time such that it optimally serves a request sequence where for each , is an arbitrary element stored in the list? The cost incurred by an algorithm is the sum of the access costs (i.e. scanning from the front of the list to the accessed element) and the number of swaps (switching two neighboring elements in the list). As accesses to the list elements start at the front of the list, it makes sense to amortize high access costs by moving frequently accessed elements closer to the front of the list. In fact, the well-known Move-To-Front (MTF) algorithm even moves an accessed element to the front immediately, and is known to be constant competitive: its cost is at most a factor 2 (or some other constant, depending on the cost model) worse than that of an optimal offline algorithm which knows the entire sequence ahead of time [21]. Throughout the literature, slightly different cost models have been used for the list update problem, though they only differ by a constant factor. Generally, a cursor is located at the head of the list at each request. Then, the algorithm can perform two operations, each operation incurring unit cost. i) Move the cursor to the left, or to the right, one position; the element in the new position is referred to as touched. ii) Swap the element at the cursor with the element one position to the left or right; the cursor also moves.
In the Distributed List Update problem, upon a request , the cursor is placed at instead of the head of the list, and needs to be looked up. To demonstrate the significance of this difference, we first present a paraphrased version of the proof by Tarjan and Sleator showing the dynamic optimality of mtf. After that, we showcase a simple access sequence differentiating the two problems.
2.1 An Expositional Proof for the Optimality of MTF
While the potential argument used to show dynamic optimality of the move-to-front strategy for the list access problem yields a very elegant and succinct proof [21], it lacks intuition which makes it difficult to generalise the argument. The key idea in the potential argument is to compare the execution of mtf to the execution of an arbitrary algorithm . The algorithm is fixed for the analysis, but any valid algorithm can be used, e.g. the optimal offline algorithm. The state (represented by a list) of mtf and are juxtaposed at every access, comparing how the order of elements in both lists differ. In fact, it is sufficient to only considers the relative order of two fixed elements and as follows. Consider the order of and in the state of before it performs the th access. If this order is the same as in mtf before it performs the th acces, let and otherwise . Similarly, if the relative order is the same in mtf after its access, let and otherwise . This describes an inversion sequence . Figure 1 illustrates this for mtf and an arbitrarily chosen algorithm on a sequence , with the inversions of and described by the sequence .
Suppose that and that mtf touches and while accessing . The proof by Tarjan and Sleator boils down to three observations.
Observation 1
MTF inverts and relative to by accessing , i.e. .
Observation 2
If , mtf and agree on the order of and before . Since mtf touches both, also touches both in order to access .
Observation 3
For , let be the largest index such that or (note that exists because ). When , and thus , inverts and and therefore must have touched both. When , and thus , mtf inverts and and one of them is . By Observation 2, if and mtf touches and to access , then A does as well.
The last observation is essentially the amortised argument rephrased as a charging argument. We can now easily prove the dynamic optimality of mtf.
Theorem 2.1 (Tarjan & Sleator)
mtf* is -optimal.*
Proof
We prove that for all where mtf touches , there is a move by A touching . mtf first moves the cursor to , and then swaps to the front. Along the way it touches twice, once with a move and once with a swap, incurring a cost of 2.
For (resp. ), we use Observation 2 (resp. 3) to charge the cost to A touching while accessing (resp. ). By Observation 1, , and thus for any with , the largest index with or must be at least , and therefore . This guarantees that mtf charges at most a cost of 4 to one move of A. Since all the cost incurred by mtf is charged to some move of A, the claim follows. ∎
In the original work by Tarjan and Sleator, MTF is shown to be -optimal. This is because their cost model allows accessed elements to be moved to the front ‘for free’. If we allow this as well, the cursor touches only once to access , resulting in a factor .
2.2 The Challenge of Distributed List Update
Generalizing dynamic list update to Distributed List Update introduces a number of challenges which render the problem more difficult. First, the natural inversion argument no longer works: a reference point such as the front of the list is missing in the distributed setting. This makes it harder to relate algorithms to each other and hence also to define a potential. Second, for general request graphs , an online algorithm needs to be able to essentially “recognize” certain patterns over time.
Regarding the latter, consider the set of nodes and let be a cyclic sequence: for all with and it holds that . From this we construct a similar sequence for Distributed List Update on the set of nodes , with . This yields a star graph as denoted in Figure 2. An offline algorithm can clearly serve the cyclic order in optimal per request by moving the element one position further after every request. However, in the list update model, any sequence cycling through all elements is a worst-case sequence. This demonstrates that a “dynamic cursor” can mean a factor difference in cost. What the sequence also demonstrates, is that aggregating elements around a highly communicative node is suboptimal; in the particular case of , it is this central node that needs to be moved.
Another pattern is a request sequence that forms a connected path in the request graph . When restricted to only these pattersn, Distributed List Update corresponds to the Itinerant List Update Problem (ILU) studied in [16]. In this work it is shown that deriving non-trivial upper bounds on the competitive ratio already seems notoriously hard (even offline approximation factors are relatively high). Note that the star example can be expressed as a path, i.e. , demonstrating the significance of understanding simple request patterns for Distributed List Update. This is part of the reason why in this paper we focus on request graphs with a linear demand.
3 A Lower Bound
This section derives a lower bound on the competitive ratio of any algorithm for Distributed List Update.
Theorem 3.1
The competitive ratio for Distributed List Update, with , is at least . This bounds holds for arbitrarily long sequences, but if , it even holds if the request graph is a line.
To prove this, we consider an arbitrary online algorithm ON for Distributed List Update. The main idea is to have an adaptive online adversary construct a sequence that depends on the algorithm ON. The adversary constructs so that the resulting request graph is a line graph. Because an offline algorithm knows in advance, it can immediately configure it and serve all requests at optimal cost of . We show that the online algorithm is forced to essentially reconfigure its layout times, resulting in the desired ratio. To facilitate our analysis, we use the same notion of the distortion of an embedding as is used in the Minimum Linear Arrangement (MLA) [13] problem.
Definition 2
Given a communication graph with , let denote the transitive closure of .
For , let denote the distortion of , which is defined as:
[TABLE]
The value reflects how badly the edges in are configured on by . To build , the adversary gradually commits to the edges of . Having already requested , then depending on the distortion the adversary:
- Option 1:
picks . 2. Option 2:
reveals a new batch of edges .
From these two options, the adversary’s strategy becomes clear; Option 1 forces the highest possible cost to ON based on and , and Option 2 introduces new communication edges to force an increase in distortion. What is left to show is how the value of comes into play, and which edges the adversary commits to.
Note that only edges can be revealed in total (since the final request graph is a line), and that an offline algorithm incurs a cost of at most to lower the distortion of an edge to . Thus, in order to prove Theorem 3.1 the adversary must – on average – be able to force a cost of per edge revealed. As will be apparent from our construction, the factor comes from the way the adversary reveals edges: it first reveals edges, then , , etc. , resulting in batches. After each batch, for ON to remain optimal it must permute its layout at cost , totalling a cost of for all batches combined.
To ensure that is a line graph, the partial request graph (i.e. the set of revealed edges) always comprises a set of disjoint sublists. Therefore, the adversary only reveals edges that concatenate two sublists in . Initially is empty and the corresponding sublists are all singleton sets of .
To help decide which edges to reveal, we use the distortion to associate a cost to batches of edges that the adversary can commit to. Let be any set of edges such that the graph comprises a set of disjoint sublists. For a configuration of ON, the set induces a distortion of , as shown in Figure 3. We show that for any embedding that ON chooses, the adversary can find a set so that the distortion is large. To formalize this, we prove the following.
Lemma 1
Let be a line graph, and a set of edges so that the graph induces disjoint sublists. For every , there exists a set of at most edges such that and comprises a set of disjoint lists.
Proof
Let be the sublists in . For all pairs , let denote any edge so that is connected. For any involution111A function that is its own inverse, i.e. . on the sublists we have:
[TABLE]
The factor is necessary because for such that , the term appears twice to the sum.
Now partition into three sublists: a left part , a right part , and the centre part . Let (resp. ) denote the number of elements of that maps onto (resp. ). Every two vertices so that and are by construction at least apart on , and therefore we can lower bound by:
[TABLE]
For an involution drawn uniformly at random, Theorem 0.A.1 gives us a bound on the expected value of the following:
[TABLE]
Therefore, there exists an involution for which we have:
[TABLE]
Since this holds for any choice of , we can pick them so that comprises a set of disjoint lists. ∎
This lemma (and the proof) reveals how the adversary commits to a new batch of edges in Option 2 (essentially a random matching will do). Observe that the number of edges is at most half the number of sublists in . In the worst case we have to assume it is exactly half, and thus that the number of sublists is halved after every new batch of edges is selected. Next we show the precondition for the adversary to opt for Option 1, including a lower bound on the corresponding cost imposed on ON.
Lemma 2
Let be a line graph, a configuration, and a set of edges so that the graph has disjoint sublists of size . If , then there exists an edge such that .
Proof
There are at most distinct simple paths in , meaning that the average distortion of these paths is . The highest distortion is at least the average, and every path in has length at most . On this path, there must exist an edge with distortion , since if all edges have a distortion of , the total would be .∎
Combined, Lemma 1 and Lemma 2 imply that the adversary can either request an edge at cost , or increase the distortion to by revealing a new batch of edges. The final ingredient is a lower bound on how much cost the adversary can impose on ON in between these batches.
Lemma 3
Let be a line graph, a set of communication edges. If are two embeddings that differ only in the order of two adjacent elements and , then , where is the size of the largest sublist in .
Proof
Consider all simple paths in that end in . At most paths ending in are reduced by 1, and similarly at most paths ending in . Therefore .
Combining the previous lemmata, we can prove the main technical result.
Lemma 4
For every online algorithm A, there is a sequence of length such that , for . Furthermore, the resulting request graph is a line graph.
Proof
W.l.o.g. assume that for some integer . This implies that the number of edges in every new batch is a power of ; consequently, the sublists in any set of revealed edges have size for some integer .
Consider the situation right after a batch of edges is revealed, where all sublists have size . By Lemma 1 this implies that the distortion is . Let be the requests obtained by repeatedly requesting the edge in with largest distortion. There are two situations:
- •
Throughout serving , the distortion is always at least . Then by Lemma 2 each , incurred a cost of , at total cost .
- •
By serving , ON halves the distortion, thus reducing it by at least . Then, since by Lemma 3 every swap reduces the distortion by at most , ON must have used at least swaps.
This argument holds for each batch of edges revealed. The adversary stops when the sublists have size , yielding a sequence of length with a cost of for ON. By Lemma 2, the adversary only requests edges that are introduced using the matching from Lemma 1. Any edge introduced by the latter Lemma concatenates two already existing sublists, hence is a line graph. ∎
To wrap up the proof for Theorem 3.1, we conclude by showing that for any online algorithm ON, the sequence can be solved in by an optimal offline algorithm.
Proof (Proof of Theorem 3.1)
Let ON be any online algorithm solving Distributed List Update. Apply Lemma 4 with , yielding . Since is a line graph, an offline algorithm can embed this graph at (worst case optimal) cost , and serve every request at optimal cost . This yields , and thus
[TABLE]
In order to make this bound hold for arbitrary long sequences, we slightly modify the adversary. After every requests it serves, it can reconfigure to a new list at cost , and repeat the argument to force cost of to ON for the subsequent requests.
Remark. We can extend the model for Distributed List Update to include cases where both the communication graph and the host graph are a -dimensional grid, for constant ; we dub this problem Distributed Grid Update. On a request , the cursor is placed at and the request is served when it touches . The same operations are allowed: moving the cursor, or swapping with on of its neighbors (also moving the cursor).
We can extend our lower bound to Distributed Grid Update. That is, we can construct a sequence such that is a -dimensional grid. We show that an offline algorithm can perfectly embed this graph at cost at most , whereas we can force the online algorithm to permute its layout times.
What follows here is a summary of the necessary changes to the argument presented in the previous section. In particular, how to prove the following generalized version of Lemma 4.
Lemma 5
For every online algorithm ON for Distributed Grid Update, there is a sequence of length such that , for . The resulting request graph is a -dimensional grid graph.
First some semantic changes to the notation. In all lemmata, we interpret to be a -dimensional grid, where the number of vertices is . The distance for can then be interpreted as the norm.
Second, two minor technical changes to the proofs. The difference with Lemma 4 is that the diameter of a -dimensional grid with nodes is at least , which is exactly the value in the proof of Lemma 1. The rest of the arguments almost directly generalize to yield Lemma 5. The final detail to be careful about is that the length of the sequence does not exceed the cost of the offline algorithm. That is, we have to pick such that . For constant dimension , we can achieve this by picking .
4 An Upper Bound
This section presents a -competitive online algorithm for Distributed List Update. Our main technical lemma shows that the total cost spent on learning the optimal embedding never exceeds . We propose a simple greedy algorithm that identifies a locally optimal embedding, and always moves towards this embedding. Let be a line graph, and a configuration. An -optimal embedding of , denoted , is an embedding that optimally embeds every connected component of while minimizing the quantity . That is, it is the optimal embedding of that is ‘closest’ to . With such a configuration we associate the cost:
[TABLE]
Let Gread be the algorithm (it GREedily ADjoins sublists), that upon seeing a new edge , immediately moves to the embedding .
For each , let be the connected components of , so that is the set of all sublists induced by . This naturally defines a binary tree : for every first occurence of connecting two sublists in , there are two corresponding edges and in (see Figure 4). For every , Gread incurs some cost for reconfiguring, and the following lemma bounds this cost.
Lemma 6
Let be as before and let be an edge connecting two sublists and of . It holds that
[TABLE]
Proof
With moves, we can optimally embed . With an additional moves, we can relocate the smaller of and to achieve an optimal embedding of . Therefore , and the claim follows.
For a node , let and denote ’s left and right child respectively. Further, let denote the number of nodes in the subtree rooted at . Observe that for any binary tree with nodes , it holds that
[TABLE]
Theorem 4.1
For any , with , such that and is a line graph,
[TABLE]
Proof
The total cost of Gread is the sum of reconfiguring after every plus accessing every request at cost 1:
[TABLE]
As a corollary, it is not hard to show that Gread achieves optimal competitiveness for the worst case sequence constructed in Section 3. Additionally, in Appendix 0.B we show a distributed implementation of this algorithm using message passing.
5 Related Work
As discussed above, the motivation for our work stems from the increasing flexibilities available in networked systems, supporting resource migrations and reconfigurable topologies. In the following, we will review works related to the technical and algorithmic contributions in this paper.
One important area of related work arises in the context of the dynamic list update problem. Since the groundbreaking work by Sleator and Tarjan on amortized analysis and self-adjusting datastructures [21], researchers have also explored many interesting variants of self-adjusting datastructures, also using randomized algorithms [19] or lookaheads [1, 3], or offline algorithms [5, 18]. The deterministic Move-To-Front (MTF) algorithm is known to optimally solve the standard formulation of the list update problem: it is 2-competitive [21], which matches the lower bound [4]. To the best of our knowledge, the competitive ratio in the randomized setting (against an oblivious adversary) is still an open problem: the best upper bound so far is 1.6 [3], and the best lower bound 1.5 [22]. The randomized algorithm [3] makes an initial random choice between two known algorithms that have different worst-case request sequences, relying on the BIT [19] and TIMESTAMP [2] algorithms.
We also note that the self-adjusting linear network design problem can be considered a special case of general online problems such as the online Metrical Task System (MTS) problems. However, given the exponential number of possible configurations, the competitive ratio of generic MTS algorithms will be high if applied to our more specific problems (at least according to the existing bounds). Furthermore, we note that in case of line request graphs, the problem can also be seen as a learning problem and hence related to bandits theory [12].
In terms of reconfigurable networks, there exist several static [7, 10] and dynamic [20, 17] algorithms for constant-degree networks, as well as hybrid variants [14] which combine static and reconfigurable links. However, these solutions do not apply to the line and do not provide performance guarantees over time; the latter also applies to recent work on node migration models on the grid [6].
The paper closest to ours is by Olver et al. [16] who introduced the Itinerant List Update (ILU) problem: a relaxation of the classic dynamic list update problem in which the pointer no longer has to return to a home location after each request. The authors show an lower bound on the randomized competitive ratio and also present an offline polynomial-time algorithm and prove that it achieves an approximation ratio of . In contrast, we in our paper focus on online algorithms and request graphs forming a line (or grid). In fact, we show that the lower bound even holds in this case, at least for deterministic algorithms. We also present an online algorithm which matches this bound in our model.
6 Conclusion
We presented a first and asymptotically tight, i.e., -competitive online algorithm for self-adjusting reconfigurable line networks with linear demand. Both our lower and upper bounds are non-trivial, and we believe that our work opens several interesting directions for future research. In particular, it would be very interesting to shed light on the competitive ratio achievable in more general network topologies, and to study randomized algorithms.
Appendix 0.A Geometric Proof
Theorem 0.A.1
Let and be sequences of nonnegative numbers, and let (resp. ) denote . Let the weight of an involution222A function such that for all . over the indices be defined as:
[TABLE]
The average weight over all involutions is .
Proof
Let denote the set of all involutions on a set of elements, where is given by the recurrence with . For every pair of distinct indices , there are involutions such that (namely for all involutions on the remaining indices). Similarly for every index , there are involutions such that . Thus, for every ordered pair of (not necessarily distinct) indices there are at least involutions with .
For convenience we define a staircase of points . Observe that we can subdivide the rectangle defined by and the origin into axis-aligned rectangles, so that the area of every such rectangle corresponds to the weight of one ordered pair of indices (see Figure 5). Since every ordered pair of indices appears in at least involutions, their weight (and thus the corresponding rectangle), contributes at least times in the sum of weights over all involutions. This means that the area of the complete rectangle contributes times to that sum:
[TABLE]
To lower bound , we first define and observe that this definition is equivalent to the one in Lemma 7:
[TABLE]
Since , we can use Lemma 7 to lower bound by:
[TABLE]
thus yielding an average weight of over all involutions.
Lemma 7
Let with ; for all it holds that:
[TABLE]
Proof
The proof is by induction on , with base case . From we conclude:
[TABLE]
And from we conclude:
[TABLE]
Appendix 0.B Distributed Implementation of Gread
To make Gread distributed we have several problems to overcome: i) routing, ii) knowing to which (temporary) sublist every node belongs together with the size of the sublist, and iii) how to perform the reconfiguration and merging of two sublists. We address these issues one by one.
Routing: The basic problem with routing is that the source nodes do not know the location of the destination, since initially there is no sense of direction. To overcome this problem each source initiates an exponential search on both sides of the line network when it first needs to communicate with a destination. This will guarantee that the cost of the first route request will be for a destination that is hops away on the line network. Note that this is proportional the cost of any algorithm. According to Gread the cost of all future requests will be 1 since after the first communication request the source and destination are reconfigured to be neighbors.
Sublist: During the execution each node maintains the following information: A bit that indicates if it is at the end of a sublist (a node is at the end of a sublist if it has less than two neighbors from that sublist). If it is at the end of the list then the node maintains the size of the list (up to bits).
Reconfiguration: Basically Gread merges two sublists by swapping the shorter list toward the longer sublist. Note that this happens only on the first routing request from a source to destination. This can be done in a distributed manner in the following way. On the first routing request, the source (which must be an end node) attaches the size of its sublist to the message. The destination (which also must be an end node), upon receiving the request, answers to the source with the size of its own sublist (initially set to one). It is then clear to both the source and destination which sublist needs to move toward which sublist and what will be the size of the merged sublist. Then, both source and destination send messages within their sublist informing the other ends of the sublist of the size of the merged list. Now, w.l.o.g assume the destination needs to move toward the source. The destination then starts performing swaps (with its neighbor that is not on its current list) toward the source. This process ends when both the destination is a neighbor of the source and the source is a neighbor of its previous neighbor on its list. Before starting the swaps the destination informs its neighbor (which in turn informs its neighbor and so on) to follow up after it with similar swaps. It can be observed that after this process the two list will be merged into a larger list and both ends will know the sizes of the new sublist. The cost of the reconfiguration is where and are the two sublists involved in the merging.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Albers, S.: A competitive analysis of the list update problem with lookahead. Theoretical Computer Science 197 (1-2), 95–109 (1998)
- 2[2] Albers, S.: Improved randomized on-line algorithms for the list update problem. SIAM Journal on Computing 27 (3), 682–693 (1998)
- 3[3] Albers, S., Von Stengel, B., Werchner, R.: A combined bit and timestamp algorithm for the list update problem. Information Processing Letters 56 (3), 135–139 (1995)
- 4[4] Albers, S., Westbrook, J.: Self-organizing data structures. In: Online algorithms, pp. 13–51. Springer (1998)
- 5[5] Ambühl, C.: Offline list update is np-hard. In: European Symposium on Algorithms. pp. 42–51. Springer (2000)
- 6[6] Avin, C., Haeupler, B., Lotker, Z., Scheideler, C., Schmid, S.: Locally self-adjusting tree networks. In: 2013 IEEE 27th International Symposium on Parallel and Distributed Processing. pp. 395–406. IEEE (2013)
- 7[7] Avin, C., Hercules, A., Loukas, A., Schmid, S.: Towards communication-aware robust topologies. Ar Xiv Technical Report (2017)
- 8[8] Avin, C., Loukas, A., Pacut, M., Schmid, S.: Online balanced repartitioning. In: Proc. 30th International Symposium on Distributed Computing (DISC) (2016)
