12 research outputs found

    Space-Efficient Biconnected Components and Recognition of Outerplanar Graphs

    Get PDF
    We present space-efficient algorithms for computing cut vertices in a given graph with nn vertices and mm edges in linear time using O(n+min⁑{m,nlog⁑log⁑n})O(n+\min\{m,n\log \log n\}) bits. With the same time and using O(n+m)O(n+m) bits, we can compute the biconnected components of a graph. We use this result to show an algorithm for the recognition of (maximal) outerplanar graphs in O(nlog⁑log⁑n)O(n\log \log n) time using O(n)O(n) bits

    Space-Efficient DFS and Applications: Simpler, Leaner, Faster

    Full text link
    The problem of space-efficient depth-first search (DFS) is reconsidered. A particularly simple and fast algorithm is presented that, on a directed or undirected input graph G=(V,E)G=(V,E) with nn vertices and mm edges, carries out a DFS in O(n+m)O(n+m) time with n+βˆ‘v∈Vβ‰₯3⌈log⁑2(dvβˆ’1)βŒ‰+O(log⁑n)≀n+m+O(log⁑n)n+\sum_{v\in V_{\ge 3}}\lceil{\log_2(d_v-1)}\rceil +O(\log n)\le n+m+O(\log n) bits of working memory, where dvd_v is the (total) degree of vv, for each v∈Vv\in V, and Vβ‰₯3={v∈V∣dvβ‰₯3}V_{\ge 3}=\{v\in V\mid d_v\ge 3\}. A slightly more complicated variant of the algorithm works in the same time with at most n+(4/5)m+O(log⁑n)n+({4/5})m+O(\log n) bits. It is also shown that a DFS can be carried out in a graph with nn vertices and mm edges in O(n+mlogβ‘βˆ—β€‰β£n)O(n+m\log^*\! n) time with O(n)O(n) bits or in O(n+m)O(n+m) time with either O(nlog⁑log⁑(4+m/n))O(n\log\log(4+{m/n})) bits or, for arbitrary integer kβ‰₯1k\ge 1, O(nlog⁑(k) ⁣n)O(n\log^{(k)}\! n) bits. These results among them subsume or improve most earlier results on space-efficient DFS. Some of the new time and space bounds are shown to extend to applications of DFS such as the computation of cut vertices, bridges, biconnected components and 2-edge-connected components in undirected graphs
    corecore