98 research outputs found

    Dynamic Graph Stream Algorithms in o(n)o(n) Space

    Get PDF
    In this paper we study graph problems in dynamic streaming model, where the input is defined by a sequence of edge insertions and deletions. As many natural problems require Ω(n)\Omega(n) space, where nn is the number of vertices, existing works mainly focused on designing O~(n)\tilde{O}(n) space algorithms. Although sublinear in the number of edges for dense graphs, it could still be too large for many applications (e.g. nn is huge or the graph is sparse). In this work, we give single-pass algorithms beating this space barrier for two classes of problems. We present o(n)o(n) space algorithms for estimating the number of connected components with additive error εn\varepsilon n and (1+ε)(1+\varepsilon)-approximating the weight of minimum spanning tree, for any small constant ε>0\varepsilon>0. The latter improves previous O~(n)\tilde{O}(n) space algorithm given by Ahn et al. (SODA 2012) for connected graphs with bounded edge weights. We initiate the study of approximate graph property testing in the dynamic streaming model, where we want to distinguish graphs satisfying the property from graphs that are ε\varepsilon-far from having the property. We consider the problem of testing kk-edge connectivity, kk-vertex connectivity, cycle-freeness and bipartiteness (of planar graphs), for which, we provide algorithms using roughly O~(n1ε)\tilde{O}(n^{1-\varepsilon}) space, which is o(n)o(n) for any constant ε\varepsilon. To complement our algorithms, we present Ω(n1O(ε))\Omega(n^{1-O(\varepsilon)}) space lower bounds for these problems, which show that such a dependence on ε\varepsilon is necessary.Comment: ICALP 201

    Lower Bounds on Query Complexity for Testing Bounded-Degree CSPs

    Full text link
    In this paper, we consider lower bounds on the query complexity for testing CSPs in the bounded-degree model. First, for any ``symmetric'' predicate P:0,1k0,1P:{0,1}^{k} \to {0,1} except \equ where k3k\geq 3, we show that every (randomized) algorithm that distinguishes satisfiable instances of CSP(P) from instances (P1(0)/2kϵ)(|P^{-1}(0)|/2^k-\epsilon)-far from satisfiability requires Ω(n1/2+δ)\Omega(n^{1/2+\delta}) queries where nn is the number of variables and δ>0\delta>0 is a constant that depends on PP and ϵ\epsilon. This breaks a natural lower bound Ω(n1/2)\Omega(n^{1/2}), which is obtained by the birthday paradox. We also show that every one-sided error tester requires Ω(n)\Omega(n) queries for such PP. These results are hereditary in the sense that the same results hold for any predicate QQ such that P1(1)Q1(1)P^{-1}(1) \subseteq Q^{-1}(1). For EQU, we give a one-sided error tester whose query complexity is O~(n1/2)\tilde{O}(n^{1/2}). Also, for 2-XOR (or, equivalently E2LIN2), we show an Ω(n1/2+δ)\Omega(n^{1/2+\delta}) lower bound for distinguishing instances between ϵ\epsilon-close to and (1/2ϵ)(1/2-\epsilon)-far from satisfiability. Next, for the general k-CSP over the binary domain, we show that every algorithm that distinguishes satisfiable instances from instances (12k/2kϵ)(1-2k/2^k-\epsilon)-far from satisfiability requires Ω(n)\Omega(n) queries. The matching NP-hardness is not known, even assuming the Unique Games Conjecture or the dd-to-11 Conjecture. As a corollary, for Maximum Independent Set on graphs with nn vertices and a degree bound dd, we show that every approximation algorithm within a factor d/\poly\log d and an additive error of ϵn\epsilon n requires Ω(n)\Omega(n) queries. Previously, only super-constant lower bounds were known

    Testing Small Set Expansion in General Graphs

    Get PDF
    We consider the problem of testing small set expansion for general graphs. A graph GG is a (k,ϕ)(k,\phi)-expander if every subset of volume at most kk has conductance at least ϕ\phi. Small set expansion has recently received significant attention due to its close connection to the unique games conjecture, the local graph partitioning algorithms and locally testable codes. We give testers with two-sided error and one-sided error in the adjacency list model that allows degree and neighbor queries to the oracle of the input graph. The testers take as input an nn-vertex graph GG, a volume bound kk, an expansion bound ϕ\phi and a distance parameter ε>0\varepsilon>0. For the two-sided error tester, with probability at least 2/32/3, it accepts the graph if it is a (k,ϕ)(k,\phi)-expander and rejects the graph if it is ε\varepsilon-far from any (k,ϕ)(k^*,\phi^*)-expander, where k=Θ(kε)k^*=\Theta(k\varepsilon) and ϕ=Θ(ϕ4min{log(4m/k),logn}(lnk))\phi^*=\Theta(\frac{\phi^4}{\min\{\log(4m/k),\log n\}\cdot(\ln k)}). The query complexity and running time of the tester are O~(mϕ4ε2)\widetilde{O}(\sqrt{m}\phi^{-4}\varepsilon^{-2}), where mm is the number of edges of the graph. For the one-sided error tester, it accepts every (k,ϕ)(k,\phi)-expander, and with probability at least 2/32/3, rejects every graph that is ε\varepsilon-far from (k,ϕ)(k^*,\phi^*)-expander, where k=O(k1ξ)k^*=O(k^{1-\xi}) and ϕ=O(ξϕ2)\phi^*=O(\xi\phi^2) for any 0<ξ<10<\xi<1. The query complexity and running time of this tester are O~(nε3+kεϕ4)\widetilde{O}(\sqrt{\frac{n}{\varepsilon^3}}+\frac{k}{\varepsilon \phi^4}). We also give a two-sided error tester with smaller gap between ϕ\phi^* and ϕ\phi in the rotation map model that allows (neighbor, index) queries and degree queries.Comment: 23 pages; STACS 201

    Faster and Simpler Distributed Algorithms for Testing and Correcting Graph Properties in the CONGEST-Model

    Full text link
    In this paper we present distributed testing algorithms of graph properties in the CONGEST-model [Censor-Hillel et al. 2016]. We present one-sided error testing algorithms in the general graph model. We first describe a general procedure for converting ϵ\epsilon-testers with a number of rounds f(D)f(D), where DD denotes the diameter of the graph, to O((logn)/ϵ)+f((logn)/ϵ)O((\log n)/\epsilon)+f((\log n)/\epsilon) rounds, where nn is the number of processors of the network. We then apply this procedure to obtain an optimal tester, in terms of nn, for testing bipartiteness, whose round complexity is O(ϵ1logn)O(\epsilon^{-1}\log n), which improves over the poly(ϵ1logn)poly(\epsilon^{-1} \log n)-round algorithm by Censor-Hillel et al. (DISC 2016). Moreover, for cycle-freeness, we obtain a \emph{corrector} of the graph that locally corrects the graph so that the corrected graph is acyclic. Note that, unlike a tester, a corrector needs to mend the graph in many places in the case that the graph is far from having the property. In the second part of the paper we design algorithms for testing whether the network is HH-free for any connected HH of size up to four with round complexity of O(ϵ1)O(\epsilon^{-1}). This improves over the O(ϵ2)O(\epsilon^{-2})-round algorithms for testing triangle freeness by Censor-Hillel et al. (DISC 2016) and for testing excluded graphs of size 44 by Fraigniaud et al. (DISC 2016). In the last part we generalize the global tester by Iwama and Yoshida (ITCS 2014) of testing kk-path freeness to testing the exclusion of any tree of order kk. We then show how to simulate this algorithm in the CONGEST-model in O(kk2+1ϵk)O(k^{k^2+1}\cdot\epsilon^{-k}) rounds

    Finding Cycles and Trees in Sublinear Time

    Full text link
    We present sublinear-time (randomized) algorithms for finding simple cycles of length at least k3k\geq 3 and tree-minors in bounded-degree graphs. The complexity of these algorithms is related to the distance of the graph from being CkC_k-minor-free (resp., free from having the corresponding tree-minor). In particular, if the graph is far (i.e., Ω(1)\Omega(1)-far) {from} being cycle-free, i.e. if one has to delete a constant fraction of edges to make it cycle-free, then the algorithm finds a cycle of polylogarithmic length in time \tildeO(\sqrt{N}), where NN denotes the number of vertices. This time complexity is optimal up to polylogarithmic factors. The foregoing results are the outcome of our study of the complexity of {\em one-sided error} property testing algorithms in the bounded-degree graphs model. For example, we show that cycle-freeness of NN-vertex graphs can be tested with one-sided error within time complexity \tildeO(\poly(1/\e)\cdot\sqrt{N}). This matches the known Ω(N)\Omega(\sqrt{N}) query lower bound, and contrasts with the fact that any minor-free property admits a {\em two-sided error} tester of query complexity that only depends on the proximity parameter \e. For any constant k3k\geq3, we extend this result to testing whether the input graph has a simple cycle of length at least kk. On the other hand, for any fixed tree TT, we show that TT-minor-freeness has a one-sided error tester of query complexity that only depends on the proximity parameter \e. Our algorithm for finding cycles in bounded-degree graphs extends to general graphs, where distances are measured with respect to the actual number of edges. Such an extension is not possible with respect to finding tree-minors in o(N)o(\sqrt{N}) complexity.Comment: Keywords: Sublinear-Time Algorithms, Property Testing, Bounded-Degree Graphs, One-Sided vs Two-Sided Error Probability Updated versio

    A Sublinear Tester for Outerplanarity (and Other Forbidden Minors) With One-Sided Error

    Full text link
    We consider one-sided error property testing of F\mathcal{F}-minor freeness in bounded-degree graphs for any finite family of graphs F\mathcal{F} that contains a minor of K2,kK_{2,k}, the kk-circus graph, or the (k×2)(k\times 2)-grid for any kNk\in\mathbb{N}. This includes, for instance, testing whether a graph is outerplanar or a cactus graph. The query complexity of our algorithm in terms of the number of vertices in the graph, nn, is O~(n2/3/ϵ5)\tilde{O}(n^{2/3} / \epsilon^5). Czumaj et~al.\ showed that cycle-freeness and CkC_k-minor freeness can be tested with query complexity O~(n)\tilde{O}(\sqrt{n}) by using random walks, and that testing HH-minor freeness for any HH that contains a cycles requires Ω(n)\Omega(\sqrt{n}) queries. In contrast to these results, we analyze the structure of the graph and show that either we can find a subgraph of sublinear size that includes the forbidden minor HH, or we can find a pair of disjoint subsets of vertices whose edge-cut is large, which induces an HH-minor.Comment: extended to testing outerplanarity, full version of ICALP pape
    corecore