R/W Reductions Eli Gafni UCLA Disc Godel Celebration 10/4/04.

Slides:



Advertisements
Similar presentations
Leader Election Breaking the symmetry in a system.
Advertisements

N-Consensus is the Second Strongest Object for N+1 Processes Eli Gafni UCLA Petr Kuznetsov Max Planck Institute for Software Systems.
Bigamy Eli Gafni UCLA GETCO Outline Models, tasks, and solvability What is SM? r/w w.f. asynch computability Sperner Lemma as a consequence of the.
Generalization and Specialization of Kernelization Daniel Lokshtanov.
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Is 1 different from 12? Eli Gafni UCLA Eli Gafni UCLA.
1 Randomized Concurrent Algorithms Based on slides by Dan Alistarh Giuliano Losa.
Prof. Jennifer Welch 1. FIFO Queue Example 2  Sequential specification of a FIFO queue:  operation with invocation enq(x) and response ack  operation.
Hamiltonian Circuits and Paths
Failure detector The story goes back to the FLP’85 impossibility result about consensus in presence of crash failures. If crash can be detected, then consensus.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
1 © R. Guerraoui Implementing the Consensus Object with Timing Assumptions R. Guerraoui Distributed Programming Laboratory.
R/W Reductions Eli Gafni UCLA ICDCN06 12/30. Outline Tasks and r/w impossible task: –2 cons –3 cons NP-completeness R/W reduction “Weakest Unsolvable.
What is ’’hard’’ in distributed computing? R. Guerraoui EPFL/MIT joint work with. Delporte and H. Fauconnier (Univ of Paris)
Byzantine Generals Problem: Solution using signed messages.
Failure Detectors. Can we do anything in asynchronous systems? Reliable broadcast –Process j sends a message m to all processes in the system –Requirement:
CPSC 668Set 19: Asynchronous Solvability1 CPSC 668 Distributed Algorithms and Systems Fall 2006 Prof. Jennifer Welch.
1 Principles of Reliable Distributed Systems Lecture 6: Synchronous Uniform Consensus Spring 2005 Dr. Idit Keidar.
CPSC 668Set 5: Synchronous LE in Rings1 CPSC 668 Distributed Algorithms and Systems Spring 2008 Prof. Jennifer Welch.
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
1 Principles of Reliable Distributed Systems Lecture 3: Synchronous Uniform Consensus Spring 2006 Dr. Idit Keidar.
Distributed Algorithms: Asynch R/W SM Computability Eli Gafni, UCLA Summer Course, CRI, Haifa U, Israel.
CPSC 668Set 3: Leader Election in Rings1 CPSC 668 Distributed Algorithms and Systems Spring 2008 Prof. Jennifer Welch.
Group-Solvability The Ultimate Wait-Freedom Eli Gafni UCLA DISC /4/04.
Rigidity and Persistence of Directed Graphs
An Approximation Algorithm for Requirement cut on graphs Viswanath Nagarajan Joint work with R. Ravi.
Continuous Retiming EECS 290A Sequential Logic Synthesis and Verification.
Leader Election in Rings
Deriving an Algorithm for the Weak Symmetry Breaking Task Armando Castañeda Sergio Rajsbaum Universidad Nacional Autónoma de México.
CS151 Complexity Theory Lecture 13 May 11, CS151 Lecture 132 Outline Natural complete problems for PH and PSPACE proof systems interactive proofs.
© Sergio Rajsbaum; DISC/GETCO 2004 Introduction to the Gödel Prize Session Sergio Rajsbaum Math Institute UNAM, Mexico.
Self Stabilization Classical Results and Beyond… Elad Schiller CTI (Grece)
Distributed Algorithms: Agreement Protocols. Problems of Agreement l A set of processes need to agree on a value (decision), after one or more processes.
Strategic Behavior in Multi-Winner Elections A follow-up on previous work by Ariel Procaccia, Aviv Zohar and Jeffrey S. Rosenschein Reshef Meir The School.
Election Algorithms. Topics r Issues r Detecting Failures r Bully algorithm r Ring algorithm.
An equivalent version of the Caccetta-Häggkvist conjecture in an online load balancing problem Angelo Monti 1, Paolo Penna 2, Riccardo Silvestri 1 1 Università.
Manifold Protocols TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA Companion slides for Distributed Computing.
Leader Election Algorithms for Mobile Ad Hoc Networks Presented by: Joseph Gunawan.
1 © P. Kouznetsov A Note on Set Agreement with Omission Failures Rachid Guerraoui, Petr Kouznetsov, Bastian Pochon Distributed Programming Laboratory Swiss.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Spring 2014 Prof. Jennifer Welch CSCE 668 Set 19: Asynchronous Solvability 1.
NP Complexity By Mussie Araya. What is NP Complexity? Formal Definition: NP is the set of decision problems solvable in polynomial time by a non- deterministic.
Design of Algorithms by Induction Part 1 Algorithm Design and Analysis Week 3 Bibliography: [Manber]- Chap.
Approximating Market Equilibria Kamal Jain, Microsoft Research Mohammad Mahdian, MIT Amin Saberi, Georgia Tech.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Fall 2011 Prof. Jennifer Welch CSCE 668 Set 5: Synchronous LE in Rings 1.
CS294, Yelick Consensus revisited, p1 CS Consensus Revisited
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Spring 2014 Prof. Jennifer Welch CSCE 668 Set 3: Leader Election in Rings 1.
Failure Detectors n motivation n failure detector properties n failure detector classes u detector reduction u equivalence between classes n consensus.
Distributed Algorithms (22903) Lecturer: Danny Hendler The Atomic Snapshot Object The Renaming Problem This presentation is based on the book “Distributed.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
Errol Lloyd Design and Analysis of Algorithms Approximation Algorithms for NP-complete Problems Bin Packing Networks.
1 © R. Guerraoui Set-Agreement (Generalizing Consensus) R. Guerraoui.
The VARAN Bus.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Algebraic Topology and Distributed Computing part two
Lecture 7: Dynamic sampling Dimension Reduction
MST GALLAGER HUMBLET SPIRA ALGORITHM
Distributed Algorithms (22903)
Simulations and Reductions
Presented By: Md Amjad Hossain
REDUCESEARCH Polynomial Kernels for Hitting Forbidden Minors under Structural Parameterizations Bart M. P. Jansen Astrid Pieterse ESA 2018 August.
Renaming and Oriented Manifolds
NP-Complete Problems.
Distributed Algorithms (22903)
MST GALLAGER HUMBLET SPIRA ALGORITHM
Algorithms for Extracting Timeliness Graphs
Lecture 1: Introduction
Distributed Algorithms (22903)
Presentation transcript:

R/W Reductions Eli Gafni UCLA Disc Godel Celebration 10/4/04

Outline Tasks R/W reduction “Weakest Unsolvable Task” Thesis Reductions Conclusions/Speculations

Tasks 3-Procs Test-and-Set (TST) =TST(1, 3): {p i } (win) i=0,1,2 {p i,p j } (win,lose), (lose,win) i j {p i,p j,p k }(win,lose,lose),(lose,win,lose), (lose,lose,win) i j k Allowed output tuples for “participating” sets

Tasks Cont’ed UN(n,2n-2) Uniform renaming: p 0,…,p n-1 out(p i ){1,…,2n-2) 0ut(p i )out(p j ) p i P, |P|=k<n out(p i ){1,…,2k-1}

R/W Reducibility Between Tasks Task A r/w reducible to B: A R/W B

R/W reducibility Cont’ed (2,3) set-election task: p 0,p 1,p 2 One or two procs elect themselves, the others elect an elected proc. {pi}(pi) {pi,pj}(pi,pi), (pj,pj), (pi,pj) {pi,pj,pk} (pi,pi,pi),(pi,pj,pi),(pi,pj,pj),…

R/W reducibilty Cont’d (2,3) set-election r/w reducible to 3-tst: pi: ci=di= initially register v i :=tst if v i =win then return p i else c i :=lose (*)scan if exists j s.t. d j =p i then return p i d i :=p j s.t. p j registered, c j = scan if c j = then retrun p j else goto (*)

R/W reducibility Cont’ed Reducibilty induces a directed graph over tasks A strongly connected component are tasks which are r/w equivalent Wishful “Weakest-Thesis:” –There exist a task WEAKEST(n): WEAKEST(n) is r/w unsolvable. WEAKEST(n) is reducible to any task which is unsolvable when restricted to participating set of at most n procs.

R/W reducibility Cont’ed If Weakest-Thesis hold then –“all Maurice can do, we can do better.” –Can think Java and not worry about not knowing Basic. –Can go back to thinking “distributed” rather than “topology.” Plausibilty All known unsolvable tasks are reducible to SB(n,2n-1) (Symmetry Breaking) SB(n,2n-1): p 0,…,p 2n-2 procs output 0 or 1 |P|=n not all 0’s and not all 1’s

Reductions: SB(n,2n-1) is unsolvable: HS93: Comparison-Renaming CR(n,2n-2) is unsolvable Ramsey-Theorem implies: CR(n,2n-2) unsolvable iff Renaming R(n,2n-1,2n-2) unsolvable R(n,2n-1,2n-2) reducible to SB(n,2n-1): Procs that output 0 Attiya et al rename 1,2,… Procs that output 1 2n-2,2n-3,… Attiya et al k>0 (!) rename into 2k-1 2n n 1 -1=2n-2 if n 0,n 1 >0

Reductions Cont’ed SB(n,2n-1) reducible to R(n,2n-1,2n-2): position 1,…,n-1 output 0 position n,…,2n-2 output 1 TST(n-1,n): p 0,…,p n-1 For all P at least one proc returns “win” Number of “wins” at most n-1 SB(n,2n-1) reducible to TST(n-1,n): Use two TST’s: TST 1 and TST 2 procs p 0,…,p n-1 connected to TST 1 procs p n,…,p 2n-2 TST 2 from TST 1 “win”=1 “lose=0” from TST 2 “win”=0 “lose”=1

Reductions Cont’ed TST(n-1,n) reducible to SB(n,2n-1): I donot think so! (As we heard: SB(n,2n1) is a Torus and Torus is a “manifold” and manifold satisfies Sperner so no Torus van do “real” 2-set “hole”) Currently: SB(n,2n-1) R(n,2n-1,2n-2) TST(n-1,n)

Reductions Cont’ed SE(n-1,n) Set Election: for all P proc elect a proc in P |elected|<n SSE(n-1,n) Strong Set Election: SE with if p i elect p j then p j elects itself TST(n-1,n) reducible to SE(n-1,n): SSE(n-1,n) equivalent to SE(n-1,n): SSE(n-1,n) reducible to SE(n-1,n): (*)c i :=elected(p i ), scan If exits j st d j =p i then elect(p i ):=p i else d i :=follow “arrows” to end or max in cycle scan, if c di = return d i else goto (*)

Reductions Cont’ed SSE(n-1,n) reducible to TST(n-1,n): Same trick as pointing to potential winner and suggesting it elect itself. The first one to announce lose will never elect itself. TST(n-1,n) reducible to SSE(n-1,n): If out(p i )=p i return win else lose.

Reductions Cont’ed TST(n-1,n) reducible to UR(n,2n-2): If return UR(n,2n-2)=k<n return win else lose. |P|=k<n 2k-1-k=k-1<n-1 at least one proc return <n

Reductions Cont’ed UR(n,2n-2) reducible to TST(n-1,n): The BG93 algorithm for UR(n,2n-1): Rename(m,up) Take Imm Snap c i :=S i if p i max id in S i return (m-1)+2|S i |-1 else Rename(2|S i |-2,down) Rename(m,down) Take Imm Snap c i :=S i if p i max id in S i return (m+1)+(2|S i |-1) else Rename(2|S i |,up)

Reductions Cont’ed Example: {7,4} p 7,p 4 {0,2,4,7,3} p 0,p 2,p 3 {6,0,2,4,7,3,5,1} p 1,p 6,p 5 p 7 returns 3, p 4 rename from 2 down p 0,p 2,p 3 rename from 2*5-2=8 down p 1,p 6,p 5 rename from 2*8-2=14 down p 4 will rename at 2 later 8,7,6,5,4 is exactly enough for 3 procs 14,13,12,11,10 is exactly enough for 3 procs

Reductions Cont’ed Variant on the first phase of the BG: TST(n-1,n) Know how by “helping” guarantee that the smallest returned imm snap is all by winners if S i is all made of winners and p i is max then return 2|S i |-1 else Rename(2|S i |-2,down) if S i contain losers and p i max among losers then return 2|S i |-2 else Rename(2|S i |-3,down) There will be loser who will drop off in the first phase from the smallest snap that contains both winners and losers.

Conclusions TST(n-1,n) UR(n,2n-2) SE(n-1,n) SSE(n-1,n) SB(n,2n-1) R(n,2n-1,2n-2)

Conclusion Cont’ed Challenge: Procs p 1,p 2,p 3 q 1,q 2,q 3 Uniform rename to 5 slots when p i and q i can share a slot. Conjecture: need 6. By “Thesis” there should exist a reduction More: Exist min number of rounds for set consensus for synchronous systems by r/w reduction Is all this relations a structure a fluke?