Discriminating Codes in Geometric Setups

Sanjana Dey, Florent Foucaud, Subhas C. Nandy, Arunabha Sen · DOI

Abstract

This paper investigates geometric variations of the discriminating code problem. Given a set of points $P$ and a set of geometric objects $S$, the goal is to select a minimum subset $S^* \subseteq S$ such that every point $p \in P$ is covered by a unique, non-empty combination of objects from $S^*$. We analyze both discrete versions (where $S$ is fixed) and continuous versions (where objects can be placed anywhere). Our findings reveal a surprising complexity gap in 1D: while the continuous version is solvable in polynomial time, the discrete version is NP-complete. We provide a 2-approximation algorithm for the 1D discrete case, a PTAS for unit intervals, and constant-factor approximations for 2D unit squares.

Introduction: Identifying Points with Sensors

The Minimum Discriminating Code (MDC) problem is a fundamental challenge in sensor network design. Imagine deploying sensors to monitor a forest for fires. If a fire starts at a specific location, it triggers a set of nearby sensors. To pinpoint the fire's location exactly, every possible point of interest must trigger a unique "alert signature." The MDC problem asks for the minimum number of sensors required to achieve this unique identification.

While well-studied in graph theory, the geometric constraints of 1D intervals and 2D squares introduce unique algorithmic challenges. This paper bridges the gap between theoretical graph bounds and practical geometric deployments.

1D Intervals: Complexity and Approximation

In one dimension, points lie on a line and sensors are represented as intervals. A key contribution of this work is proving that the discrete 1D discriminating code problem is NP-complete. This result is unexpected because most 1D geometric covering problems are tractable, and the continuous version of this specific problem is solvable in polynomial time.

The proof utilizes a sophisticated reduction from a restricted version of 3-SAT, constructing complex variable and clause gadgets to map boolean satisfiability to interval coverage.

Figure 4: The reduction construction for proving NP-completeness of the 1D discrete discriminating code problem, showing variable and clause gadgets.

Despite this hardness, the authors provide a practical 2-approximation algorithm for the 1D discrete case. By using height-balanced binary trees and priority search trees, the algorithm efficiently selects intervals to satisfy discrimination requirements in $O(m \log m)$ time. Furthermore, for unit intervals (where all sensors have the same length), the problem becomes more structured, allowing for a Polynomial-Time Approximation Scheme (PTAS) that can achieve $(1+\epsilon)$-approximate solutions.

2D Unit Squares: Segment Stabbing

In two dimensions, the problem uses axis-parallel unit squares. Both the discrete and continuous versions are shown to be NP-complete. To solve these, the authors introduce a "segment stabbing" framework. Discriminating two points $A$ and $B$ is equivalent to ensuring that at least one selected square covers $A$ but not $B$ (or vice versa). This means the boundary of the square must intersect (or "stab") the line segment connecting $A$ and $B$.

By transforming the problem into a geometric Hitting Set problem on segments, the authors apply Integer Linear Programming (ILP) relaxation and rounding techniques. This yields a $(16 \cdot OPT + 1)$-approximation for the continuous case and a $(64 \cdot OPT + 1)$-approximation for the discrete case.

Summary of Results

The research provides a comprehensive map of the complexity landscape for geometric discriminating codes.

Figure 6: Summary of hardness and approximation results for various geometric discriminating code problems.

Conclusion

This work highlights a rare divergence in complexity between continuous and discrete geometric environments in 1D. While the 2D approximation factors are relatively large, they provide the first constant-factor guarantees for these NP-hard problems. Future research may explore tighter approximation bounds or extend these techniques to other shapes, such as unit disks or arbitrary rectangles, to better model diverse sensor footprints.

Summary updated

BibTeX
@inproceedings{dey2022discriminating,
  author = {Sanjana Dey and Florent Foucaud and Subhas C. Nandy and Arunabha Sen},
  title = {{Discriminating Codes in Geometric Setups}},
  booktitle = {Algorithmica},
  year = {2022},
  doi = {10.1007/s00453-022-01073-0},
}
Figure