Abstract
An identifying code $C$ of a graph $G$ is a dominating set of $G$ such that any two distinct vertices of $G$ have distinct closed neighbourhoods within $C$. These codes have been widely studied for over two decades. We give an improvement over all the best known upper bounds, some of which have stood for over 20 years, for identifying codes in trees, proving the upper bound of $(n+\ell)/2$, where $n$ is the order and $\ell$ is the number of leaves (pendant vertices) of the graph. In addition to being an improvement in size, the new upper bound is also an improvement in generality, as it actually holds for bipartite graphs having no twins (pairs of vertices with the same closed or open neighbourhood) of degree 2 or greater. We also show that the bound is tight for an infinite class of graphs and that there are several structurally different families of trees attaining the bound. We then use our bound to derive a tight upper bound of $2n/3$ for twin-free bipartite graphs of order $n$, and characterize the extremal examples, as $2$-corona graphs of bipartite graphs. This is best possible, as there exist twin-free graphs, and trees with twins, that need $n-1$ vertices in any of their identifying codes. We also generalize the existing upper bound of $5n/7$ for graphs of order $n$ and girth at least 5 when there are no leaves, to the upper bound $\frac{5n+2\ell}{7}$ when leaves are allowed. This is tight for the $7$-cycle $C_7$ and for all stars.
Introduction
Identifying codes, introduced in the late 1990s, serve as a fundamental model for fault detection and location in networks. In this framework, a subset of vertices $C$ is chosen such that every vertex in the graph is uniquely identifiable by its set of neighbors within $C$. This has practical applications in sensor placement for fire detection or monitoring systems in complex facilities.
For over twenty years, the upper bounds for the size of identifying codes in trees remained largely stagnant. This research addresses this gap by providing tighter, more general bounds for trees and bipartite graphs, specifically incorporating the number of leaves ($\ell$) as a key parameter. The study focuses on abstract mathematical structures including trees, bipartite graphs, and high-girth graphs (where the shortest cycle has length at least 5).
Methodology: Constructive Shifting
The core of the proof for the new upper bounds relies on a constructive shifting method. The authors analyze bipartite graphs by rooting them at a non-leaf vertex and organizing the structure into layers based on distance from the root.
Two initial candidate codes are constructed based on the parity of the layers (even vs. odd). However, these initial sets may not satisfy the identifying property for all vertices, particularly leaves. To resolve this, a "shifting rule" is applied: if a leaf is not uniquely identified, a codeword is moved from the leaf to its neighbor or a nearby vertex to ensure every vertex is uniquely identified.
By comparing these refined codes, the authors demonstrate that at least one must satisfy the proposed $(n + \ell)/2$ size constraint.
Key Results
The study establishes several significant new bounds:
- Bipartite and Tree Bound: For a bipartite graph $G$ of order $n$ with $\ell$ leaves and no twins of degree $\ge 2$, the identifying code size $\gamma^{ID}(G) \le (n + \ell)/2$. This result improves upon previous benchmarks that had stood for two decades.
- Twin-Free Bipartite Bound: For twin-free bipartite graphs, the bound is refined to $2n/3$. The authors identify "2-corona graphs"—structures formed by attaching paths to a base graph—as the extremal cases that reach this limit.
- High-Girth Graphs: For graphs with girth $g \ge 5$, the bound is generalized to $(5n + 2\ell)/7$. This bound is tight for specific structures like the 7-cycle ($C_7$) and star graphs.
Discussion and Future Work
The inclusion of the number of leaves $\ell$ in the upper bound formulas represents a significant conceptual shift, acknowledging that the graph's periphery plays a critical role in code size. While the current work characterizes several extremal families, a complete structural description of all graphs attaining these bounds remains an open problem. Future research may also explore whether higher girth (e.g., $g \ge 6$) allows for even tighter bounds or if specific small "problematic" graphs can be excluded to improve general results.
Summary updated