An O(sqrt n) Space Bound for Obstruction-Free Leader Election

We present a deterministic obstruction-free implementation of leader election from $O\sqrt n$ atomic Ologn-bit registers in the standard asynchronous shared memory system with n processes. We provide also a technique to transform any deterministic obstruction-free algorithm, in which any process can finish if it runs for b steps without interference, into a randomized wait-free algorithm for the oblivious adversary, in which the expected step complexity is polynomial in n and b. This transformation allows us to combine our obstruction-free algorithm with the leader election algorithm by Giakkoupis and Woelfeli¾?[21], to obtain a fast randomized leader election and thus test-and-set implementation from $O\sqrt n$ Ologn-bit registers, that has expected step complexity Ologi¾? n against the oblivious adversary. Our algorithm provides the first sub-linear space upper bound for obstruction-free leader election. A lower bound of Ωlogn has been known since 1989i¾?[29]. Our research is also motivated by the long-standing open problem whether there is an obstruction-free consensus algorithm which uses fewer than n registers.

[1]  James Aspnes,et al.  Randomized Consensus in Expected O(n 2) Total Work Using Single-Writer Registers , 2011, DISC.

[2]  Dan Alistarh,et al.  Fast Randomized Test-and-Set and Renaming , 2010, DISC.

[3]  Faith Ellen,et al.  Time lower bounds for implementations of multi-writer snapshots , 2007, JACM.

[4]  Marina Papatriantafilou,et al.  Randomized naming using wait-free shared variables , 1998, Distributed Computing.

[5]  James H. Anderson,et al.  Composite registers , 1990, PODC '90.

[6]  Faith Ellen,et al.  The space complexity of unbounded timestamps , 2008, Distributed Computing.

[7]  Eugene Styer,et al.  Tight bounds for shared memory symmetric mutual exclusion problems , 1989, PODC '89.

[8]  Yehuda Afek,et al.  Wait-free Test-and-Set (Extended Abstract) , 1992, WDAG.

[9]  Mark Moir,et al.  Obstruction-Free Algorithms Can Be Practically Wait-Free , 2005, DISC.

[10]  Yonatan Aumann,et al.  Efficient asynchronous consensus with the weak adversary scheduler , 1997, PODC '97.

[11]  Hagit Attiya,et al.  Tight bounds for asynchronous randomized consensus , 2008, JACM.

[12]  Dan Alistarh,et al.  Sub-logarithmic Test-and-Set against a Weak Adversary , 2011, DISC.

[13]  Dan Alistarh,et al.  The Complexity of Renaming , 2011, 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science.

[14]  Alessandro Panconesi,et al.  On the importance of having an identity or, is consensus really universal? , 2005, Distributed Computing.

[15]  Lisa Higham,et al.  Long-Lived, Fast, Waitfree Renaming with Optimal Name Space and High Throughput , 1998, DISC.

[16]  Nancy A. Lynch,et al.  Distributed Algorithms , 1992, Lecture Notes in Computer Science.

[17]  Maurice Herlihy,et al.  Wait-free synchronization , 1991, TOPL.

[18]  Sam Toueg,et al.  Time and Space Lower Bounds for Nonblocking Implementations , 2000, SIAM J. Comput..

[19]  Larry Rudolph,et al.  Efficient synchronization of multiprocessors with shared memory , 1986, PODC '86.

[20]  Morteza Zadimoghaddam,et al.  Optimal-time adaptive strong renaming, with applications to counting , 2011, PODC '11.

[21]  Hagit Attiya,et al.  Lower Bounds for Randomized Consensus under a Weak Adversary , 2010, SIAM J. Comput..

[22]  Paul M. B. Vitányi,et al.  Randomized two-process wait-free test-and-set , 2001, Distributed Computing.

[23]  Wojciech M. Golab,et al.  An O(1) RMRs Leader Election Algorithm , 2010, SIAM J. Comput..

[24]  Nancy A. Lynch,et al.  Impossibility of distributed consensus with one faulty process , 1985, JACM.

[25]  James Aspnes A modular approach to shared-memory consensus, with applications to the probabilistic-write model , 2010, PODC '10.

[26]  George Giakkoupis,et al.  On the time and space complexity of randomized test-and-set , 2012, PODC '12.

[27]  M. Habib Probabilistic methods for algorithmic discrete mathematics , 1998 .