k-connectivity certificate

In graph theory, for a k-connected graph G = (V, E), a subset of edges is considered a certificate for the k-connectivity of the graph G if and only if the subgraph G' = (V, E') is k-connected.[1]

Graph on the right is a k-connectivity certificate for the graph G on the left for k=1,2.

Sparse certificates

For a k-connected graph with n vertices, there always exists a k-connectivity certificate with at most k(n-1) edges. K-connectivity certificates are considered sparse if they contain O(kn) edges.[2] In this figure, the graph on the right is also a sparse certificate for the graph G on the left.

Scan-First is an algorithm for the parallel construction of k-connectivity certificates for graphs. It was introduced in the paper Scan-First Search and Sparse Certificates: An Improved Parallel Algorithm for K-Vertex Connectivity by Joseph Cheriyan, Ming-Yang Kao, and Ramakrishna Thurimella.[2] The Scan-First Search algorithm improves the running time of building a sparse certificate for k-connectivity using the parallel computation model.

We can find a sparse certificate for k-connectivity by iteratively running scan-first search k times on sub-graphs of our input graph. Our input is a graph G = (V, E) and a root vertex r. For each iteration of scan-first search, we first compute a spanning tree T of our input graph G, and assign a pre-order numbering to all the vertices, which we will use as our scanning order. From our root r, we first scan r, which involves marking all its neighboring vertices.

Given a connected undirected graph and a specified vertex, a scan-first search in the graph starting from the specified vertex is a systematic way of marking the vertices. The main marking step is called scan: to scan a marked vertex means to mark all previously unmarked neighbors of that vertex. At the beginning of the search, only the specified starting vertex is marked. Then the search iteratively scans a marked and unscanned vertex until all vertices are scanned.

A scan-first search in a connected undirected graph produces a spanning tree defined as follows. At the beginning of the search, the tree is empty. Then, for each vertex x in the graph, when x is scanned, all the edges between x and its previously unmarked neighbors are added to the tree; the edges between x and its previously marked neighbors are not added to the tree.

An example showing two iterations of scan-first search on the graph G. For a k-Connected graph, we do k iterations of Scan-first Search. First and second iterations of Scan-first Search are shown above.

All previously unmarked vertices constitute the end-point of an edge from the currently scanned vertex, so if we start from some vertex v, and it has neighbors w and x, then if both w and x are unmarked, we create the edges (v, w) and (v, x) and add them to our output tree T'. If either w or x was previously marked, we do not add the edge that includes that vertex to T'. With these new edges in T', we move to the next vertex with the lowest preorder number to scan, which involves continuously marking previously unmarked vertices and adding the edges from the current vertex to these vertices to our output tree.

We use scan-first search to generate certificates for k-connectivity by running it for k iterations. An important note moving forward is that for each edge added to some output tree T' in each iteration, we remove the edges from the original graph G so they may not be included in some spanning forest for the next iteration. However, we can view the markings on the vertices as reset, so no vertices are marked on the next iteration.

Once we have exhausted all vertices, we have an edge set for the first iteration, E1. We then remove E1 from G = G0, and make that G1, and move onto the second iteration using the graph G1. At the end of each iteration we have:

    • Ei : The set of edges we encountered during our scan-first search
    • Fi : Scan-first search forest, the grouping of edges into what may be separate trees at each step.
    • Gi : The resulting graph from removing Ei from the graph Gi-1 that we used to begin this iteration.
    • Hi : The union the edges from every iteration to now, E1 ∪ E2 ∪ ... ∪ Ei.

We say that Hk is the sparse certificate for the graph G.

The Main Certificate Theorem

Given an undirected graph G = (V, E) with n vertices, let k be some positive integer. For all i = 1, 2, . . . , k, let Ei be the set of edges generated by the i-th iteration of scan-first search, corresponding to a graph Gi−1 = (V, E − (E1 ∪ . . . ∪ Ei−1)). So for each iteration of scan-first search, as stated above, we will remove edges from the graph G to create some new graph Gi that results at the end of the ith iteration. For every iteration i, our scan-first search forest is built from the graph Gi−1, where G = G0. The claim of the Main Certificate Theorem is that the union E1 ∪ . . . ∪ Ek is a certificate for the k-vertex connectivity of G and that it has at most k(n − 1) edges.[2]

Computational complexity

The most important running-time is that of the algorithm running in parallel, using the CRCW PRAM model in this case. Our first spanning tree T can be found in O(log n) time using C(n,m) processors. Our preorder numbers and neighbours can also be calculated in O(log n) time because parallel techniques[3] with O((n + m)/log n) processors, our C(n,m) value. For this reason, we can generate a single T&prime corresponding to one iteration in O(log n) time.

Using a distributed breadth-first search approach, we can find our spanning forest in O(d log3 n) time on a graph with diameter d using O(m + n log3 n) messages. The sequential approach is quite simply the running time for breadth-first search, O(m + n).

gollark: There shouldn't be, but there *are*.
gollark: There are minor issues with the new implementation for some reason.
gollark: ++list_deleted b
gollark: Oh, or not.
gollark: Perfect! Ready to deploy, I think.

See also

References

  1. Even, S. (1975-09-01). "An Algorithm for Determining Whether the Connectivity of a Graph is at Least k" (PDF). SIAM Journal on Computing. 4 (3): 393–396. doi:10.1137/0204034. hdl:1813/6027. ISSN 0097-5397.
  2. Cheriyan, J.; Kao, M.; Thurimella, R. (1993-02-01). "Scan-First Search and Sparse Certificates: An Improved Parallel Algorithm for k-Vertex Connectivity" (PDF). SIAM Journal on Computing. 22 (1): 157–174. doi:10.1137/0222013. hdl:1813/8878. ISSN 0097-5397.
  3. Karp, Richard M.; Ramachandran, Vijaya (1990-01-01). van Leeuwen, Jan (ed.). Handbook of Theoretical Computer Science (Vol. A). Cambridge, MA, USA: MIT Press. pp. 869–941. ISBN 978-0-444-88071-0.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.