On the Complexity of Distributed Edge Coloring and Orientation Problems
Abstract
Understanding the role of randomness when solving locally checkable labeling (LCL) problems in the LOCAL model has been one of the top priorities in the research on distributed graph algorithms in recent years. For LCL problems in bounded-degree graphs, it is known that randomness cannot help more than polynomially, except in one case: if the deterministic complexity of an LCL problem is in and its randomized complexity is in , then the randomized complexity is guaranteed to be and it is even known to be in bounded-degree trees. However, the fundamental question of which problems with a deterministic complexity of can be solved exponentially faster using randomization still remains wide open.
We make a step towards answering this question by studying a simple, but natural class of LCL problems: so-called degree splitting problems. These problems come in two varieties: coloring problems where the edges of a graph have to be colored with colors and orientation problems where each edge needs to be oriented. For an exact classification, it is most natural to consider the -regular case (for ), where we obtain the following results.
-
We exactly characterize the complexity of problems where the edges need to be colored with two colors, say red and blue. We show that for every , the problem of red-blue coloring the edges such that every node of degree has either or red edges has randomized complexity in general graphs of maximum degree . Any other problem, i.e., any problem that does not allow two consecutive red degrees, is already known to have randomized complexity even in -regular trees. We note that a set of edges such that every node has either or incident edges in is also known as a -factor of a graph.
-
For edge orientations, we show that for any two and such that and , there are randomized algorithms with round complexities in trees and in general graphs to compute an edge orientation such that all nodes have outdegree or . Further, there exists a constant such that for any , the problem of computing an edge orientation in which all outdegrees are either at most or at least has randomized complexity even in -regular trees.
While our results are cleanest to state for the -regular case, all our algorithms naturally generalize to nodes of any degree in general graphs of maximum degree . All our algorithms also naturally generalize to the unbounded degree case and they then have a randomized complexity of (resp. for orienting general graphs).
Keywords and phrases:
LCL problems, binary labeling problems, degree splittingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysisEditors:
Andrei Arusoaie, Emanuel Onica, Michael Spear, and Sara Tucci-PiergiovanniSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction and Related Work
Understanding the complexity of locally checkable labeling (LCL) problems is at the core of the area of distributed graph algorithms. LCLs were introduced by Naor and Stockmeyer in [44] as labelings of bounded-degree graphs with labels from a finite set of labels such that the correctness of a labeling can be verified by checking a constant neighborhood of each node of the graph. Classic examples for LCL problems are various coloring problems or the problem of computing a maximal independent set (MIS).
Deterministic LCL Complexity Landscape.
Since the publication of [44], researchers have made astonishing progress in understanding the distributed complexity of solving LCL problems in the model111In the model [45], the nodes of a graph can exchange messages of arbitrary size over the edges of the graph in synchronous rounds. For a formal definition, we refer to Section 2. and in related models. Apart from studying the complexity of specific problems (see, e.g., [8, 13, 30, 43, 41, 32, 24, 40, 42, 9] for a small selection), there also is substantial work on establishing the landscape of possible LCL complexities [5, 7, 6, 17, 20, 29, 25, 18, 36] and also towards understanding the task of deciding if a given LCL problem belongs to a certain complexity class [2, 18, 14, 4, 44, 3]. For general bounded-degree graphs, we know that the deterministic model complexity of LCL problems is either , in the range –, or in the range –. By using techniques of [44], Chang and Pettie [20] observed that there cannot be any LCL problem with a (deterministic or randomized) complexity in the range –. Further, Chang, Kopelowitz, and Pettie [17] proved that there cannot be any deterministic complexities between and . It has further been shown in [5, 7] that the complexity landscape in the range – is dense, i.e., there are no further gaps. In bounded-degree trees, the landscape is even more sparse. In this case, the possible deterministic LCL complexities are , , , and for every integer [20, 36, 3]. In bounded-degree trees, it is further known that for problems of complexity , determining the exact asymptotic complexity of a given problem is decidable [18].
Randomized LCL Complexities.
Understanding the role and power of randomness in the context of distributed LCL problems has been a major objective of the research in the area (see, e.g., [25, 17, 20, 29, 10, 6, 31] for papers that explicitly deal with this topic). As many LCL problems require some kind of local symmetry breaking, the use of randomness in distributed LCL algorithms is often quite natural. Recently, a series of papers [25, 29, 27, 28, 26, 46] established generic derandomization techniques that allow to turn any -round randomized algorithm for an LCL problem into a -round deterministic algorithm.222We use to denote expressions that are upper bounded by . Using randomization can therefore not gain more than a factor of . It is further known that for LCL problems of complexity , randomization does not help. There is however one important class of problems for which randomization provably helps exponentially. It was shown in [13, 34, 17] that computing a sinkless orientation of the edges of a bounded-degree graph requires rounds deterministically and rounds with randomization. Interestingly, this is a more general phenomenon. As shown in [20], on bounded-degree graphs, every randomized LCL algorithm with a round complexity of can be sped up to run in the time required to solve an instance of the constructive Lovász Local Lemma (LLL) problem with a polynomial LLL criterion (cf. Section 2). The randomized LLL round complexity is currently known to be . We therefore know that any randomized -round LCL algorithm can be sped up to run in rounds. It is further known that any randomized -round LCL algorithm can be sped up to run in rounds deterministically [17]. We therefore know that there is a class of problems that can be solved by using LLL algorithms that have polylogarithmic deterministic complexity and that have randomized complexity . In bounded-degree trees, it is even known that the complexity of the constructive LLL problem is exactly . Hence, in bounded-degree trees, some of the problems that can be solved in rounds deterministically can be solved in rounds with randomization and in the case of bounded-degree trees, these also are the only problems for which randomization helps. While we know that the randomized LLL complexity class exists, we do not yet have a thorough understanding of which problems belong to this family, not even for simple families of LCL problems in bounded-degree trees, raising the following important question.
Which LCL problems (on bounded-degree trees or graphs) with a deterministic complexity of can be solved in sublogarithmic (and therefore in , resp. ) rounds using randomization?
It seems likely that providing a full characterization (i.e., designing an algorithm that decides for every LCL problem whether it can be solved with randomization in rounds or requires rounds), if possible at all, will require a structured research program as such questions are notoriously hard.333For instance, it is not even known whether it is decidable whether a given LCL problem can be solved in constant time on bounded-degree trees. We make first progress towards this goal by providing such characterizations for some of the most fundamental problem classes amongst LCL problems exhibiting deterministic complexities of rounds. Note that a variety of classic LCL problems, such as -coloring, -edge coloring, maximal matching or maximal independent set, can be solved in rounds on constant-degree graphs [35], and therefore do not fall into the class of -round problems. Instead, the typical problems considered in the literature that fall in the deterministic -regime are splitting problems (which form the heart of classic divide-and-conquer approaches for solving other LCLs), which encompass both orientation and coloring problems. In their standard form, splitting problems fall into the class of so-called binary labeling problems – a class that has been instrumental in the context of complexity classification, including (efficient) decidability, in the deterministic setting [4]. Even restricted to binary labeling problems, the task of deciding between sublogarithmic and (at least) logarithmic randomized complexity is a major open problem on the path towards understanding randomness for LCL problems.
Binary Labeling Problems.
In an attempt towards exactly characterizing the distributed complexities of all problems in a large class of LCL problems, the authors of [4] considered the class of binary labeling problems in the edge labeling formalism [12]. In this formalism, labels have to be assigned to the edges of a two-colored bipartite graph. For each side of the bipartite graph, the valid configurations are given by a set of allowed multisets of edge labels. The standard way to use this framework in general graphs is to consider the bipartite graph between nodes and edges. Each of the original nodes of a graph is colored white and in the middle of each edge , we place an additional black node. Each edge is then split into two half-edges and . The labels are placed on the half-edges and the validity of a labeling is determined by the allowed white node configurations and the allowed black edge configurations. The binary labeling problems are all problems that can be expressed with only two different labels (we call them red () and blue () in the following) in the edge labeling formalism. In the graph setting with labels on half-edges, binary labeling problems correspond to edge orientation and edge -coloring problems. If the allowed edge configurations are and , we get problems where the edges of a graph need to be colored red and blue. If the only allowed edge configuration is , we get problems where all edges need to be oriented and if the allowed edge configurations are and , we get problems where we need to compute a partial orientation of the edges. All other combinations are symmetric or they lead to trivial cases.
In [4], the deterministic complexity of all binary labeling problems in the general edge labeling formalism in biregular bounded degree trees444More concretely, for two constants and , it is assumed that the bipartite graph is properly colored with colors white and black and that all white nodes have degree and all black nodes have degree . Note that when labeling half-edges in -regular general graphs, we have and . was exactly characterized. We thus have an exact characterization of the deterministic complexity of all LCLs in regular bounded-degree trees that either require to color the edges with two colors or to (partially) orient the edges. In [4], the authors also already prove some initial results on the randomized complexity of binary labeling problems. However, as pointed out above, classifying the randomized complexity of those problems is still largely open and our results can be seen as a step towards closing this gap. We in particular give an exact characterization of the randomized complexity of solving arbitrary edge -coloring problems in regular bounded-degree trees.
Degree Splitting Problems.
A special and important case of binary labelings are balanced oriented and unoriented degree splittings. Unoriented degree splittings are colorings of the edges with two colors such that every node is incident to approximately edges of each color. An oriented degree splitting is an orientation of the edges so that for every node, indegree and outdegree are approximately equal. Degree splitting problems are not only natural to study, but also serve as key tools in other distributed tasks. Such problems lie at the heart of distributed divide-and-conquer algorithms and variants of splitting have in particular enabled efficient edge-coloring algorithms. In [34, 30], splitting was used to obtain the first deterministic polylog-time edge coloring algorithm that uses only by a -factor more colors than the commonly considered colors (thereby solving a long-standing open problem from the 90s). In [33], splitting is even used to obtain edge colorings with only colors. Also, recent work on hypergraph sinkless orientation [16] (which is a weak form of degree splitting) improved edge coloring and already inspired further follow-ups [37, 38]. Since our results provide stronger splitting guarantees, we expect them to similarly facilitate future advances, especially for randomized algorithms where previous progress has been limited. The distributed computation of degree splittings was in particular studied in [34, 30]. In [30] it was shown that one can compute both versions of degree splitting with constant discrepancy in time deterministically and in time randomized. The discrepancy is the maximum absolute difference between the two kinds of edges at any node. For oriented degree splitting, it was even shown that for odd-degree nodes, a discrepancy of , and for even-degree nodes, a discrepancy of can be achieved. We improve the algorithm of [30] and we show that also for unoriented degree splitting, the same discrepancy as for oriented degree splitting can be achieved.
1.1 Our Contributions
All our algorithms are based on existing subroutines for the following three problems: sinkless orientation, balanced orientation, and constructive LLL. The three problems have different randomized and deterministic complexities and also different complexities on general graphs and on trees. As all our algorithms are deterministic reductions to three subroutines, it will be convenient to express all the algorithm complexities as functions of the complexities of the three subroutines. We therefore introduce the following notation. We use (for sinkless orientation), (for balanced orientation), and (for constructive LLL) to denote the time complexities of the three subroutines in -node graphs in the model. We formally define the three problems in Section 2. Below, we just give the concrete time bounds that the three shortcuts stand for. In the case of and , the bounds depend on a degree parameter . For the randomized algorithms, the time bounds hold with high probability. The time bounds for general graphs follow from [21, 29, 27], the randomized bound for general graphs in addition requires the algorithm of [23]. The time bounds for tree-like graphs follows from [19]. Tree-like graphs in particular include graphs of the form if is a tree. Where not specified, the bounds hold on general graphs.
We will express the round complexities of all our algorithms as a deterministic function of the above complexities. To get the concrete bound for a specific case (trees or general graphs / deterministic or randomized algorithms), one just has to plug in the concrete bounds from above. For randomized algorithms, the resulting bound then also holds with high probability.
Generalized Balanced Degree Splitting.
As a first result, we generalize and also strengthen the main degree splitting result of [30]. For this result, we use the edge labeling formalism for graphs (where we label half-edges), but in addition, to be able to express our generalization we also assume that each edge of a given graph has a binary input type. Concretely, we assume that each edge is either of type (coloring edge) or of type (orientation edge). A valid labeling of the half-edges with labels and (red-blue coloring of the half-edges) must satisfy the following. For every edge of type , either both half-edges get assigned or both half-edges get assigned . For every edge of type , one half-edge must get label and the other half-edge must get label . For a given labeling of the half edges and a node , we use and to denote the number of incident half-edges of that are labeled and (colored red and blue), respectively.
Theorem 1.
Let be an -node multigraph without selfloops, let be the maximum degree of , and assume that every edge is either of type or of type . Then, there is an -round algorithm to compute a red-blue coloring of the half-edges of such that for every node of degree , it holds that
| (1) |
If all edges are of type , we can even guarantee that
| (2) |
Proof.
Follows from Sections 3 and 3 in Section 3.
The above theorem strengthens and generalizes the result of [30] in the following way. In [30] it is shown that a balanced edge orientation where every node has indegree and outdegree in can be computed in time . That is, Equation 1 of Theorem 1 holds if all edges are of type . The authors of [30] further prove that if all edges are of type , then one can achieve a partition into red and blue edges such that for all , we have . Implicitly, the techniques in [30] also imply that the same result holds when the edges can be of type or type .
Corollary 2.
Let be an -node multigraph without selfloops, let be a parameter, and assume that every edge is either of type or of type . Then, there is an -round algorithm to compute a red-blue coloring of the half-edges of such that for every node of degree , .
Proof.
The corollary follows by splitting each node of into virtual nodes and partition the edges of among such that each virtual node gets between and many edges (or keep as it is if ). The number of virtual nodes per node is then at most . We apply the algorithm of Theorem 1 to the obtained virtual graph and use the obtained edge coloring on . By Equation 1, we then have
Arbitrary Unoriented Red-Blue Splitting.
As one of our main results, we generalize the second part of Theorem 1 (Equation 2) to computing an arbitrary split into red and blue edges. We show that one can efficiently compute a red-blue partitioning of the edges so that the red degree (and consequently also the blue degree) of any node of degree only takes on one of the two values or (defined as problem below). The red and blue degrees of any node of degree can take on one of three different values, which depend on (defined as problem below). Concretely, we solve the following family of problems.
Definition 3 (Arbitrary Red-Blue Coloring Problem).
Let and be two integer parameters. We define:
-
Problem for nodes of degree : The problem defines the set of /-labelings of the edges of a graph of maximum degree such that for all node of degree , the number of incident red edges is .
-
Problem for nodes of general degree: The problem extends the definition and also requires non-trivial guarantees for nodes of degree . The problem defines the set of all /-labelings of the edges such that a) is solved and b) there exists vector such that for each , we have
-
–
Each node of degree has .
-
–
Let , , , and . If , then , if , then , otherwise, .
-
–
For nodes of degree , the definition implies that the allowed red degree is either or and if is close enough to an integer , then must be for nodes of degree . The next theorem shows that problem can be solved almost as efficiently as the balanced degree splittings of Theorem 1.
Theorem 4.
On -node graphs with maximum degree , problem can be solved in rounds.
To prove Theorem 4, we assume that we are given a red/blue-partition of the edges of such that every node of degree has either or red edges (and consequently either or blue edges). We can then use Equation 2 of Theorem 1 to further split the red part (or the blue part) in a balanced way and to recolor half of the old red part blue (or half of the old blue part red). This can be done in such a way that for nodes of degree , and can still only take on two consecutive values. We will see that when starting from a uniform coloring, by repeating this times (and possibly switching the colors in the end), one can solve for every .
We remark that when solving in -regular graphs, the set of red edges forms what is known as a -factor of the graph [1]. It was proven by Tutte [47] that every -regular graph contains a -factor for every . An easy way to see this is as a consequence of Vizing’s theorem [48] that every graph of maximum degree can be properly edge-colored with colors. Given -edge coloring of a -regular graph, clearly all the edges of colors form a -factor (since every node can miss at most one of those colors). The recent distributed -edge coloring algorithm of Bernshteyn [11] therefore implies that a -factor can be computed in time in the model. Prior to the current work, this is the only somewhat efficient distributed algorithm to compute a -factor of regular graphs that we are aware of. Note that Theorem 4 implies that a -factor of a -regular graph can be computed in randomized time .
Unbalanced Orientations.
In [30], it was shown that one can compute a balanced orientation, i.e., an orientation in which every node has indegree and outdegree approximately in randomized rounds in bounded-degree graphs. Further, in [4], it was shown that some unbalanced orientation problems require rounds even with randomization in regular bounded-degree trees. Concretely, they show that this holds for a sufficiently large constant and orientations in which all nodes either have outdegree or indegree . We generalize both these results. The first theorem gives a family of unbalanced edge orientation problems that can be solved in randomized rounds in trees and in randomized rounds in general bounded-degree graphs.
Theorem 5.
Let be an -node graph with maximum degree and let be two parameters for which . There is a -round algorithm to compute an edge orientation in which every node either has outdegree at most or indegree at most .
We present a random construction of the orientation of the edges that is based on independent random variables on the nodes and edges. We show that the probability that a node does not satisfy the condition required by the theorem is polynomially small in , and the orientation of each edge only depends on the random variables of itself and its two endpoints. As a result, the problem of computing such an orientation can be expressed as an LLL instance with dependency degree and a polynomial LLL criterion. The orientation can therefore be computed in time by using existing distributed LLL algorithms. We also generalize the lower bound that was proven in [4].
Theorem 6.
Let be an integer, let be two parameters for which , and let be a sufficiently large constant. In -regular trees, computing an orientation for which every node either has outdegree at most or indegree at most requires rounds in the model.
To prove the theorem, we show how to construct a -regular graph with girth for which an orientation for which every node has outdegree at most or indegree at most (where ) does not exist if the constant is chosen sufficiently large. As in rounds, nodes cannot locally distinguish a -regular tree from a high-girth -regular graph, this implies that in -regular trees, we need rounds to compute the desired orientation.
Theorems 5 and 6 approximately capture the edge orientations that can be computed in randomized rounds in -regular trees or in rounds in -regular graphs in the following way. Any locally checkable orientation problem (without input) in -regular graphs can be expressed as a list of allowed outdegrees. Let be the outdegrees that a node of degree is allowed to have in a valid solution to a given problem. We can define the -smoothed version of this problem as the problem that allows all outdegrees for which there is a value () for which . On the one hand, Theorem 5 shows that whenever there exists such that , , and (we can have ), then an -smoothed version of the problem can be solved in time . On the other hand, Theorem 6 shows that whenever there does not exist two such values, then for a small enough constant , not even a -smoothed version of the problem can be solved in time .
The technical details of Theorems 5 and 6 appear in Section 5 in [15]. Further, in Section 6 in [15], we discuss to what extent our algorithms can be implemented with small messages.
2 Model and Definitions
Mathematical Definitions and Preliminaries.
For a (multi)graph and a node , we use to denote the degree of (in the case of a multigraph, the number of incident edges of ). Whenever is clear from the context, we write instead of . Further, whenever denotes the communication graph and is clear from the context, we use to denote the number of nodes of and to denote the maximum degree of .
Communication Model.
In the model [43, 45], the nodes of an -node graph communicate in synchronous rounds over the edges of . The nodes are equipped with unique -bit IDs and in each round, each node can perform some arbitrary internal computation, send a message of arbitrary size to each neighbor, and receive the messages sent to it by its neighbors. The time (or round) complexity of an algorithm is defined as the maximum number of rounds required for all nodes to terminate. The time complexity is typically expressed as a function of global network parameters such as or the maximum degree . We assume that those global parameters are known to the nodes of .555This assumption can usually be dropped or at least significantly relaxed by only requiring the knowledge of some approximations of the parameters (see, e.g., [39]).
Basic Subroutines.
As described in Section 1.1, our algorithms use the following three subroutines in our algorithms.
-
Sinkless Orientation: The sinkless orientation problem on an -node multigraph asks for an orientation of the edges such that every node of degree has at least one outgoing edge. It was shown in [34, 30] that the sinkless orientation can be solved in rounds deterministically and in rounds with randomization.
-
Balanced Orientation: The problem of computing a balanced orientation of an -node multigraph asks for an orientation of the edges such that every node has outdegree . If is the maximum degree of , it is shown in [30] that a balanced orientation can be computed in time .
-
Constructive LLL: The Lovász Local Lemma (LLL) considers the following setting. A set of (bad) events that are defined as functions over some underlying product probability space. Let be the conflict graph of those events, i.e., contains an edge between two events iff they are dependent (i.e., if they depend on intersecting sets of random variables in the underlying product space). The LLL states that if the maximum degree of is and the probability of each event is upper bounded by such that , then the probability that none of the events occurs is positive. The instance is said to have a polynomial LLL criterion if for a constant . If is a sufficiently large constant, there are efficient distributed algorithms to determine a setting for the underlying random variables that avoids all the bad events. The best known round complexities for those algorithms are for deterministic algorithms in tree-like dependency graphs [19], for randomized algorithms in tree-like dependency graphs [19], for deterministic algorithms in general graphs [22, 29, 27], and for randomized algorithms in general graphs [22, 29, 27, 23].
3 Generalized Balanced Degree Splitting
The objective of this section is to prove Theorem 1. We do this in several steps. We first prove that in asymptotically the same time as computing a sinkless orientation, one can compute a red-blue coloring of the half-edges of a graph with edge types such that each node sees at least one half-edge of each color.
Lemma 7.
Let be an -node multigraph without selfloops and assume that every edge is either of type or of type . Then, there is an -round distributed algorithm to compute a coloring of the half-edges of that is consistent with the edge types and for which every node of degree has and .
Proof.
In the following, we describe each step of the algorithm separately.
Reducing to Maximum Degree 3.
We first select a subgraph of on which we solve the problem. The node set of is and to construct the edges , each with arbitrarily marks of its edges. If an edge is marked by both and , it is included in . Since an edge is added to only if both of its endpoints have marked it and each node marks at most edges, the maximum degree of is .
Given a valid red-blue coloring of the half-edges of 666A valid red-blue coloring is a red-blue assignment on the half-edges of a graph that aligns with the edge types and satisfies the vertex constraints of the graph., we can construct a valid red-blue coloring on as follows. Nodes of degree in already have at least one incident half-edge of each color. All other nodes of degree at least in have marked edges that are not in . Those edges are not marked by their other node and can therefore color them arbitrarily. If there are at least two such edges, colors them such that the two corresponding incident half-edges get different colors. If it has only one such edge, it already has incident half-edges of at least one color and it can color the remaining marked edge with the other color. The conversion from to and computing a solution on when given a solution on both clearly require only rounds. Given a valid red-blue for , we can derive a valid red-blue coloring for the original graph . Therefore, in the following, we describe how to create a valid red-blue coloring for .
Clustering the Graph.
Next, we compute a -ruling set on . That is, we select a set of nodes such that for any two nodes , the distance between and in is at least and for any node , there is a node in within distance in . Such a set can be computed in rounds by running an MIS algorithm on [40]. Note that is a bounded-degree graph and the model on can be simulated with constant overhead in the model on . Given , we partition into clusters. We build one cluster for each node , where each node joins the cluster of the nearest -node (ties broken arbitrarily). Note that since nodes in have distance at least from each other, each cluster consists at least its cluster center and all neighbors of in . Further, since every node is at distance at most from a cluster center, the cluster of is contained within ’s -hop neighborhood.
Clusters are called good if they include a vertex with degree less than or if they contain a cycle, and bad otherwise. Note that the subgraph induced by the nodes of a bad cluster is a tree of height at most (when rooted at the cluster center ). Since any bad cluster centered at contains at least the three neighbors of , each bad cluster has at least six intercluster edges, where an intercluster edge is an edge that connects endpoints in two distinct clusters. In the following, we first color the internal edges of the bad clusters and the intercluster edges, and we afterwards color the internal edges of good clusters.
Assigning Intercluster Edges to Clusters.
Before coloring any edges, we assign each intercluster edge to one of its two incident clusters. To this end, we construct a multigraph as follows. The graph contains one node for each good cluster of and two nodes and for each bad cluster of . Further, the edge set contains one edge for each intercluster edge of . An intercluster edge is assigned to an edge in as follows. The edge is between two cluster nodes in corresponding to the clusters containing and . For each bad cluster , we make sure that both nodes and obtain at least edges. Note that this is possible because each bad cluster is incident to at least intercluster edges. We then apply the sinkless orientation algorithm on this modified graph, which requires time. As a result, any node of of degree at least is ensured to have at least one outgoing edge. We assign each edge in to the node in for which it is outgoing. This directly induces an assignment of the intercluster edges of to one of the adjacent clusters. Note that because each bad cluster has two nodes of degree in , each bad cluster is assigned at least two of its intercluster edges.
Handling the Bad Clusters.
We can now assign the colors to all edges inside the bad clusters and to all intercluster edges. Recall that each bad cluster has at least two adjacent intercluster edges that are assigned to it. We arbitrarily name one of those edges and another one of those edges . We color the half-edges of all the intercluster edges that are assigned to a good cluster and the half-edges of all the intercluster edges that are assigned to a bad cluster and that are not selected as the edge of this cluster. This coloring is done so that it is consistent with the types of the colored edges, but otherwise it is done arbitrarily. In each bad cluster, we now identify the (unique) path between and . We assume that the path includes , but it excludes , Figure 1 (a). We now -color the half-edges on this path, starting from the edge incident to the endpoint of and moving towards , in accordance with the edge types in such a way that each inner node of the path has one adjacent red and one adjacent blue half-edge on the path. Because the cluster diameter is bounded, the path length is constant and thus, the -coloring of the path can be done in rounds. Assume that all the remaining edges inside the cluster are oriented towards the -path, Figure 1 (b). Those edges are now colored by going from the leaves of the internal cluster tree towards the -path. Consider such a remaining edge inside the cluster and assume that is the parent of (i.e., is the node closer to the -path). When coloring the edge , node already has two colored half-edges. We can therefore color the edge so that node is happy, i.e., has two incident half-edges of different colors, Figure 1 (c). In this way, we can make all nodes happy except the nodes on the path. However, we have already made sure that the path nodes see both colors on their two edges on the path. In this way, we can therefore make all the nodes in the bad clusters happy.
Handling the Good Clusters.
We can move on to the good clusters. Note that at this point, all the intercluster edges are colored and it therefore only remains to color the internal edges of all the good clusters. Let us first assume that we have a good cluster that contains at least one node of degree at most and let be such a node. Node has a degree less than and nodes of degree less than do not have to satisfy any constraints. Therefore, all the edges incident to can be colored freely (from ’s point of view). We now construct a spanning tree of the internal edges of the cluster and we orient the edges of towards . We arbitrarily color all edges in the cluster that do not belong to . We then proceed to -color the half-edges of starting from the leaves, moving towards . Going up the oriented tree , we can make each node happy except for the root of , which is happy by default because its degree is less than . This process is also completed within rounds.
We next turn our attention to good clusters that contain only nodes of degree , but include a cycle. If a cluster contains only one cycle, we select it. If there are multiple cycles, we select an arbitrary one, Figure 2 (a). Subsequently, we contract the selected cycle into a single vertex and we construct a spanning tree of the remaining graph in the cluster. We arbitrarily color all edges in the cluster that do not belong to or the selected cycle. The tree edges are colored in the same way as before, Figure 2 (b). However, this time, the root node corresponds to the nodes of a cycle in and thus, the root is not automatically happy. However, since each node on the cycle has degree and exactly two incident edges within the cycle, after coloring all the edges except for the cycle edges, each node of the cycle already has one colored incident edge. To color the edges of the cycle, we consistently orient the cycle in one of the two directions. Now, each node in the cycle is responsible for coloring its outgoing edge and it colors it to make itself happy, Figure 2 (c). This concludes the algorithm. Note that also the good clusters can clearly be processed in rounds.
The most time-consuming part of the whole algorithm is the computation of the sinkless orientation of the cluster graph . All other steps require either or rounds. The overall round complexity is therefore .
We can now prove the first part of Theorem 1.
Lemma 8.
Let be an -node multigraph without selfloops and assume that every edge is either of type or of type . There is an -round algorithm for computing a red-blue coloring of the half-edges of such that for every node of degree , it holds that
| (3) |
Proof.
The high-level idea of the proof is the following. For , we compute a sequence of multigraphs of maximum degree such that the maximum degree of is roughly and such that . The graphs are constructed such that solving the problem required by Equation 3 on any graph solves the same problem on . The full proof of the lemma appears in the full version on Arxiv [15].
Section 3 already proves the first part (Equation 1) Theorem 1. The next lemma shows how to also prove the second part (Equation 2) of the theorem.
Lemma 9.
Let be an -node multigraph without selfloops and assume that every edge is of type . There is a -round algorithm for computing a red-blue coloring of the half-edges of such that for every node of degree , it holds that
| (4) |
Proof.
Note that for odd-degree nodes, the condition of Equation 4 is implied by the condition of Section 3. Our approach therefore is to reduce the problem on general graphs to the problem on graphs with only odd-degree nodes and to then use Section 3. For this, we use the fact that all edges of are of type (i.e., we need to compute a red/blue-coloring of the edges of ). The reduction consists of two steps.
Let be the set of nodes that have an even degree in and let be the subgraph of induced by . As the first step, we compute a maximal matching of . This can be done in rounds (e.g., [40]). In the end, the edges of will be labeled (i.e., both their half-edges are labeled ). We now however first remove the edges of from the graph. Let be the set of nodes that are incident to an edge in the matching , let , and let . Note that in graph , all nodes in now have an odd degree (because they lost exactly one of their edges) and the only nodes of even degree are the nodes . Because of the maximality of , the nodes in form an independent set of . Therefore, the nodes in can pair up their edges and create a virtual edge of type out of each of those pairs. Assume that and that we pair up two edges and to create the virtual edge of type . The half-edges of correspond to the edges and and when computing a valid assignment of labels to , we therefore color one of the two edges of red and the other one blue. Node therefore gets exactly the same number of red and blue edges and it therefore clearly satisfies the requirement of Equation 4.
The next graph is now built as follows. The set of nodes of is and the set of edges consists of all edges of that are not incident to some node in and it consists of the virtual edges that are created when removing the nodes in . Note that can be a multigraph even if and are simple graphs. Note also that has only odd-degree nodes. All nodes that have an odd degree in , i.e., the nodes have the same degree in . All nodes in have their original (even) degree minus (from removing ).
In order to compute the labeling of , we now apply Section 3 to graph (note that one round in can be simulated in rounds in ). Let be a node of and let be the (odd) degree of in . Section 3 implies that the red and blue degree of in are either or . For the nodes , we have and thus also as required by Equation 4. For , we have and since the edges of are colored red, we have . This completes the proof.
Note that by switching the names of the colors, the algorithm of Section 3 can also be used to guarantee the following condition.
| (5) |
4 Arbitrary Unoriented Degree Splittings
We next prove Theorem 4, i.e., that the problems (cf. Section 1.1) can be solved in rounds. We first recap the definition of the problem family for . The problem asks for a red-blue coloring of the edges of an -node graph of maximum degree . An algorithm solves if the following holds.
-
1.
For every node of degree , the number of red edges is in . Just requiring this subproblem is also defined as problem .
-
2.
For every degree , there exists a value such that the number of red edges of all nodes of degree is in .
-
3.
The value of for must satisfy the following conditions. Let , , , and .
-
4.
If , , if , , and if , .
Because this will turn out to be more convenient, as a first step, we extend the definition of to all as follows. For , we define , where we assume that maps to the range . We note that this changes the definition of to be equal to . Note however that requires all edges to be red and requires all edges to be blue and up to renaming the colors, the two problems are indeed equivalent. Two problems are generally equivalent if they can be obtained from each other by just switching the name of the two colors. The following lemma makes this formal. The full proof is provided in [15].
Lemma 10.
For any , the problems and are equivalent.
We are now ready to show that can be computed in time steps, where each step is an application of Section 3. The high level idea is the following. In the next two technical lemmas, we show that if a solution to is given, then we can compute a solution to in time (by applying Section 3). Depending on the value of , we can further also compute a solution to if either a solution of or of is given. This will be sufficient to show that if we do consecutive applications of Section 3, it is possible to get to from for consecutive -values. We now first show how to get from a solution to to a solution to .
Lemma 11.
Let be an -node multigraph without selfloops. For all , given a solution for on , we can compute a solution for in rounds.
Proof Sketch.
We first describe the transformation from to .
If , let be the set of red edges in the given solution to and let be the subgraph of induced by . We apply Section 3 (with Equation 4) to . The edges that are colored red in the resulting red-blue labeling of remain red and the remaining edges of together with the edges in become blue in the final labeling.
If , we first switch the colors in the given solution to . Let be the set of red edges in the current solution to and let be the subgraph of induced by . We apply Section 3 (with Equation 4) to . The red edges in the resulting red-blue labeling of remain red and the remaining edges of together with the edges in become blue. We then again switch the colors for the final labeling of the edges.
For the analysis, again first consider the case . For a node , let be its degree in (i.e., is the number of red edges in the initial solution to ). We further use to denote the number of red edges after executing the algorithm. We thus need to show that the values of satisfy the requirements of problem . Note that for every , by Equation 4, the number of red edges after executing the algorithm is
| (6) |
We first concentrate on nodes that have degree in . Since the initial red-blue labeling is a solution to , we know that for each such node , . Note that . We therefore have as it is required for nodes of degree in problem (and thus in problem ). The extension to the conditions for is deferred to the full proof in [15]. For the case , we use Section 4 to switch to the equivalent problem . For this problem, we can then apply the analysis of the first case. The details appear in the full proof in [15].
We next show that a solution to or to (depending on the value of ) can be also used to compute a solution to . The algorithm and also its proof are similar to the case of Section 4. The proof is provided in [15].
Lemma 12.
Let be an -node multigraph without selfloops. For all , given a solution for on , we can compute a solution for in rounds. Further, for all , given a solution for on , we can compute a solution for in rounds.
We are now ready to prove Theorem 4, i.e., that for every , problem can be computed in time .
Proof of Theorem 4..
We first note that for some values of , is straightforward to obtain. First, can be solved in rounds by just coloring all edges blue. In this scenario, is satisfied and for all vertices with degree , leads to , thereby satisfying . Further, by using Section 3 (i.e., the second part claim of Theorem 1), we can compute a red-blue coloring of the edges that satisfies Equation 4 (or one that satisfies Equation 5). This approach directly satisfies for . For vertices of degree , the value of is determined as follows, based on whether is odd or even:
-
For even : . If is odd, then (), and the values and fall within the set . For even , , with and belonging to the set .
-
For odd : . If is odd, then and if is even , , which are the two cases that were already covered in the previous case.
Hence, for , problem follows from Equation 4. By Section 4, we further know that problems and are equivalent and therefore also can be solved in time .
In the case, where does not fit one of the straightforward scenarios, we proceed as follows. For some integer , let be consecutive integers such that for all , . Assume that we want to solve one of the problems . If for some , , we know that the task of solving one of the can be completed in time at most . Assume therefore that
| (7) |
We show that in this case, one can construct a sequence of consecutive integers (again ) such that given a solution to for some , it is possible to solve one of the problems for in time . Note that if Equation 7 holds, then for all , it either holds that or . We consider the two cases separately.
-
If for all , then Sections 4 and 4 imply that for , we can compute in time when given a solution to or . For and , given a solution to one of the problems , we can therefore compute one of the problems for in time .
-
If for all , then Sections 4 and 4 imply that for , we can compute in time when given a solution to or . For and , given a solution to one of the problems , we can therefore compute one of the problems for in time .
The theorem now follows by repeating this process until the obtained sequence contains one of the problems in . As the sequence of problems that suffice to solve grows by a factor of in each step, we only need to repeat the process at most times. Hence, can be computed in at most rounds.
References
- [1] Jin Akiyama and Mikio Kano. Factors and Factorizations of Graphs. Springer, 2011.
- [2] Alkida Balliu, Sebastian Brandt, Yi-Jun Chang, Dennis Olivetti, Mikaël Rabie, and Jukka Suomela. The distributed complexity of locally checkable problems on paths is decidable. In Proc. 38th ACM Symp. on Principles of Distributed Computing (PODC), pages 262–271, 2019. doi:10.1145/3293611.3331606.
- [3] Alkida Balliu, Sebastian Brandt, Yi-Jun Chang, Dennis Olivetti, Jan Studený, and Jukka Suomela. Efficient classification of locally checkable problems in regular trees. In Proc. 36th Int. Symp. on Distributed Computing (DISC), volume 246 of LIPIcs, pages 8:1–8:19, 2022. doi:10.4230/LIPICS.DISC.2022.8.
- [4] Alkida Balliu, Sebastian Brandt, Yuval Efron, Juho Hirvonen, Yannic Maus, Dennis Olivetti, and Jukka Suomela. Classification of distributed binary labeling problems. In Proc. 34th Int. Symp. on Distributed Computing (DISC), volume 179 of LIPIcs, pages 17:1–17:17, 2020. doi:10.4230/LIPICS.DISC.2020.17.
- [5] Alkida Balliu, Sebastian Brandt, Dennis Olivetti, and Jukka Suomela. Almost global problems in the LOCAL model. In Proc. 32nd Int. Symp. on Distributed Computing (DISC), volume 121 of LIPIcs, pages 9:1–9:16, 2018. doi:10.4230/LIPICS.DISC.2018.9.
- [6] Alkida Balliu, Sebastian Brandt, Dennis Olivetti, and Jukka Suomela. How much does randomness help with locally checkable problems? In Proc. 39th ACM Symp. on Principles of Distributed Computing (PODC), pages 299–308, 2020. doi:10.1145/3382734.3405715.
- [7] Alkida Balliu, Juho Hirvonen, Janne H. Korhonen, Tuomo Lempiäinen, Dennis Olivetti, and Jukka Suomela. New classes of distributed time complexity. In Proc. 50th ACM Symposium on Theory of Computing (STOC), pages 1307–1318, 2018. doi:10.1145/3188745.3188860.
- [8] Alkida Balliu, Juho Hirvonen, Dennis Olivetti, and Jukka Suomela. Hardness of minimal symmetry breaking in distributed computing. In Proc. 38th ACM Symp. on Principles of Distributed Computing (PODC), pages 369–378, 2019. doi:10.1145/3293611.3331605.
- [9] Leonid Barenboim and Michael Elkin. Deterministic distributed vertex coloring in polylogarithmic time. Journal of ACM, 58:23:1–23:25, 2011. doi:10.1145/2027216.2027221.
- [10] Leonid Barenboim and Michael Elkin. Distributed Graph Coloring: Fundamentals and Recent Developments. Morgan & Claypool Publishers, 2013. doi:10.2200/S00520ED1V01Y201307DCT011.
- [11] Anton Bernshteyn. A fast distributed algorithm for -edge-coloring. J. Comb. Theory B, 152:319–352, 2022.
- [12] Sebastian Brandt. An automatic speedup theorem for distributed problems. In Peter Robinson and Faith Ellen, editors, Proc. 38th ACM Symp. on Principles of Distributed Computing (PODC), pages 379–388, 2019. doi:10.1145/3293611.3331611.
- [13] Sebastian Brandt, Orr Fischer, Juho Hirvonen, Barbara Keller, Tuomo Lempiäinen, Joel Rybicki, Jukka Suomela, and Jara Uitto. A lower bound for the distributed lovász local lemma. In Daniel Wichs and Yishay Mansour, editors, Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, Cambridge, MA, USA, June 18-21, 2016, pages 479–488. ACM, 2016. doi:10.1145/2897518.2897570.
- [14] Sebastian Brandt, Juho Hirvonen, Janne H. Korhonen, Tuomo Lempiäinen, Patric R. J. Östergård, Christopher Purcell, Joel Rybicki, Jukka Suomela, and Przemyslaw Uznanski. LCL problems on grids. In Proc. 36th ACM Symp. on Principles of Distributed Computing (PODC), pages 101–110. ACM, 2017. doi:10.1145/3087801.3087833.
- [15] Sebastian Brandt, Fabian Kuhn, and Zahra Parsaeian. On the complexity of distributed edge coloring and orientation problems, 2025. arXiv:2510.21327.
- [16] Sebastian Brandt, Yannic Maus, Ananth Narayanan, Florian Schager, and Jara Uitto. On the locality of hall’s theorem. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 4198–4226. SIAM, 2025. doi:10.1137/1.9781611978322.143.
- [17] Y.-J. Chang, T. Kopelowitz, and S. Pettie. An exponential separation between randomized and deterministic complexity in the LOCAL model. In Proc. 47th Symp. on Foundations of Computer Science (FOCS), pages 615–624, 2016.
- [18] Yi-Jun Chang. The complexity landscape of distributed locally checkable problems on trees. In Hagit Attiya, editor, Proc. 34th Int. Symp. on Distributed Computing (DISC), volume 179 of LIPIcs, pages 18:1–18:17, 2020. doi:10.4230/LIPICS.DISC.2020.18.
- [19] Yi-Jun Chang, Qizheng He, Wenzheng Li, Seth Pettie, and Jara Uitto. Distributed edge coloring and a special case of the constructive lovász local lemma. ACM Trans. Algorithms, 16(1):8:1–8:51, 2020. doi:10.1145/3365004.
- [20] Yi-Jun Chang and Seth Pettie. A time hierarchy theorem for the LOCAL model. In Chris Umans, editor, Proc. 58th IEEE Symp. on Foundations of Computer Science (FOCS), pages 156–167, 2017. doi:10.1109/FOCS.2017.23.
- [21] Kai-Min Chung, Seth Pettie, and Hsin-Hao Su. Distributed algorithms for the lovász local lemma and graph coloring. In Proc. ACM Symp. on Principles of Distributed Computing (PODC), pages 134–143. ACM, 2014. doi:10.1145/2611462.2611465.
- [22] Kai-Min Chung, Seth Pettie, and Hsin-Hao Su. Distributed algorithms for the lovász local lemma and graph coloring. Distributed Computing, 30(4):261–280, 2017. doi:10.1007/S00446-016-0287-6.
- [23] Peter Davies. Improved distributed algorithms for the lovász local lemma and edge coloring. In Proc. 34th ACM-SIAM Symp. on Discrete Algorithms (SODA), pages 4273–4295, 2023. doi:10.1137/1.9781611977554.CH163.
- [24] Pierre Fraigniaud, Marc Heinrich, and Adrian Kosowski. Local conflict coloring. In Proc. 57th IEEE Symp. on Foundations of Computer Science (FOCS), pages 625–634, 2016. doi:10.1109/FOCS.2016.73.
- [25] M. Ghaffari, F. Kuhn, and Y. Maus. On the complexity of local distributed graph problems. In Proc. 49th ACM Symp. on Theory of Computing (STOC), pages 784–797, 2017.
- [26] Mohsen Ghaffari and Christoph Grunau. Near-optimal deterministic network decomposition and ruling set, and improved MIS. In Proc. 65th IEEE Symp. on Foundations of Computer Science (FOCS), pages 2148–2179, 2024. doi:10.1109/FOCS61266.2024.00007.
- [27] Mohsen Ghaffari, Christoph Grunau, Bernhard Haeupler, Saeed Ilchi, and Václav Rozhon. Improved distributed network decomposition, hitting sets, and spanners, via derandomization. In Proc. 34th ACM-SIAM Symposium on Discrete Algorithms (SODA), 2023.
- [28] Mohsen Ghaffari, Christoph Grunau, and Václav Rozhon. Improved deterministic network decomposition. In Proc. 32nd ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2904–2923, 2021. doi:10.1137/1.9781611976465.173.
- [29] Mohsen Ghaffari, David G. Harris, and Fabian Kuhn. On derandomizing local distributed algorithms. In Proc. 59th Symp. on Foundations of Computer Science (FOCS), pages 662–673, 2018. doi:10.1109/FOCS.2018.00069.
- [30] Mohsen Ghaffari, Juho Hirvonen, Fabian Kuhn, Yannic Maus, Jukka Suomela, and Jara Uitto. Improved distributed degree splitting and edge coloring. Distributed Computing, 33(3-4):293–310, 2020. doi:10.1007/S00446-018-00346-8.
- [31] Mohsen Ghaffari and Fabian Kuhn. On the use of randomness in local distributed graph algorithms. In Proc. 38th ACM Symp. on Principles of Distributed Computing (PODC), pages 290–299, 2019. doi:10.1145/3293611.3331610.
- [32] Mohsen Ghaffari and Fabian Kuhn. Deterministic distributed vertex coloring: Simpler, faster, and without network decomposition. In Proc. 62nd IEEE Symp. on Foundations of Computing (FOCS), 2021.
- [33] Mohsen Ghaffari, Fabian Kuhn, Yannic Maus, and Jara Uitto. Deterministic distributed edge-coloring with fewer colors. In Proc. 50th ACM Symp. on Theory of Computing (STOC), pages 418–430, 2018. doi:10.1145/3188745.3188906.
- [34] Mohsen Ghaffari and Hsin-Hao Su. Distributed degree splitting, edge coloring, and orientations. In Proc. 28th ACM-SIAM Symp. on Discrete Algorithms (SODA), pages 2505–2523, 2017. doi:10.1137/1.9781611974782.166.
- [35] Andrew V Goldberg and Serge A Plotkin. Parallel (+ 1)-coloring of constant-degree graphs. Information Processing Letters, 25(4):241–245, 1987.
- [36] Christoph Grunau, Václav Rozhon, and Sebastian Brandt. The landscape of distributed complexities on trees and beyond. In Alessia Milani and Philipp Woelfel, editors, Proc. 41st ACM Symp. on Principles of Distributed Computing (PODC), pages 37–47, 2022. doi:10.1145/3519270.3538452.
- [37] Manuel Jakob and Yannic Maus. Brief announcement: Towards optimal distributed delta coloring. In Alkida Balliu and Fabian Kuhn, editors, Proceedings of the ACM Symposium on Principles of Distributed Computing, PODC 2025, Hotel Las Brisas Huatulco, Huatulco, Mexico, June 16-20, 2025, pages 318–321. ACM, 2025. doi:10.1145/3732772.3733519.
- [38] Manuel Jakob, Yannic Maus, and Florian Schager. Towards optimal distributed edge coloring with fewer colors, 2025. arXiv:2504.13003.
- [39] Amos Korman, Jean-Sébastien Sereni, and Laurent Viennot. Toward more localized local algorithms: removing assumptions concerning global knowledge. Distributed Comput., 26(5-6):289–308, 2013. doi:10.1007/S00446-012-0174-8.
- [40] Fabian Kuhn. Local weak coloring algorithms and implications on deterministic symmetry breaking. In Proc. 21st ACM Symp. on Parallelism in Algorithms and Architectures (SPAA), 2009.
- [41] Fabian Kuhn, Thomas Moscibroda, and Roger Wattenhofer. Local computation: Lower and upper bounds. Journal of ACM, 63:17:1–17:44, 2016. doi:10.1145/2742012.
- [42] Christoph Lenzen and Roger Wattenhofer. MIS on trees. In Proceedings of the 2011 Annual ACM Symposium on Principles of Distributed (PODC), pages 41–48, 2011. doi:10.1145/1993806.1993813.
- [43] Nathan Linial. Locality in Distributed Graph Algorithms. SIAM Journal on Computing, 21(1):193–201, 1992. doi:10.1137/0221015.
- [44] M. Naor and L. Stockmeyer. What can be computed locally? SIAM J. on Comp., 24(6):1259–1277, 1995. doi:10.1137/S0097539793254571.
- [45] D. Peleg. Distributed Computing: A Locality-Sensitive Approach. SIAM, 2000.
- [46] Václav Rozhoň and Mohsen Ghaffari. Polylogarithmic-time deterministic network decomposition and distributed derandomization. In Proc. 52nd ACM Symp. on Theory of Computing (STOC), pages 350–363, 2020.
- [47] W. T. Tutte. The subgraph problem. Annals of Discrete Mathematics, 3:289–295, 1978.
- [48] V. G. Vizing. On an estimate of the chro- matic class of a -graph. Diskret. Analiz., 3:25–30, 1964.
