Impact of Knowledge on Election Time in Anonymous Networks

Leader election is one of the basic problems in distributed computing. This is a symmetry breaking problem: all nodes of a network must agree on a single node, called the leader. If the nodes of the network have distinct labels, then such an agreement means that all nodes have to output the label of the elected leader. For anonymous networks, the task of leader election is formulated as follows: every node v of the network must output a simple path, which is coded as a sequence of port numbers, such that all these paths end at a common node, the leader. In this paper, we study deterministic leader election in arbitrary anonymous networks. It is well known that deterministic leader election is impossible in some networks, regardless of the allocated amount of time, even if nodes know the map of the network. This is due to possible symmetries in it. However, even in networks in which it is possible to elect a leader knowing the map, the task may be still impossible without any knowledge, regardless of the allocated time. On the other hand, for any network in which leader election is possible knowing the map, there is a minimum time, called the election index, in which this can be done. Informally, the election index of a network is the minimum depth at which views of all nodes are distinct. Our aim is to establish tradeoffs between the allocated time $$\tau $$τ and the amount of information that has to be given a priori to the nodes to enable leader election in time $$\tau $$τ in all networks for which leader election in this time is at all possible. Following the framework of algorithms with advice, this information (a single binary string) is provided to all nodes at the start by an oracle knowing the entire network. The length of this string is called the size of advice. For a given time $$\tau $$τ allocated to leader election, we give upper and lower bounds on the minimum size of advice sufficient to perform leader election in time $$\tau $$τ. We focus on the two sides of the time spectrum. For the smallest possible time, which is the election index of the network, we show that the minimum size of advice is linear in the size n of the network, up to polylogarithmic factors. On the other hand, we consider large values of time: larger than the diameter D by a summand, respectively, linear, polynomial, and exponential in the election index; for these values, we prove tight bounds on the minimum size of advice, up to multiplicative constants. We also show that constant advice is not sufficient for leader election in all graphs, regardless of the allocated time.

[1]  Paola Flocchini,et al.  Sorting and election in anonymous asynchronous rings , 2004, J. Parallel Distributed Comput..

[2]  Andrzej Pelc,et al.  Time vs. Information Tradeoffs for Leader Election in Anonymous Trees , 2015, SODA.

[3]  David Peleg,et al.  Labeling schemes for flow and connectivity , 2002, SODA '02.

[4]  Sebastiano Vigna,et al.  Computing anonymously with arbitrary knowledge , 1999, PODC '99.

[5]  Miroslaw Kutylowski,et al.  Efficient algorithms for leader election in radio networks , 2002, PODC '02.

[6]  Shay Kutten,et al.  Proof labeling schemes , 2005, PODC '05.

[7]  Alfred V. Aho,et al.  Data Structures and Algorithms , 1983 .

[8]  Masafumi Yamashita,et al.  Computing on Anonymous Networks: Part I-Characterizing the Solvable Cases , 1996, IEEE Trans. Parallel Distributed Syst..

[9]  Nadjib Badache,et al.  A Self-Stabilizing Leader Election Algorithm in Highly Dynamic Ad Hoc Mobile Networks , 2008, IEEE Transactions on Parallel and Distributed Systems.

[10]  David Peleg,et al.  Time-Optimal Leader Election in General Networks , 1990, J. Parallel Distributed Comput..

[11]  Haim Kaplan,et al.  Compact labeling schemes for ancestor queries , 2001, SODA '01.

[12]  Andrzej Pelc,et al.  Drawing maps with advice , 2010, J. Parallel Distributed Comput..

[13]  David Peleg,et al.  Distributed Computing: A Locality-Sensitive Approach , 1987 .

[14]  Andrzej Pelc,et al.  Knowledge, Level of Symmetry, and Time of Leader Election , 2012, ESA.

[15]  Andrzej Pelc,et al.  Tree exploration with advice , 2008, Inf. Comput..

[16]  Yves Métivier,et al.  Deterministic Leader Election in O(D+\log n) Time with Messages of Size O(1) , 2016, DISC.

[17]  Dana Angluin,et al.  Local and global properties in networks of processors (Extended Abstract) , 1980, STOC '80.

[18]  Hagit Attiya,et al.  Computing on an anonymous ring , 1988, JACM.

[19]  Andrzej Pelc,et al.  Trade-offs Between the Size of Advice and Broadcasting Time in Trees , 2008, SPAA '08.

[20]  Masafumi Yamashita,et al.  Electing a Leader when Processor Identity Numbers are not Distinct (Extended Abstract) , 1989, WDAG.

[21]  Andrzej Pelc,et al.  Communication algorithms with advice , 2010, J. Comput. Syst. Sci..

[22]  Mohamed Jmaiel,et al.  Electing a leader in the local computation model using mobile agents , 2008, 2008 IEEE/ACS International Conference on Computer Systems and Applications.

[23]  Samir Guglani Knowledge , 2016, The Lancet.

[24]  Dan E. Willard,et al.  Log-Logarithmic Selection Resolution Protocols in a Multiple Access Channel , 1986, SIAM J. Comput..

[25]  Seif Haridi,et al.  Distributed Algorithms , 1992, Lecture Notes in Computer Science.

[26]  Julien M. Hendrickx Views in a Graph: To Which Depth Must Equality Be Checked? , 2014, IEEE Transactions on Parallel and Distributed Systems.

[27]  Andrzej Pelc,et al.  Use Knowledge to Learn Faster: Topology Recognition with Advice , 2013, DISC.

[28]  Andrzej Pelc,et al.  Fast radio broadcasting with advice , 2008, Theor. Comput. Sci..

[29]  Daniel S. Hirschberg,et al.  Decentralized extrema-finding in circular configurations of processors , 1980, CACM.

[30]  Andrzej Pelc,et al.  Election vs. Selection: Two Ways of Finding the Largest Node in a Graph , 2014, ArXiv.

[31]  Pierre Fraigniaud,et al.  Online computation with advice , 2009, Theor. Comput. Sci..

[32]  Nancy A. Lynch,et al.  Electing a leader in a synchronous ring , 1987, JACM.

[33]  Hagit Attiya,et al.  Better Computing on the Anonymous Ring , 1988, J. Algorithms.

[34]  Gary L. Peterson,et al.  An O(nlog n) Unidirectional Algorithm for the Circular Extrema Problem , 1982, TOPL.

[35]  Andrzej Pelc,et al.  Topology recognition with advice , 2016, Inf. Comput..

[36]  Sebastiano Vigna,et al.  Symmetry Breaking in Anonymous Networks: Characterizations , 1996, ISTCS.

[37]  Ran Raz,et al.  Distance labeling in graphs , 2001, SODA '01.

[38]  Andrzej Pelc,et al.  Election vs. Selection: How Much Advice is Needed to Find the Largest Node in a Graph? , 2016, SPAA.

[39]  Andrzej Pelc,et al.  Leader Election in Rings with Nonunique Labels , 2004, Fundam. Informaticae.

[40]  Pierre Fraigniaud,et al.  Local MST Computation with Short Advice , 2007, SPAA '07.

[41]  Andrzej Pelc,et al.  Knowledge, level of symmetry, and time of leader election , 2014, Distributed Computing.

[42]  Stephan Olariu,et al.  Uniform leader election protocols for radio networks , 2001, International Conference on Parallel Processing, 2001..

[43]  Nicolas Nisse,et al.  Graph searching with advice , 2009, Theor. Comput. Sci..

[44]  Andrzej Pelc,et al.  Distributed computing with advice: information sensitivity of graph coloring , 2007, Distributed Computing.

[45]  Andrzej Pelc,et al.  How much memory is needed for leader election , 2011, Distributed Computing.

[46]  Andrzej Pelc,et al.  Leader election in ad hoc radio networks: A keen ear helps , 2013, J. Comput. Syst. Sci..

[47]  Andrzej Pelc,et al.  Leader election for anonymous asynchronous agents in arbitrary networks , 2012, Distributed Computing.

[48]  Jennifer L. Welch,et al.  A leader election algorithm for dynamic networks with causal clocks , 2013, Distributed Computing.

[49]  Gérard Le Lann,et al.  Distributed Systems - Towards a Formal Approach , 1977, IFIP Congress.

[50]  Mikkel Thorup,et al.  Approximate distance oracles , 2001, JACM.