Deriving an Algorithm for the Weak Symmetry Breaking Task Armando Castañeda Sergio Rajsbaum Universidad Nacional Autónoma de México.

Slides:



Advertisements
Similar presentations
Topology in Distributed Computing: A Primer 1 / 16 Sergey Velder SPbSU ITMO.
Advertisements

Shortest Vector In A Lattice is NP-Hard to approximate
MATH 224 – Discrete Mathematics
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.
Counting the bits Analysis of Algorithms Will it run on a larger problem? When will it fail?
Lecture 3: Parallel Algorithm Design
Distributed Computing 8. Impossibility of consensus Shmuel Zaks ©
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Having Proofs for Incorrectness
From Topological Methods to Combinatorial Proofs of Kneser Graphs Daphne Der-Fen Liu 劉 德 芬 Department of Mathematics California State University, Los Angeles.
1 Nir Shavit Tel-Aviv University and Sun Microsystems Labs (Joint work with Maurice Herlihy of Brown University) © Herlihy and Shavit 2004 The Topological.
Lecture 12: Lower bounds By "lower bounds" here we mean a lower bound on the complexity of a problem, not an algorithm. Basically we need to prove that.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS Fall 2011 Prof. Jennifer Welch CSCE 668 Self Stabilization 1.
Convex Hulls in Two Dimensions Definitions Basic algorithms Gift Wrapping (algorithm of Jarvis ) Graham scan Divide and conquer Convex Hull for line intersections.
Distributed Computing 8. Impossibility of consensus Shmuel Zaks ©
1 Constructing Convex 3-Polytopes From Two Triangulations of a Polygon Benjamin Marlin Dept. of Mathematics & Statistics McGill University Godfried Toussaint.
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.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Chapter 3 Growth of Functions
Sergio Rajsbaum 2006 Lecture 3 Introduction to Principles of Distributed Computing Sergio Rajsbaum Math Institute UNAM, Mexico.
Chapter 9 Graph algorithms. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Computational Geometry Seminar Lecture 1
CPSC 668Self Stabilization1 CPSC 668 Distributed Algorithms and Systems Spring 2008 Prof. Jennifer Welch.
Graph Colouring Lecture 20: Nov 25.
Bit Complexity of Breaking and Achieving Symmetry in Chains and Rings.
Concurrency in Distributed Systems: Mutual exclusion.
© Sergio Rajsbaum; DISC/GETCO 2004 Introduction to the Gödel Prize Session Sergio Rajsbaum Math Institute UNAM, Mexico.
Hardness Results for Problems
Two-Process Systems TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA Companion slides for Distributed Computing.
Ch. 8 & 9 – Linear Sorting and Order Statistics What do you trade for speed?
Manifold Protocols TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A AA Companion slides for Distributed Computing.
1 © P. Kouznetsov A Note on Set Agreement with Omission Failures Rachid Guerraoui, Petr Kouznetsov, Bastian Pochon Distributed Programming Laboratory Swiss.
6.853: Topics in Algorithmic Game Theory Fall 2011 Constantinos Daskalakis Lecture 11.
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
6.896: Topics in Algorithmic Game Theory Lecture 6 Constantinos Daskalakis.
Lecture 7 All-Pairs Shortest Paths. All-Pairs Shortest Paths.
Alternative Wide Block Encryption For Discussion Only.
Data Structures & Algorithms Graphs
Lecture 11 Algorithm Analysis Arne Kutzner Hanyang University / Seoul Korea.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Graph Theory and Applications
Vertex Coloring Distributed Algorithms for Multi-Agent Networks
Chapter 21 Asynchronous Network Computing with Process Failures By Sindhu Karthikeyan.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
DISTRIBUTED ALGORITHMS Spring 2014 Prof. Jennifer Welch Set 9: Fault Tolerant Consensus 1.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. Fast.
6.853: Topics in Algorithmic Game Theory Fall 2011 Constantinos Daskalakis Lecture 9.
Xuding Zhu National Sun Yat-sen University Circular chromatic index.
CMPT 438 Algorithms.
Lecture 3: Parallel Algorithm Design
Algebraic Topology and Distributed Computing part two
Byzantine-Resilient Colorless Computaton
Elements of Combinatorial Topology
Algebraic Topology and Distributed Computing
Elements of Combinatorial Topology
Wait-Free Computability for General Tasks
Distributed Algorithms (22903)
Simulations and Reductions
Combinatorial Topology and Distributed Computing
Algebraic Topology and Decidability in Distributed Computing
Renaming and Oriented Manifolds
Rodolfo Conde Joint work with Sergio Rajsbaum Instituto de Matemáticas
CS200: Algorithms Analysis
Algebraic Topology and Distributed Computing part three
Combinatorial Topology and Distributed Computing
Combinatorial Topology and Distributed Computing
Locality In Distributed Graph Algorithms
Presentation transcript:

Deriving an Algorithm for the Weak Symmetry Breaking Task Armando Castañeda Sergio Rajsbaum Universidad Nacional Autónoma de México

This talk is about Symmetric and chromatic subdivision Chromatic and binary sphere no maps symmetric map that no maps on mono?? Symmetric: Faces same dim => same subdivision All possible assignments of binary values Symmetric map: Faces same dim => mapped same binary colors Exists subdivision s.t. map exists?

This talk is about... Impossible for dimension w.l.o.g. Since the map must be symmetric The map does not exist for any subdivision ?

This talk is about... Impossible for dimension 2 Impossible for dimension 3, 4 Possible for dimension 5 Impossible for dimension 6, 7, 8 Possible for dimension 9 dim n #facesn Possible for dim n iff #faces of n-simple are relatively prime Does not exist for any subdivision

This talk is about... The relation with distributed computing: n If the subdivision exists for dimension n then n+1 There exists a distributed algorithm for n+1 processors for the Weak Symmetry Breaking task Does not exists for 2, 3, 4, 5 processors Exists for 6 processors

MODEL OF COMPUTATION

n+1 asynchronous processors with id’s 0, 1,... n... 01n

n+1 asynchronous processors with id’s 0, 1,... n shared memory with n+1 atomic registers... 01n write atomic snapshot

n+1 asynchronous processors with id’s 0, 1,... n shared memory with n+1 atomic registers at most n processors can fail by crashing... 01n

n+1 asynchronous processors with id’s 0, 1,... n shared memory with n+1 atomic registers at most n processors can fail by crashing wait-free algorithms: a correct processor cannot wait forever... 01n NO restriction on relative speeds Many possible schedulings: order processes’ operations

WEAK SYMMETRY BREAKING (WSB)

WSBWSB output values:, input values: id’s

WSBWSB output values:, input values: id’s

WSBWSB output values:, input values: id’s

Trivial algorithm: processors with even id decide and processors with odd id decide Avoiding trivial solutions. Each processors can only do comparisons A > B? A = B? It does not know its id!! This requirement implies symmetry on the outputs of executions with similar scheduling

Trivial algorithm: processors with even id decide and processors with odd id decide Avoiding trivial solutions. Each processors can only do comparisons A > B? A = B? It does not know its id!! This requirement implies symmetry on the outputs of executions with similar scheduling 01 2 zzz ???

Trivial algorithm: processors with even id decide and processors with odd id decide Avoiding trivial solutions. Each processors can only do comparisons A > B? A = B? It does not know its id!! This requirement implies symmetry on the outputs of executions with similar scheduling 01 2 zzz ??? It has to decide the same!!

Results n n+1 For some exceptional values of n there is an algorithm for WSB for n+1 processors n n+1 2 n+1 n n Exceptional n = are relatively prime n n+1 For the other values of n there is no algorithm for WSB for n+1 processors n n = 5, 9, 11, 13, New upper and lower bounds for renaming

TOPOLOGICAL REPRESENTATION ALGORITHM FOR WSB

In 1993 it was discovered the deep relationship between topology and distributed computing [Borowsky & Gafni 93] [Herlihy & Shavit 93, 99] [Saks & Zaharoglou 93, 00] Represent the global state of an execution of an algorithm as a simplex All executions are represented by a complex Here we focus on WSB

The complex is a chromatic and binary colored subdivision of a proper colored simplex Initial state of the system All possible executions

The complex is a chromatic and binary colored subdivision of a proper colored simplex. The more steps processors execute, the more fine the subdivision is 0 12 Initial state of the system All possible executions Simplex proper colored with id’s procs participate Binary coloring = output value

solo executions All processors participate Two processors participate The complex is a chromatic and binary colored subdivision of a proper colored simplex. The more steps processors execute, the more fine the subdivision is 0 12

Comparison requirement => symmetry on the boundary For two i-faces s 1, s 2, there is a simplicial bijection from sub(s 1 ) to sub(s 2 ) that preserves id coloring and binary coloring

The complex is a chromatic and binary colored subdivision of a proper colored simplex. The more steps processors execute, the more fine the subdivision is 0 12 NO monochromatic simplexes of dimension n Representation WSB algorithm: chromatic subdivision with a symmetric binary coloring and no monochromatic n-simplexes

[Borowsky & Gafni 93, 97] [Herlihy & Shavit 93, 99] [Saks & Zaharoglou 93, 00] [Attiya & Rajsbaum 02] If there exists an algorithm for WSB for n+1 processors then there exists a chromatic subdivision of dim n with a symmetric binary coloring and no monochromatic n-simplexes Impossibility for WSB: for some n, symmetry => any such a subdivision contains monochromatic

If there exists a chromatic subdivision of dim n with a symmetric binary coloring and no monochromatic n-simplexes then there exists an algorithm for WSB for n+1 processors Asynchronous Computability Theorem [Herlihy & Shavit 93, 99], Simplex Convergence Algorithm [Borowsky & Gafni 97] Algorithm for WSB: for exceptional n, there are subdivision with symmetry and no monochromatic

DERIVING ALGORITHMS FOR WSB

n K Goal: For exceptional n, construct a subdivision K chromatic binary coloring symmetric on the boundary no monochromatic n-simplexes n n+1 2 n+1 n n Exceptional n = are relatively prime

Key: there exist integers k i ‘s which satisfy the equation n if and only if n is exceptional n n+1 2 n+1 n = 0 k0k0 k1k1 k n-1

The construction in two steps: k i K 1.Use these k i ’s to construct a symmetric subdivision K with 0 monochromatic n-simplexes counted by orientation: x counted as +1 and x counted as –1 K 2.Cancel out the simplexes counted as +1 with the simplexes counted as –1 without modifying the boundary of K

#mono STEP 1: A SUBDIVISION WITH #mono=0

The Chromatic Cone 1. Assume a symmetric boundary 2. Put a red monochromatic triangle at the center 3. Connect them Each simplexes on bd with carrier of same dim, is connected to the face of the center that completes its id’s

Every corner produces a triangle Every edge produces a triangle If red monochromatic then red monochromatic Only has red monochromatic n-simplexes The Chromatic Cone for i-faces s 1, s 2 => n-simplexes produced by isomorphic i-simplexes of sub(s 1 ) and sub(s 2 ) are counted in the same way (by orientation)

K k i 1.Construct K by dimension: each proper i-face is appropriate subdivided such that it has k i red-mono i- simplexes. All i-faces have the same subdivision (binary coloring is symmetric) bd( K ) S Step 1: bd( K ) 2. Once the boundary bd( K ) is done, do a chromatic cone with a red-mono simplex at the center Not any subdivision with k i red mono i-simplexes works Every k i, it is possible to construct the appropriate subdivision There is a restriction for k 0 but it is not a big problem

K 3.Orient K such that simplex at the center is counted as +1 4.Count the number of monochromatic n-simplexes: n-simplexes produced by one sub(i-face) # i-faces simplex at the center n+1 i +1 i = 0 n - 1 #mono = 1 + sum k i = 0 By construction The boundary induces the number of monochromatic simplexes!! #mono Using Index Lemma => for any pseudomanifold, the boundary induces #mono #mono For a subdivision with a symmetric a binary coloring #mono is

STEP 2: CANCELING SIMPLEXES +1 WITH –1

#mono= 0 From step 1: symmetric subdivision K with #mono= 0 n-simplexes, counting by orientation Goal: subdivision of K with NO mono n-simplexes and the same boundary (to preserve symmetry) Idea: algorithm to cancel out each mono counted as +1 with a mono counted as –1

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

+1 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them

The algorithm works for any dimension n >= 2 K Cancel out a simplex of K counted as +1 with a simplex counted as –1 by subdividing a path which connects them n n exceptional => subdivision K with no monochromatic => algorithm for WSB

The easiest case is when simplexes are adjacent

We did not modify the boundary

An example of a path of size

The boundary is the same

A path of size 6

The algorithm takes the path and stretches it on the chromatic and binary sphere

The chromatic and binary sphere n+1n+1 Contains a proper colored n-simplex for every possible assignment of n+1 binary values to the n+1 colors

Example A

Example B

P#mono For a input path P, #mono is 0 bd(P)#mono The algorithm does not touch bd(P), therefore #mono of sub(P) sub(P) is 0 P Always exists a subdivision of P that is mapped exactly 0 times to the mono simplexes of the chromatic and B binary sphere B P It makes a continuous transformation from P tosub(P)

The Algorithm: +1 1.Inspect shared (n-1)-faces from the beginning to find a subdividing point

+1 1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and – The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 3.Produce two paths of size smaller than or equal the size of original path The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 3.Produce two paths of size smaller than or equal the size of original path 4.Proceed recursively on resulting paths The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 3.Produce two paths of size smaller than or equal the size of original path 4.Proceed recursively on resulting paths The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 3.Produce two paths of size smaller than or equal the size of original path 4.Proceed recursively on resulting paths The Algorithm:

1.Inspect shared (n-1)-faces from the beginning to find a subdividing point 2.Subdivide a shared (n-1)-face to produce two red-mono n-simplexes counted as +1 and –1 3.Produce two paths of size smaller than or equal the size of original path 4.Proceed recursively on resulting paths The Algorithm:

Subdividing point: Notation for a path S 0 – S 1 – S 2 –... – S q-1 – S q Red-mono counted as +1 and -1 No mono For S i – S i+1, S i,i+1 is the (n-1)-face shared by S i and S i+1 The subdividing point is the smallest m such that #red(S m+1,m+2 ) >= n+1-m

The subdividing point m is like the middle of the path +1 P1P1 +1 P1P1 P2P2 Shortest path P2 that completes P1, | P1 | = | P2 | In the middle we can produce paths of size smaller than or equal original

Once the algorithm finds the subdividing point, there are 6 cases Each case is tailor-made subdivided For 4 cases algorithm produces paths of size smaller than the original path For 2 cases algorithm produces a path of size equal than the original When a resulting paths is of size equal to the input, paths of size smaller on the next recursively invocation

Same size as the input

Conclusions 1.WSB task: processors decide red or blue. If all processors participate, not all decide the same value. Comparison based algorithms 2.Relation distributed computing and topology => there is a chromatic subdivision of an n-simplex with a symmetric binary coloring and no monochromatic n- simplexes iff there is an algorithm for WSB for n+1 processors

Conclusions non-exceptional n n+1 3.For non-exceptional n, there is no algorithm for WSB for n+1 processors exceptional n n+1 4.For exceptional n, there exists an algorithm for WSB for n+1 processor K #mono a) chromatic subdivision K with a symmetric binary coloring and #mono = 0 K b) Subdivision of K with the same boundary and no monochromatic n-simplexes

The end