English

Testing Connectedness of Images

Data Structures and Algorithms 2024-07-02 v2

Abstract

We investigate algorithms for testing whether an image is connected. Given a proximity parameter ϵ(0,1)\epsilon\in(0,1) and query access to a black-and-white image represented by an n×nn\times n matrix of Boolean pixel values, a (1-sided error) connectedness tester accepts if the image is connected and rejects with probability at least 2/3 if the image is ϵ\epsilon-far from connected. We show that connectedness can be tested nonadaptively with O(1ϵ2)O(\frac 1{\epsilon^2}) queries and adaptively with O(1ϵ3/2log1ϵ)O(\frac{1}{\epsilon^{3/2}} \sqrt{\log\frac{1}{\epsilon}}) queries. The best connectedness tester to date, by Berman, Raskhodnikova, and Yaroslavtsev (STOC 2014) had query complexity O(1ϵ2log1ϵ)O(\frac 1{\epsilon^2}\log \frac 1{\epsilon}) and was adaptive. We also prove that every nonadaptive, 1-sided error tester for connectedness must make Ω(1ϵlog1ϵ)\Omega(\frac 1\epsilon\log \frac 1\epsilon) queries.

Keywords

Cite

@article{arxiv.2312.03681,
  title  = {Testing Connectedness of Images},
  author = {Piotr Berman and Meiram Murzabulatov and Sofya Raskhodnikova and Dragos-Florian Ristache},
  journal= {arXiv preprint arXiv:2312.03681},
  year   = {2024}
}
R2 v1 2026-06-28T13:43:05.982Z