Table of Contents
Fetching ...

Testing Connectedness of Images

Piotr Berman, Meiram Murzabulatov, Sofya Raskhodnikova, Dragos-Florian Ristache

TL;DR

This paper tackles the problem of testing connectedness for $n\times n$ binary images in the property-testing model by introducing border-connectedness as a key intermediate property and leveraging a multi-level grid partition. It presents two testers: an adaptive one with query complexity $O(\frac{1}{ε^{3/2}}\sqrt{\log\frac{1}{ε}})$ and a nonadaptive one with $O(\frac{1}{ε^{2}})$, both achieving 1-sided error and improving over prior work; it also proves a nonadaptive 1-sided lower bound of $Ω(\frac{1}{ε}\log\frac{1}{ε})$. The core approach combines partitions of the image into squares, border-connectedness testing within squares (via Exhaustive-Square-Tester nonadaptively and Diagonal-Square-Tester adaptively), and a structural lemma linking global distance to border-connectedness with local costs across levels. The results tighten the understanding of sublinear image property testing, providing both tighter upper bounds and the first nonadaptive lower bound for connectedness, with implications for efficient image analysis in noisy or large-scale settings. The techniques—grid-based partitioning, diagonal lattice testing, BFS-limited witnesses, and a careful accounting of local versus global costs—offer a framework potentially extendable to other image properties in the pixel model.

Abstract

We investigate algorithms for testing whether an image is connected. Given a proximity parameter $ε\in(0,1)$ and query access to a black-and-white image represented by an $n\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 $ε$-far from connected. We show that connectedness can be tested nonadaptively with $O(\frac 1{ε^2})$ queries and adaptively with $O(\frac{1}{ε^{3/2}} \sqrt{\log\frac{1}ε})$ queries. The best connectedness tester to date, by Berman, Raskhodnikova, and Yaroslavtsev (STOC 2014) had query complexity $O(\frac 1{ε^2}\log \frac 1ε)$ and was adaptive. We also prove that every nonadaptive, 1-sided error tester for connectedness must make $Ω(\frac 1ε\log \frac 1ε)$ queries.

Testing Connectedness of Images

TL;DR

This paper tackles the problem of testing connectedness for binary images in the property-testing model by introducing border-connectedness as a key intermediate property and leveraging a multi-level grid partition. It presents two testers: an adaptive one with query complexity and a nonadaptive one with , both achieving 1-sided error and improving over prior work; it also proves a nonadaptive 1-sided lower bound of . The core approach combines partitions of the image into squares, border-connectedness testing within squares (via Exhaustive-Square-Tester nonadaptively and Diagonal-Square-Tester adaptively), and a structural lemma linking global distance to border-connectedness with local costs across levels. The results tighten the understanding of sublinear image property testing, providing both tighter upper bounds and the first nonadaptive lower bound for connectedness, with implications for efficient image analysis in noisy or large-scale settings. The techniques—grid-based partitioning, diagonal lattice testing, BFS-limited witnesses, and a careful accounting of local versus global costs—offer a framework potentially extendable to other image properties in the pixel model.

Abstract

We investigate algorithms for testing whether an image is connected. Given a proximity parameter and query access to a black-and-white image represented by an 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 -far from connected. We show that connectedness can be tested nonadaptively with queries and adaptively with queries. The best connectedness tester to date, by Berman, Raskhodnikova, and Yaroslavtsev (STOC 2014) had query complexity and was adaptive. We also prove that every nonadaptive, 1-sided error tester for connectedness must make queries.
Paper Structure (17 sections, 6 theorems, 25 equations, 5 figures, 2 algorithms)

This paper contains 17 sections, 6 theorems, 25 equations, 5 figures, 2 algorithms.

Key Result

Theorem 1.1

Given a proximity parameter ${\epsilon}\in(0,1)$, connectedness of $n\times n$ images, where $n\geq 8{\epsilon}^{-3/2}$, can be ${\epsilon}$-tested adaptively and with 1-sided error with query and time complexity $O(\frac{1}{{\epsilon}^{3/2}} \sqrt{\log\frac{1}{{\epsilon}}})$. It can be tested nonad

Figures (5)

  • Figure 1.1: An image $M$.
  • Figure 1.2: The same image with a grid.
  • Figure 3.1: An illustration to \ref{['def:Grid_pixels_squares_of_different_levels']}: black lines consist of grid pixels; the 16 yellow $k_i\times k_i$ squares represent squares of $S_i$. One of the squares includes diagonal lattice pixels from \ref{['def:diagonal_lattice_pixels_and_regions']} that are used in \ref{['alg:diagonal_square_tester']}.
  • Figure 3.2: An example of execution of Algorithm 2. Black lines represent lattice pixels. The blue diamonds are included in $B$ because they contain pixels from the border of the square. The purple dots represent black pixels in the lattice. The green diamonds are added to $B$ during the BFS because their fences contain black pixels. The white diamonds remain in $A$.
  • Figure 4.1: Our construction of distribution $\mathcal{N}$: an interesting window together with a column of black pixels immediately to the right of it. All other pixels in the constructed image are white.

Theorems & Definitions (24)

  • Theorem 1.1
  • Definition 1.1: Border-connectedness
  • Theorem 1.2
  • Definition 3.1: Grid pixels, squares of different levels, witnesses
  • Definition 3.2: Local cost and effective local cost
  • Claim 3.1
  • proof
  • Claim 3.2: Distance to border-connectedness
  • proof
  • Lemma 3.3: Structural lemma
  • ...and 14 more