Simple labeling schemes for graph connectivity Rani Izsak and Zeev Nutov The Open University of Israel. [email protected],[email protected] Abstract. Let πΊ = (π, πΈ) be an undirected graph and let π β π . The π-connectivity ππ πΊ (π’, π£) of a pair of nodes π’, π£ in πΊ is the maximum number of π’π£-paths that no two of them have an edge or a node in π β {π’, π£} in common. Edge-connectivity is the case π = β and node-connectivity is the case π = π . Given a graph πΊ = (π, πΈ), an integer π, a subset π β π of terminals, and π β π , we consider the problem of assigning small βlabelsβ (binary strings) to the terminals, so that given the labels of two terminals π’, π£ β π , one can decide whether ππ πΊ (π’, π£) β₯ π (π-partial labeling scheme) or to return min{ππ πΊ (π’, π£), π} (π-full labeling scheme). For edge-connectivity, there are known labeling schemes with max-label size π(log β£π β£) in the π-partial case and π(log β£π β£ β min{π, log β£π β£}) in the π-full case [3]. We observe that this result extends to π-connectivity when π β π β π β so called βelement-connectivityβ, and combine it with the recently discovered decomposition of Chuzhoy and Khanna [1] of node-connectivity problems into element-connectivity problems to obtain simple labeling schemes for node-connectivity. If π distinct queries are expected, our labeling schemes have max-label size π(π log β£π β£ log π) in the π-partial case and π(π log β£π β£ log πβ min{π, log β£π β£}) in the π-full case, with success probability 1β π1 for all queries. For a constant number of queries, this matches the lower bound πΊ(π log π) for the π-partial case of [3]. Consequently, we obtain deterministic labeling schemes with max-label size π(π log2 β£π β£) in the π-partial case and π(π log 2 β£π β£ β min{π, log β£π β£}) in the π-full case. This improves the bounds of Korman [4] π(π2 log π) and π(π3 log π), respectively, for π = πΊ(log β£π β£). 1 1.1 Introduction Problem deο¬nition Labeling schemes represent information of a graph by distributing it to the nodes. This is in contrast with the traditional βglobalβ represantations such as adjacency list/martix. This distributed representation should enable answering predeο¬ned type of queries only by accessing the information (labels) at the relevant nodes. One can label any information by using enough bits at each node, but our aim is to ο¬nd labels as small as possible that enable answering relevant queries in a time polynomial in the label sizes. In this paper we consider answering queries on connectivity between pairs of nodes. Formally, we are interested in the following type of labeling schemes, c.f. [2β5]. Deο¬nition 1 (Labeling scheme). Let π be a function deο¬ned on pairs of a groundset π . An π -labeling scheme is a pair < ππ , π·π > of algorithms, where the marker ππ assigns a label (binary string) πΏπ (π£) to each π£ β π , and the decoder π·π is a polynomial time algorithm that given labels πΏπ (π’), πΏπ (π£) of π’, π£ β π returns π (π’, π£). We now deο¬ne some graph-connectivity concepts. Let πΊ = (π, πΈ) be an undirected graph and let π β π . The π-connectivity πππΊ (π’, π£) of a node pair π’, π£ in πΊ is the maximum number of π’π£-paths that no two of them have an edge or a node in π β {π’, π£} in common. Node-connectivity is the case π = π and edge-connectivity is the case π = β . We use π πΊ (π’, π£) = πππΊ (π’, π£) for the nodeconnectivity between π’, π£ in πΊ (the maximum number of internally-disjoint π’π£paths in πΊ), and ππΊ (π’, π£) = πβ πΊ (π’, π£) for the edge-connectivity between π’, π£ in πΊ (the maximum number of edge-disjoint π’π£-paths in πΊ). If we are also given a set π β π of terminals so that π β π β π, then for π’, π£ β π we say that πππΊ (π’, π£) is the element-connectivity between π’, π£ in πΊ. We will often omit the subscript βπΊβ when it is clear from the context. Given a graph πΊ = (π, πΈ), π β π , an integer π, and a subset π β π of terminals, we consider the problem of labeling the terminals while minimizing the max-label size, so that given the labels of two terminals π’, π£ β π , one can decide whether πππΊ (π’, π£) β₯ π (π-partial labeling scheme) or to return min{πππΊ (π’, π£), π} (π-full labeling scheme). Namely, in terms of Deο¬nition 1, π (π’, π£) is deο¬ned for π’, π£ β π as follows. In the π-partial case, π (π’, π£) = π π π πΈ if πππΊ (π’, π£) β₯ π and π (π’, π£) = πΉ π΄πΏππΈ otherwise. In the π-full case π (π’, π£) = min{πππΊ (π’, π£), π}. Clearly, by invoking a factor of π in the max-label size one can obtain a π-full labeling scheme from a π-partial one. 1.2 Our results Our results are summarized in the following two theorems. For the edge-connectivity case, there are known labeling schemes with maxlabel size π(log β£π β£) in the π-partial case and π(log β£π β£ β min{π, log β£π β£}) in the πfull case [3]. We observe that this result extends to element-connectivity (namely, to π-connectivity when π β π β π ). Theorem 1. For element-connectivity, there exist labeling schemes with maxlabel size π(log β£π β£) in the π-partial case and π(log β£π β£ β min{π, log β£π β£}) in the π-full case. This result is asymptotically optimal, since it is optimal even for edgeconnectivity [3], which is a special case of element-connectivity. Chuzhoy and Khanna [1] gave an π(π 3 log β£π β£)-approximation algorithm for the node-connectivity Steiner Network problem (also called the Survivable Network Design Problem), by showing that it can be decomposed into π(π 3 log β£π β£) element-connectivity Steiner Network problems. We combine a modiο¬cation of this idea with Theorem 1 to obtain simple labeling schemes for node-connectivity. Theorem 2. For node-connectivity, there exist randomized labeling schemes with max-label size π(π log β£π β£ log π) in the π-partial case and π(π log β£π β£ log πβ min{π, log β£π β£}) in the π-full case, with success probability 1 β 1/π for π queries. There also exist deterministic labeling schemes with max-label size π(π log2 β£π β£) in the π-partial case and π(π log2 β£π β£ β min{π, log β£π β£}) in the π-full case. There is a lower bound of πΊ(π log π) on the π-partial case [3]. Using the ο¬rst part of Theorem 2, we may become close to this bound, as we wish, in the trade oο¬ of reducing the number of supported queries. In particular, for a constant number of supported queries, we achieve the bound π(π log π). We emphasize that the queries themselves are not known ahead; just their number determines our max-label size. The second part of Theorem 2 improves the bounds of Korman [4] π(π 2 log π) and π(π 3 log π), respectively, for π = πΊ(log β£π β£). 2 Labeling schemes for element-connectivity (Proof of Theorem 1) We prove a generalization of Theorem 1. This is done by extending the labeling scheme of [3] for edge-connectivity to the following type of functions, that capture also element-connectivity. Deο¬nition 2 (Equivalence function). A function π that maps ordered pairs of a ground-set π to non-negative integers or to β is said to be an equivalence function if the following holds: β π (π£, π£) = β for all π£ β π (reο¬exivity). β π (π’, π£) = π (π£, π’) for all π’, π£ β π (symmetry). β π (π’, π€) β₯ min{π (π’, π£), π (π£, π€)} for all π’, π£, π€ β π (transitivity). The following statement is straightforward. Claim. Let π be an equivalence function on π . The relation π π = {(π’, π£) β£ π (π’, π£) β₯ π, π’, π£ β π } is an equivalence for any integer π β₯ 0. Moreover, π π is a reο¬nement of π π if π > π, namely, for each equivalence class πΆπ of π π there exists an equivalence class πΆπ of π π such that πΆπ β πΆπ . The following known statement can easily be deduced from Mengerβs Theorem for π-connectivity. Claim. Let πΊ = (π, πΈ) be a graph, let π β π and let π β π β π (namely, π, π is a subpartition of π ). Then the function π (π’, π£) = πππΊ (π’, π£) for all π’, π£ β π is an equivalence function. Thus, element-connectivity is an equivalence function. Thus, the following Theorem is a generalization of Theorem 1: Theorem 3. Any equivalence function π admits labeling schemes with max-label size π(log β£π β£) in the π-partial case and π(log β£π β£ β min{π, log β£π β£}) in the π-full case. In the rest of this section we prove Theorem 3, by adapting the edge-connectivity scheme presented in [3]. The π-partial case: For the marker π , we give a unique label for each equivalence class of π π . The label πΏ(π£) of a node π£ β π is the label of the unique equivalence class it belongs to. The label size is π(log β£π β£), since there are no more equivalence classes than terminals. For the decoder π·, given two nodes π’, π£ β π , we return π π π πΈ if and only if πΏ(π’) = πΏ(π£). The π-full case: We describe the marker π . Recall that π π is an equivalence relation for every π. Using the idea from [3], we label each node using a least common ancestor labeling scheme in the following tree. The root is π 0 = π . The π π‘β level relates to π π and is a reο¬nement of the (π β 1)π‘β . The leaves are the singleton sets. The decoder is of the least common ancestor labeling scheme. The correctness is proved at [3] for edge-connectivity and it relies on the fact that it induces a family of equivalence relations with the reο¬nement property we have mentioned. Therefore, the adaptation for equivalence function is immediate. The complexity of this scheme (as proved at [3] for π nodes) is π(log2 β£π β£). If we want to achieve a bound of π(π log β£π β£), we can just use π times the scheme of the π-partial case, in a straightforward manner. This completes the proof of Theorem 1. 3 Labeling schemes for node-connectivity (Proof of Theorem 2) As was mentioned, the proof of Theorem 2 uses an idea of Chuzhoy and Khanna [1], modiο¬ed and adjusted to our problem. We decompose the terminal set π ( π ) into π = 4π πβπ terminals sets ππ . Setting ππ = π β ππ we obtain π instances of 2 element-connectivity. We show that these π instances together encode the nodeconnectivity in πΊ of pairs from π , with high probability. The π terminal sets ππ are deο¬ned as follows. Let each node in π select uniformly independently at π subsets. π1 , . . . , ππ are random the unique subset it belongs to among 4π πβπ all the unions of any two such subsets. We will refer to the collection of sets π1 , . . . , ππ , as the basic decomposition. Let ππ = π β ππ , π = 1, . . . , π. For π’, π£ β ππ let ππ (π’, π£) = πππΊπ (π’, π£) denote the ππ -connectivity between π’, π£ in πΊ. From the deο¬nition of π-connectivity we have: Fact 4 πππΊ (π’, π£) β₯ π πΊ (π’, π£) for any π β π and π’, π£ β π . Using Fact 4 and some probabilistic arguments, we show the following: Lemma 1. Pr[ππ (π’, π£) = π (π’, π£)] β₯ 1 4π for any π’, π£ β ππ with π (π’, π£) β€ π. Proof. Let πΆ β (π β {π’, π£}) βͺ πΈ be a π’π£-cut of nodes and edges of size β£πΆβ£ = π (π’, π£) so that there is no π’π£-path in πΊ β πΆ. Such πΆ exists by Mengerβs Theorem for node-connectivity; in fact, πΆ consists of nodes only if π’, π£ are not adjacent, or contains the unique edge π’π£ otherwise. By Fact 4 ππ (π’, π£) β₯ π (π’, π£). Thus ππ (π’, π£) = π (π’, π£) if all the nodes of πΆ are in π π = π β ππ , since then πΆ is also a π’π£-cut for ππ -connectivity of size β£πΆβ£ = π (π’, π£). Consequently, it is suο¬cient to show that the probability of the event πΆ β© ππ = β is at least 1/(4π). Note that the expected size of ππ is no more than 2π ππ = πβπ 2π . Therefore, πβπ by Markov Inequality: ] [ 1 πβπ β₯ Pr β£ππ β£ β€ π 2 By considering the nodes of πΆ sequentially, and assuming the ο¬rst π nodes are β£ππ β£ π β£)βπ = 1 β πβπ . If in ππ , the probability that node π + 1 belongs to ππ is (πββ£π πβπ πβπ β£ππ β£ β€ π , then this probability is at least 1 β 1/π, and since β£πΆβ£ = π (π’, π£) β€ π, the probability that all the nodes of πΆ are not in ππ is at least (1β1/π)π β₯ 1/(2π). with probability at least 1/2, the probability that πΆ β© ππ = β Since β£ππ β£ β€ πβπ π is at least 1/(4π), as claimed. By the deο¬nition of the sets π1 , . . . , ππ , for any π’, π£ β π there exists π so that π’, π£ β ππ . Thus combining Lemma 1 with Fact 4 we obtain: Corollary 1. Pr[minπ {ππ (π’, π£) β£ π’, π£ β ππ } = π (π’, π£)] β₯ with π (π’, π£) β€ π. 1 4π for any π’, π£ β π A better lower bound on the probability of the event βminπ {ππ (π’, π£) β£ π’, π£ β ππ } = π (π’, π£)β is achieved by repeating the basic decomposition uniformly and independently several times. We may also consider a subset π of pairs from π rather than all pairs. Then our bounds are summarized in the following lemma: Lemma 2. Let π be a set of pairs of nodes from π . If we deο¬ne a new decomposition by repeating the basic decomposition, uniformly and independently, π = β8πβ βln β£πβ£β times, then: [ ] Pr min{ππ (π’, π£) β£ π’, π£ β ππ } = π (π’, π£) for all {π’, π£} β π with π (π’, π£) β€ π β₯ 1β1/β£πβ£ . π In particular, for π being the set of all pairs from π we obtain: [ ] 2 Pr min{ππ (π’, π£) β£ π’, π£ β ππ } = π (π’, π£) for all π’, π£ β π with π (π’, π£) β€ π β₯ 1β2/β£π β£ . π Proof. Let ππ π’,π£ be the failure probability for π’, π£ β π and π uniform independent repetitions of the basic decomposition (i.e. π (π’, π£) β€ π, but minπ {ππ (π’, π£) β£ π’, π£ β 1 π ππ } β= π (π’, π£)). By Corollary 1, π1π’,π£ β€ 1 β 4π . Therefore, ππ π’,π£ β€ (1 β 1/(4π)) , and then: (( )ln β£πβ£ )2 ( )2 4π ln β£πβ£ 2 β8πββln β£πβ£β ππ’,π£ β€ (1 β 1/(4π)) β€ (1/π) = 1/β£πβ£ . The result now follows from the union bound. For the proof of theorem 2, we may assume that π β€ π/2, as otherwise we can trivially meet our max-label size bounds by storing at each node the data it needs regarding any other node. Under this assumption π = π(π 2 ), but the key point is that every node π£ β π appears in only π(π) sets from π1 , . . . , ππ . We now describe the marker and the decoder of our node-connectivity labeling schemes. Marker: We repeat the basic decomposition β8πβ βln β£πβ£β times. This gives a (multi-)collection π― of π(π 2 log β£πβ£) subsets of π (π― may contain the same set more than once). For π£ β π let π½(π£) be the set of indices of sets in π― that contain π£. Note that β£π½(π£)β£ = π(π log β£πβ£) for every π£ β π . Each π π β π― deο¬nes an instance of element-connectivity, and for every π£ β π π so that π β π½(π£) we set πΏπ (π£) to be the corresponding labeling of π£ as in Theorem 1. The label πΏ(π£) of π£ will be a list of labels πΏπ (π£), π β π½(π£), where for each label we also specify the appropriate index π. Consequently, β£πΏ(π£)β£ is bounded by β£π― (π£)β£ times the bounds for element-connectivity given in Theorem 1, plus the size of the index π. Recall that β£π― (π£)β£ = π(π log β£πβ£), that our bounds for element-connectivity are π(log π) in the π-partial case and π(log ( π β min{π, log ) π}) in the π-full case, and note that the size of the index π is π log(π 2 log β£πβ£) = π(log π+log log β£πβ£); the latter is dominated by the other parts. This gives the bounds in Theorem 2. Decoder: Let π· be the decoder of the corresponding element-connectivity scheme. Given π’, π£ β π we act as follows. For every π β π½(π’) β© π½(π£) (i.e. for every index that appears in both πΏ(π’) and πΏ(π£)) we use π· to compute the elementconnectivity value π π (π’, π£) for π π = π βπ π (may be boolean or integer, depending on the scheme). In the π-partial case we return π π π πΈ if π π (π’, π£) = π π π πΈ for all π β π½(π’) β© π½(π£), and πΉ π΄πΏππΈ otherwise (i.e., we return βANDβ of the labels). In the π-full case we return the minimum among min{ππ (π’, π£) β£ π β π½(π’) β© π½(π£)} and π. Clearly, the running time is polynomial in the labelsβ sizes. Correctness follows from Lemma 2. Deterministic labeling schemes: We show existence of deterministic labeling schemes as in Theorem 2. The randomized decomposition we described, with (high) non zero probability, satisο¬es the following for all pairs from π : β minπ {ππ (π’, π£) β£ π’, π£ β ππ } = π (π’, π£) if π (π’, π£) β€ π; β ππ (π’, π£) β₯ π (π’, π£) for all π. Since our analysis is valid for any input (it is independent of it), there exists a decomposition obeying both conditions, for any input graph. The result follows by using this decomposition at the marker. This completes the proof of Theorem 2. References 1. J. Chuzhoy and S. Khanna. An π(π3 log π)-approximation algorithm for vertexconnectivity survivable network design. In FOCS, 2009. 2. C. Gavoille, D. Peleg, S. PeΜrennes, and R. Raz. Distance labeling in graphs. In SODA, pages 210β219, 2001. 3. M. Katz, N. A. Katz, A. Korman, and D. Peleg. Labeling schemes for ο¬ow and connectivity. SIAM Journal on Computing, 34:23β40, 2004. 4. A. Korman. Labeling schemes for vertex connectivity. In ICALP, pages 102β109, 2007. 5. D. Peleg. Informative labeling schemes for graphs. In MFCS, pages 579β588, 2000.
© Copyright 2026 Paperzz