betaFeedback

WorksComputer Science

On Collusion-Free Teaching in Planar Graphs

Abstract

Non-clashing teaching minimizes teaching complexity among models satisfying the Goldman–Mathias collusion-avoidance criterion. While the Vapnik–Chervonenkis dimension (VCdim) measures the complexity of learning from samples, non-clashing teaching dimension (NCTD) measures the number of examples required when a teacher can select them. Whether NCTD is always bounded above by VCdim remains a fundamental open question in learning theory. In this paper, we investigate this question for the concept classes of closed neighborhoods in planar graphs. We prove a tight upper bound of two on their NCTD, thereby establishing the conjectured inequality for this family. For the positive variant NCTD+, in which teaching sets contain only positive examples, we obtain a tight upper bound of four. Finally, we show that deciding whether either NCTD+ or NCTD is at most one is NP-complete, even for concept classes of closed neighborhoods in planar graphs. In particular, despite the upper bound of two on NCTD for such classes, distinguishing between NCTD values of one and two remains NP-hard.

Introduction

Machine teaching studies the problem of identifying a target concept through a carefully selected set of labeled examples. Unlike traditional learning models, where examples are typically sampled from a distribution, machine teaching allows a teacher to choose examples specifically to facilitate learning. The objective is to minimize the number of examples required for the learner to identify the target concept. A fundamental requirement is that the teacher and learner should not communicate information through unintended channels. The most commonly accepted way to formalize this requirement was proposed by Goldman and Mathias [16] through a collusion-avoidance criterion.

Among a variety of formal models of teaching, for example, the classical teaching dimension model Goldman and Kearns [15], the optimal teacher model Balbach [2], or recursive teaching Zilles et al. [24], we focus on non-clashing teaching that has been introduced and studied in papers by Kirkpatrick et al. [17]; Fallat et al. [12], and subsequent papers by Chalopin et al. [5]; Ganian et al. [14]; Bhore et al. [3]. The non-clashing teaching model is known to be optimal among batch teaching models satisfying Goldman–Mathias criterion. Its central requirement is that no two distinct concepts can be consistent with the union of their teaching sets.

Formally, let C⊆2X\mathcal{C} \subseteq2^{\mathcal{X}} be a finite binary concept class over a domain X\mathcal{X}. A teaching map TT assigns to each concept C∈CC \in\mathcal{C} a set T(C)⊆XT(C) \subseteq\mathcal{X} of examples, labeled according to their membership in CC. The map is non-clashing if, for every pair of distinct concepts C,C′∈CC,C' \in\mathcal{C},

(T(C)∪T(C′))∩(C△C′)≠∅.\left(T(C) \cup T(C')\right) \cap\left(C \triangle C'\right) \ne\varnothing.

We call such a map a non-clashing teaching map (NCTM). Its size is max⁡C∈C∣T(C)∣\max_{C \in\mathcal{C}} |T(C)|, and the non-clashing teaching dimension NCTD⁡(C)\operatorname{NCTD}(\mathcal{C}) is the minimum size of an NCTM for C\mathcal{C}. In the positive variant, teaching sets contain only positive examples, that is, T(C)⊆CT(C) \subseteq C. The corresponding dimension is denoted by NCTD⁡+(C)\operatorname{NCTD}^{+}(\mathcal{C}).

Non-clashing teaching and VC dimension. An important open question by Kirkpatrick et al. [17]; Fallat et al. [12] is whether the non-clashing teaching dimension is always upper-bounded with the Vapnik–Chervonenkis dimension (VCdim) by Vapnik and Chervonenkis [23]. Recall that a set S⊆XS \subseteq\mathcal{X} is shattered by C\mathcal{C} if, for every subset S′⊆SS' \subseteq S, there exists a concept C∈CC \in\mathcal{C} such that C∩S=S′C \cap S = S'; and VCdim⁡(C)\operatorname{VCdim}(\mathcal{C}) is the maximum size of a set shattered by C\mathcal{C}.

While VCdim measures the combinatorial complexity of learning from samples, NCTD measures the number of examples required when a teacher can select them. The inequality NCTD⁡(C)≤VCdim⁡(C)\operatorname{NCTD}(\mathcal{C}) \leq\operatorname{VCdim}(\mathcal{C}), conjectured in the works [17]; [12]; [5]; [3] on non-clashing teaching, would therefore establish a fundamental connection between teaching and learning complexity. Although the question remains open in general, investigating it for structured concept classes seems a natural way to approach it. It is also motivated by the numerous works studying VCdim of closed neighborhoods in graphs [11]; [18]; [4]; [7]. See Foucaud et al. [13] for a list of references on other well-studied graph-based concept classes.

Teaching in graphs. Graph-based concept classes provide a natural setting for such an investigation. On the one hand, they exhibit combinatorial and geometric structure that can be exploited when constructing teaching maps, see, e.g., in [14]; [3]. On the other hand, they are expressive enough to represent arbitrary finite binary concept classes. Indeed, every finite binary concept class can be represented as a selected family of closed neighborhoods in a split graph, preserving its non-clashing teaching dimension. Thus, studying such neighborhood families is as general as studying arbitrary finite binary concept classes.

This observation motivates the study of neighborhoods under structural restrictions on the underlying graph. A related setting is the concept class of graph balls, where Br(v)={u∈V(G):dist⁡(u,v)≤r}B_r(v) = \{u \in V(G) : \operatorname{dist}(u,v) \leq r\}, see, e.g. [6]. Chalopin et al. [4, 5] studied non-clashing teaching for graph balls and established the conjectured inequality for several graph classes, including trees and interval graphs. Chalopin et al. [5]; Bhore et al. [3] also identified planar graphs as an interesting direction, noting that their ball systems have VCdim at most four, while obtaining comparable bounds on NCTD remained open.

Subsequent work by Ganian et al. [14] was focused on positive setting for non-clashing teaching for graph balls. More recently, Bhore et al. [3] studied the class of closed neighborhoods, obtaining algorithmic and hardness results together with upper bounds of five and seven for the general and positive NCTD, respectively, in planar graphs.

Closed neighborhoods of planar graphs. In this paper, we study both the general and positive variants of non-clashing teaching for concept classes consisting of closed neighborhoods in planar graphs. The positive variant refers to teaching models that allow learning only from positive examples; see, e.g., [9]; [1]; [21] and, for non-clashing teaching in particular, [12]; [5]; [14]. We refer to the corresponding dimensions as NEIGHBORHOODS-NCTD (N-NCTD) and POSITIVE NEIGHBORHOODS-NCTD (N\mathrm{N}-NCTD+\mathrm{NCTD}^{+}), respectively. The corresponding decision problems are defined as follows:

PLANAR N-NCTD

Input: A planar graph GG, a family N\mathcal{N} of closed neighborhoods in GG, and an integer kk.

Output: Is N-NCTD(N\mathcal{N}) ≤k\leq k?

The problem PLANAR N-NCTD+^{+} is defined analogously for deciding on N-NCTD+(N)^{+}(\mathcal{N}).

For two distinct neighborhoods N[u],N[v]∈NN[u],N[v]\in\mathcal{N}, we say that a vertex x∈T(N[u])∪T(N[v])x\in T(N[u])\cup T(N[v]) distinguishes the pair if x∈N[u]△N[v]x\in N[u]\mathbin{\triangle}N[v]. The pair is distinguished if such a vertex exists. If N[u]=N[v]N[u]=N[v], then uu and vv are called twins and represent the same concept. We can keep only one vertex of each such pair, and so assume that a given graph GG is twin-free. Lastly, for a graph GG, let NG={N[v]:v∈V(G)}\mathcal{N}_G=\{N[v]:v\in V(G)\}.

Our results. We establish that, for every planar graph GG, N-NCTD(NG\mathcal{N}_G) ≤2\leq2, which is tight. This improves the previously known upper bound of five, and establishes the conjectured inequality between NCTD and VCdim for closed neighborhoods of planar graphs. For PLANAR N-NCTD+^{+}, we prove the tight bound N-NCTD+(NG)≤4^{+}(\mathcal{N}_G)\leq4, improving the previous bound of seven. Finally, we prove that both PLANAR N-NCTD and PLANAR N-NCTD+^{+} are NP-complete even for k=1k=1. In particular, distinguishing between NCTD one and two remains NP-hard for closed neighborhoods of planar graphs.

Organization of the paper In § 2.1, we prove a tight upper bound of four on N-NCTD+(NG)^{+}(\mathcal{N}_G) for planar graphs GG. In § 2.2, we establish a tight upper bound of two for the general variant N-NCTD(NG\mathcal{N}_G). In § 3, we show that deciding whether either dimension is at most one is NP-complete, even for closed neighborhoods of planar graphs. Finally, we conclude in § 4.

Tight Upper Bounds

In this section, we establish tight upper bounds on the non-clashing teaching dimension of closed neighborhoods in planar graphs.

Positive Non-Clashing Teaching Dimension

The positive variant, being arguably more intuitive, is considered first. Our main result in this subsection is the following bound.

Theorem 1 For every planar graph GG, N-NCTD+(NG)≤4^{+}(\mathcal{N}_G)\leq4.

The proof relies on an auxiliary bound of Lemma 2 for outerplanar graphs, which we establish first for 2-connected graphs in Claim 1; and then extend to the general case.

Lemma 2 For every outerplanar graph GG, N-NCTD+(NG)≤2^{+}(\mathcal{N}_G)\leq2.

Claim 1 For every 2-connected outerplanar graph GG, N-NCTD+(NG)≤2^{+}(\mathcal{N}_G)\leq2.

Proof We first consider graphs with at most four vertices. For ∣V(G)∣≤3|V(G)|\leq3, all closed neighborhoods coincide, so the claim follows immediately. If ∣V(G)∣=4|V(G)|=4, then GG is either a cycle or a cycle with a chord. In the former case, label the vertices cyclically and set T(vi)={vi,vi+1}T(v_i)=\{v_i,v_{i+1}\}. In the latter case, label the vertices so that v1v3v_1v_3 is the chord, and set T(v1)=T(v3)={v2,v4}T(v_1)=T(v_3)=\{v_2,v_4\}, T(v2)={v2,v3}T(v_2)=\{v_2,v_3\}, and T(v4)={v4,v1}T(v_4)=\{v_4,v_1\}. It is straightforward to verify that in both cases the maps are non-clashing.

Now suppose that ∣V(G)∣=n≥5|V(G)|=n\ge5. Fix an outerplanar embedding and label the vertices v1,…,vnv_1,\ldots,v_n in cyclic order along the outer face, with indices taken modulo nn. Set T(vi)={vi−1,vi+1}T(v_i)=\{v_{i-1},v_{i+1}\}. Clearly, each teaching set has size two and is contained in the corresponding closed neighborhood.

Suppose, for a contradiction, that two distinct closed neighborhoods N[vi]N[v_i] and N[vj]N[v_j] are not distinguished. Then {vi−1,vi+1}⊆N[vj]\{v_{i-1},v_{i+1}\}\subseteq N[v_j], {vj−1,vj+1}⊆N[vi]\{v_{j-1},v_{j+1}\}\subseteq N[v_i]. Consider the two paths between viv_i and vjv_j along the outer cycle. Since n≥5n\ge5, at least one contains at least three edges. Without loss of generality, orient the cycle so that this path passes through vj+1v_{j+1} and vi−1v_{i-1}, in that order. Thus, vi,vj,vj+1,vi−1v_i,v_j,v_{j+1},v_{i-1} are distinct. The conditions above imply that vivj+1,vjvi−1∈E(G)v_iv_{j+1},v_jv_{i-1}\in E(G). Contracting the other viv_i–vjv_j path and the vj+1v_{j+1}–vi−1v_{i-1} segment gives us a K4K_4 minor, so contradicts outerplanarity.

Hence, TT is a positive non-clashing teaching map of size at most two.

Proof [of Lemma 2] We construct a positive non-clashing teaching map TT of size at most two. Since teaching sets in different connected components are nonempty and positive, it suffices to consider each connected component separately.

First, for every cut-vertex vv, we set T(v)={u,w}T(v)=\{u,w\}, where uu and ww are neighbors of vv belonging to distinct components of G−vG-v. Next, for every non-cut-vertex belonging to a 2-connected component, we assign the teaching set given by Claim 1. Finally, for every remaining vertex vv, we set T(v)={v}T(v)=\{v\}. Clearly, all teaching sets are positive and have size at most two.

We show that TT is non-clashing. First, consider a cut-vertex vv with T(v)={u,w}T(v)=\{u,w\}. Since uu and ww belong to distinct components of G−vG-v, no vertex other than vv is adjacent to both. Thus, T(v)T(v) distinguishes N[v]N[v] from every other closed neighborhood.

Now consider two distinct non-cut-vertices uu and vv. If they belong to the same 2-connected component, their neighborhoods are distinguished by Claim 1. Otherwise, they belong to different 2-connected components or lie outside any such component. In either case, their neighborhoods intersect in at most one cut-vertex, while each teaching set contains an example outside this intersection. Hence, at least one of their teaching sets distinguishes the pair.

Therefore, TT is a positive NCTM of size at most two, and hence, for an outerplanar graph GG, N-NCTD+(NG)≤2\mathrm{N\text{-}NCTD}^{+}(\mathcal{N}_G)\le2.

The bound of Lemma 2 is tight. Consider the outerplanar graph GG in Figure 1. Since N[v1]=N[v2]∪{v6}N[v_1]=N[v_2]\cup\{v_6\}, N[v4]=N[v5]∪{v3}N[v_4]=N[v_5]\cup\{v_3\}, any positive non-clashing teaching map of size one must satisfy T(v1)={v6}T(v_1)=\{v_6\} and T(v4)={v3}T(v_4)=\{v_3\}. However, these sets do not distinguish a pair ⟨N[v1],N[v4]⟩\langle N[v_1],N[v_4]\rangle. Thus, N-NCTD+(NG)=2\mathrm{N\text{-}NCTD}^{+}(\mathcal{N}_G)=2.

Figure 1. An outerplanar graph GG with N-NCTD+(NG)=2^{+}(\mathcal{N}_G)=2.

Now we proceed with the proof of Theorem 1.

Proof [Theorem 1] We begin by constructing a preliminary teaching map, which we subsequently modify to satisfy the non-clashing condition.

Preliminary Teaching Map. For each vertex vv with deg⁡(v)≤3\deg(v)\le3, set T(v)=N[v]T(v)=N[v]. For vertices of degree greater than three, we use the following construction. Since G[N[v]∖{v}]G[N[v]\setminus\{v\}] is outerplanar, Lemma 2 provides a positive non-clashing teaching map of size at most two for its closed neighborhoods. We extend each teaching set by adding vv, obtaining sets of size at most three.

For every vertex vv with deg⁡(v)≤3\deg(v)\le3, the choice T(v)=N[v]T(v)=N[v] distinguishes its neighborhood from every other distinct neighborhood. Moreover, when deg⁡(v)>3\deg(v)>3, the constructed teaching Examples showing that the upper bounds in Lemma 2 and Theorem 1 are tight.

sets also distinguish every pair ⟨N[u],N[w]⟩\langle N[u],N[w]\rangle with u∈N[v]∖{v}u \in N[v]\setminus\{v\} and w∉N[v]w \notin N[v], since v∈T(u)v \in T(u) but v∉N[w]v \notin N[w]. Thus, after constructing the preliminary teaching map TT, it remains to distinguish pairs of neighborhoods centered within N[v]N[v]. We address these pairs by modifying the preliminary teaching sets in four steps.

First, we consider vertices that are twins in G[N[v]]G[N[v]] but not in GG. Next, we handle vertices u∈N[v]∖{v}u \in N[v]\setminus\{v\} satisfying N[v]⊊N[u]N[v] \subsetneq N[u], which we call saturating vertices. We then modify the teaching sets of the remaining vertices in N[v]∖{v}N[v]\setminus\{v\} and, finally, the teaching set of vv. Throughout these modifications, we ensure that all previously distinguished pairs remain distinguished.

Twin vertices in G[N[v]∖{v}]G[N[v]\setminus\{v\}]. Let X⊆N[v]∖{v}X \subseteq N[v]\setminus\{v\} be a set of pairwise twins in G[N[v]∖{v}]G[N[v]\setminus\{v\}]. Since such vertices form a clique, ∣X∣≤3|X| \le3; otherwise, XX together with vv would contain a K5K_5, contradicting planarity. We modify the teaching sets according to the size of XX.

Case 1: ∣X∣=2|X|=2. Since the vertices of XX have distinct closed neighborhoods in GG, their symmetric difference contains a vertex outside N[v]N[v]. We add this vertex to the teaching set of the vertex whose neighborhood has it, distinguishing the pair while increasing the teaching set size to at most four.

Case 2: ∣X∣=3|X|=3. First, no vertex in N[v]∖(X∪{v})N[v]\setminus(X\cup\{v\}) can be adjacent to a vertex of XX. Otherwise, it would be adjacent to all three vertices of XX, forming a K5K_5 together with vv.

For each u∈Xu \in X, set T(u)={u,v}T(u)=\{u,v\}. Since GG is twin-free, the closed neighborhoods of vertices in XX are pairwise distinct. For each pair u,w∈Xu,w \in X, choose a vertex in N[u]△N[w]N[u]\mathbin{\triangle}N[w] and add it to the teaching set of the vertex whose neighborhood contains it. Each teaching set receives at most two additional vertices, so its size remains at most four.

These sets distinguish vertices of XX from vertices outside N[v]N[v] by v∈T(u)v \in T(u), from vertices in N[v]∖(X∪{v})N[v]\setminus(X\cup\{v\}) by u∈T(u)u \in T(u), and from one another by the additional vertices.

Saturating vertices. We call a vertex u∈N[v]∖{v}u \in N[v]\setminus\{v\} saturating if N[v]⊊N[u]N[v] \subsetneq N[u]. So, distinguishing N[u]N[u] from N[v]N[v] requires a vertex from N[u]∖N[v]N[u]\setminus N[v] in T(u)T(u).

If deg⁡(v)>4\deg(v)>4, there is at most one saturating neighbor. Indeed, two such neighbors, together with vv, would form one part of a K3,3K_{3,3}, with three other neighbors of vv forming the other, contradicting planarity.

If uu is the unique saturating neighbor, it has no twin in G[N[v]∖{v}]G[N[v]\setminus\{v\}]. Thus, its teaching set has size at most three, and we add a vertex from N[u]∖N[v]N[u]\setminus N[v] to distinguish the pair.

It remains to consider deg⁡(v)=4\deg(v)=4 with two saturating neighbors u,wu,w. These vertices are twins in G[N[v]∖{v}]G[N[v]\setminus\{v\}], so the previous step has already added a vertex outside N[v]N[v] to one of their teaching sets, say T(u)T(u). Hence, N[u]N[u] and N[v]N[v] are already distinguished. We add a vertex from N[w]∖N[v]N[w]\setminus N[v] to T(w)T(w), keeping both teaching sets of size at most four.

Remaining vertices of N[v]∖{v}N[v] \setminus\{v\}. We now aim to distinguish N[v]N[v] from neighborhoods centered within non-saturating vertices of N[v]∖{v}N[v] \setminus\{v\}.

Case 1: deg⁡(v)=4\deg(v) = 4. Let N[v]={v,v1,v2,v3,v4}N[v] = \{v, v_1, v_2, v_3, v_4\} and set T(v)=N[v]∖{v}T(v) = N[v] \setminus\{v\}. This distinguishes N[v]N[v] from every non-saturating neighbor, saturating neighbors are handled by their own teaching sets.

Suppose w∈V(G)∖N[v]w \in V(G) \setminus N[v] satisfies N[v]∖{v}⊆N[w]N[v] \setminus\{v\} \subseteq N[w]. We redefine T(w)={w,v1,v2,v3}T(w) = \{w, v_1, v_2, v_3\}. This set distinguishes N[w]N[w] from every other neighborhood centered outside N[v]N[v]: a third vertex adjacent to v1v_1, v2v_2, v3v_3, together with vv and ww, would yield a K3,3K_{3,3}, contradicting planarity. Moreover, w∈T(w)∖N[v]w \in T(w) \setminus N[v] distinguishes N[w]N[w] from N[v]N[v], while v∈T(u)∖N[w]v \in T(u) \setminus N[w] distinguishes N[w]N[w] from N[u]N[u] for every u∈N(v)u \in N(v).

Case 2: deg⁡(v)>4\deg(v) > 4. Here, we first show that the outerplanar graph H=G[N[v]∖{v}]H = G[N[v] \setminus\{v\}] contains two vertices v1v_1 and v2v_2 of degree at most two with at most one common neighbor in H=G[N[v]∖{v}]H = G[N[v] \setminus\{v\}].

Since HH is outerplanar, it can be extended to a maximal outerplanar graph H′H'. As ∣V(H′)∣≥5|V(H')| \ge5, we can choose two nonadjacent degree-two vertices v1v_1, v2v_2 of H′H'. Since v1v_1 and v2v_2 have degree two, two common neighbors for them would force the outer boundary of H′H' to be a four-cycle, contradicting ∣V(H′)∣≥5|V(H')| \ge5. Thus, v1v_1 and v2v_2 have at most one common neighbor in H′H', and hence also in HH.

So, if v1v_1 and v2v_2 have a common neighbor ww in HH such that N[v]⊈N[w]N[v] \not\subseteq N[w], choose v3∈N(v)∖N[w]v_3 \in N(v) \setminus N[w]. Otherwise, choose any v3∈N(v)∖{v1,v2}v_3 \in N(v) \setminus\{v_1, v_2\}. Set T(v)={v,v1,v2,v3}T(v) = \{v, v_1, v_2, v_3\}.

The vertex vv distinguishes N[v]N[v] from every neighborhood centered outside N[v]N[v]. Moreover, any neighbor containing both v1v_1 and v2v_2 in its closed neighborhood must be their unique common neighbor ww. By the choice of v3v_3, this neighbor either saturates vv or is distinguished from vv by v3v_3. Thus, T(v)T(v) distinguishes N[v]N[v] from every non-saturating neighbor, while saturating neighbors are handled by their own teaching sets.

After these modifications, every pair of distinct closed neighborhoods is distinguished by at least one of their teaching sets. Moreover, all teaching sets remain positive and have size at most four. Thus, the resulting teaching map is non-clashing, proving that N-NCTD+(NG)≤4^+(\mathcal{N}_G) \le4.

The upper bound for N-NCTD+^+ on planar graphs is also tight. Consider the graph GG in Figure 2. Since N[v]=V(G)N[v] = V(G) and N[vi]=V(G)∖{vi+2}N[v_i] = V(G) \setminus\{v_{i+2}\} (indices modulo 4), any valid positive non-clashing teaching map must take vi+2v_{i+2} in T(v)T(v) for every i∈[4]i \in[4]. Thus, ∣T(v)∣≥4|T(v)| \ge4, and the upper bound yields N-NCTD+(NG)=4^+(\mathcal{N}_G) = 4.

Figure 2. A planar graph GG with N-NCTD+(NG)=4^{+}(\mathcal{N}_G)=4.

(General) Non-Clashing Teaching Dimension

In this subsection, we prove a tight upper bound of two on the non-clashing teaching dimension of closed neighborhoods in planar graphs.

Theorem 3 For every planar graph GG, N-NCTD(NG)≤2(\mathcal{N}_G) \le2.

The proof relies on two auxiliary lemmas. Lemma 4 shows that every concept class of size at most five admits a non-clashing teaching map of size at most one. And Lemma 6 establishes that every planar graph of minimum degree at least five contains a vertex whose closed neighborhood induces a family admitting a non-clashing teaching map of size at most one. Together, these results yield Theorem 3.

Lemma 4. For every concept class C\mathcal{C} with ∣C∣≤5|\mathcal{C}| \le5, we have NCTD⁡(C)≤1\operatorname{NCTD}(\mathcal{C}) \le1.

Proof. First, repeatedly remove any concept CC whose label on some example xx is unique among the remaining concepts, setting T(C)={x}T(C) = \{x\}. This distinguishes CC from all remaining concepts. If at most one concept remains, we are done.

Otherwise, the remaining family R\mathcal{R} has four or five concepts. Since the reduction can no longer be applied, every nonconstant example, i.e., an example whose label is not the same for all concepts in R\mathcal{R}, must be positive for at least two concepts and negative for at least two others. Thus, each such example partitions R\mathcal{R} into two label classes of sizes 2+22 + 2 or 2+32 + 3.

Construct an auxiliary graph HH on R\mathcal{R}, where each nonconstant example xx induces an edge exe_x joining the two concepts from one of its size-two label classes. Thus, xx distinguishes C1,C2∈RC_1, C_2 \in\mathcal{R} precisely when exactly one of them is an endpoint of exe_x.

Since the concepts are distinct, HH has at most one isolated vertex and no component of size two, as either would imply two concepts with identical labels on all examples. Hence, HH has one nontrivial component, possibly with an isolated vertex II.

Let TT be a spanning tree of the nontrivial component, rooted at a leaf RR. Let SS be the neighbor of RR, and choose a neighbor K≠RK \ne R of SS. For each non-root vertex CC, assign the example corresponding to its parent edge in TT. Assign to RR the example corresponding to an edge SKSK, and, if II exists, assign to II the example corresponding to an edge RSRS.

We verify that the resulting map is non-clashing. Two non-root vertices are distinguished by at least one of their parent edges, since they cannot be parents of each other (every edge has a unique example, since HH was constructed on size-two sets). The vertex RR is distinguished from SS by SKSK, and from every other non-root vertex by its parent edge. Finally, if II exists, it is distinguished from every non-root vertex by that vertex’s parent edge, and from RR by an edge RSRS.

Thus R\mathcal{R} admits a non-clashing teaching map of size one. Inserting the previously removed concepts preserves the non-clashing property, completing the proof.

Before proceeding with Lemma 6, we need to prove the following structural property of planar graphs with minimum degree 5.

Lemma 5. Let GG be a planar graph with minimum degree 5. Then there exists a vertex v∈V(G)v \in V(G) such that deg⁡(v)=5\deg(v) = 5 and G[N[v]∖{v}]∈{P5,C5}G[N[v] \setminus\{v\}] \in\{P_5, C_5\}.

Proof. We may assume that GG is connected. Every planar graph GG with minimum degree at least 5 contains a triangular face; otherwise, Euler’s formula implies ∣E(G)∣≤2∣V(G)∣−4|E(G)| \le2|V(G)| - 4, contradicting the Handshaking Lemma, which gives ∣E(G)∣≥52∣V(G)∣|E(G)| \ge\frac{5}{2}|V(G)|. Fix a plane embedding of GG in which a triangular face TT is the outer face. Among all triangles whose bounded interiors contain at least one vertex, choose a triangle TT minimizing the number of vertices in its interior. By the minimality of TT, there is no non-empty triangle contained in the face bounded by TT.

Let HH be the subgraph consisting of TT, together with all vertices and edges contained in the face bounded by TT. We denote I=V(H)∖V(T)I = V(H) \setminus V(T) (vertices enclosed by TT), and let FF denote the set of bounded faces of HH. Furthermore, for every u∈Iu \in I, deg⁡H(u)=deg⁡G(u)≥5\deg_H(u) = \deg_G(u) \ge5. For convenience, we also denote ∣I∣=n|I| = n, ∣E(H)∣=m|E(H)| = m, ∣F∣=f|F| = f and, for a face F′∈FF' \in F let ℓ(F′)\ell(F') be the length of the boundary walk. First, we make two standard observations for HH. By Euler’s formula, we have (n+3)−m+(f+1)=2(n + 3) - m + (f + 1) = 2, so f=m−n−2f = m - n - 2. Also, ∑F′∈Fℓ(F′)=2m−3\sum_{F' \in F} \ell(F') = 2m - 3, since each edge is counted twice, except for the three edges of the outer face.

Define the total degree deficit of interior vertices as D=∑u∈I(6−deg⁡(u))D = \sum_{u\in I}(6-\deg(u)). Since every interior vertex has degree at least 5, only degree-5 vertices contribute positively to DD. We also define the faces sum as Q=∑f∈F(2ℓ(f)−6)Q = \sum_{f\in F}(2\ell(f)-6), where only triangular faces contribute zero.

By the Handshaking Lemma,

D=∑u∈I(6−deg⁡(u))=6n−∑u∈Ideg⁡(u)=6n−2m+∑v∈Tdeg⁡H(v).(1)D = \sum_{u\in I}(6-\deg(u)) = 6n-\sum_{u\in I}\deg(u) = 6n-2m+\sum_{v\in T}\deg_H(v). \tag*{(1)}

Based on the observations above,

Q=∑f∈F(2ℓ(f)−6)=2∑f∈F′ℓ(f)−6∣F∣=2(2m−3)−6(m−n−2)=6n−2m+6.(2)Q = \sum_{f\in F}(2\ell(f)-6)=2\sum_{f\in F'}\ell(f)-6|F|=2(2m-3)-6(m-n-2)=6n-2m+6. \tag*{(2)}

Therefore, from Equations (1) and (2), D=Q−6+∑v∈Tdeg⁡H(v)D = Q-6+\sum_{v\in T}\deg_H(v). Since the sum ∑v∈Tdeg⁡H(v)\sum_{v\in T}\deg_H(v) counts edges of TT twice and connectivity guarantees at least one more edge between TT and II, we have ∑v∈V(T)deg⁡H(v)>6\sum_{v\in V(T)}\deg_H(v)>6. Hence, D>QD>Q.

Assume that there is no degree-5 vertex in II incident with at most one non-triangular face. In other words, for every vertex u∈Iu\in I of degree 5, the number of its incident non-triangular faces t(u)≥2t(u)\ge2.

First, let us upper-bound the sum of these terms:

∑u∈It(u)≤∑f∈Fℓ(f)≥4ℓ(f).(3)\sum_{u\in I}t(u)\le\sum_{\substack{f\in F\\ \ell(f)\ge4}}\ell(f). \tag*{(3)}

Indeed, on the left-hand side, each face ff is counted only if ℓ(f)>3\ell(f)>3, and at most ℓ(f)\ell(f) times. Next, under our assumption, the inequality 6−deg⁡(u)≤t(u)26-\deg(u)\le\frac{t(u)}{2} holds for every u∈Iu\in I. Therefore, D=∑u∈I(6−deg⁡(u))≤12∑u∈It(u)D=\sum_{u\in I}(6-\deg(u))\le\frac{1}{2}\sum_{u\in I}t(u), and by the upper-bound we established above, we further obtain 12∑u∈It(u)≤12∑f∈Fℓ(f)≥4ℓ(f)\frac{1}{2}\sum_{u\in I}t(u)\le\frac{1}{2}\sum_{\substack{f\in F\\ \ell(f)\ge4}}\ell(f).

Lastly, let us show that 12∑f∈Fℓ(f)≥4ℓ(f)≤∑f∈F(2ℓ(f)−6)=Q\frac{1}{2}\sum_{\substack{f\in F\\ \ell(f)\ge4}}\ell(f)\le\sum_{f\in F}(2\ell(f)-6)=Q. For every triangular face ff, we have 2ℓ(f)−6=02\ell(f)-6=0, while for every face ff with ℓ(f)≥4\ell(f)\ge4, we have 12ℓ(f)≤2ℓ(f)−6\frac{1}{2}\ell(f)\le2\ell(f)-6.

Thus, under our assumption, D≤QD\le Q, contradicting D>QD>Q. Therefore, there always exists a vertex v∈V(G)v\in V(G) of degree 5 incident with at least four triangular faces.

Consider the graph H′=G[N[v]∖{v}]H'=G[N[v]\setminus\{v\}]. Since at least four faces are triangular, there is a path through all five vertices of H′H', which can be ordered along this path. Assume that there is an edge between two vertices u,wu,w that are non-consecutive in the cyclic order around vv. Then the edges between u,wu,w, and vv would form a separating triangle, yielding a contradiction with the minimality of chosen triangular outer face TT. Thus, the only possible additional edge joins the endpoints of the path. Therefore, H′H' is either a path or a cycle on five vertices.

Lemma 6. For every planar graph GG with minimum degree 5, there exists a vertex v∈V(G)v \in V(G) such that the family Nv={N[u]∣u∈N[v]}\mathcal{N}_v = \{N[u] \mid u \in N[v]\} admits a non-clashing teaching map of size at most 1.

Proof. Let v∈V(G)v \in V(G) be a vertex of degree five such that G[N(v)]∈{P5,C5}G[N(v)] \in\{P_5,C_5\} (exists by Lemma 5).

First, suppose G[N(v)]≅C5G[N(v)] \cong C_5, with vertices indexed cyclically modulo five, i.e. {v1,…,v5}\{v_1,\ldots,v_5\}. Define T(N[v])=∅T(N[v]) = \varnothing, T(N[vi])={vi+2}T(N[v_i]) = \{v_{i+2}\}, for each vi∈N[v]∖{v}v_i \in N[v] \setminus\{v\}. Every pair involving N[v]N[v] is distinguished, since vi+2∈N[v]∖N[vi]v_{i+2} \in N[v] \setminus N[v_i]. For two consecutive vertices, ⟨N[vi],N[vi+1]⟩\langle N[v_i],N[v_{i+1}]\rangle is distinguished by vi+2v_{i+2}. For vertices at cyclic distance two, one selects the other, which also distinguishes the pair.

Now suppose G[N(v)]≅P5G[N(v)] \cong P_5, with vertices v1,…,v5v_1,\ldots,v_5 in path order. Define

T(N[v])={v1},T(N[v1])={v3},T(N[v2])={v4},T(N[v3])={v5},T(N[v4])={v3},T(N[v5])={v2}.\begin{aligned} T(N[v]) &= \{v_1\}, & T(N[v_1]) &= \{v_3\}, & T(N[v_2]) &= \{v_4\},\\ T(N[v_3]) &= \{v_5\}, & T(N[v_4]) &= \{v_3\}, & T(N[v_5]) &= \{v_2\}. \end{aligned}

Every pair involving N[v]N[v] is distinguished by the teaching set of the neighbor, except for N[v4]N[v_4], which is distinguished by v1∈T(N[v])v_1 \in T(N[v]).

Among the neighbors, T(N[v1])T(N[v_1]) distinguishes N[v1]N[v_1] from N[v2]N[v_2], N[v3]N[v_3], N[v4]N[v_4]; T(N[v2])T(N[v_2]) distinguishes N[v2]N[v_2] from N[v3]N[v_3], N[v4]N[v_4], N[v5]N[v_5]; and T(N[v3])T(N[v_3]) distinguishes N[v3]N[v_3] from N[v4]N[v_4], N[v5]N[v_5]. The two remaining pairs are distinguished by T(N[v5])T(N[v_5]) and T(N[v4])T(N[v_4]), respectively.

In both cases, all teaching sets belong to N[v]N[v], so the assignment is valid in GG. Hence the constructed maps are non-clashing and have size at most one.

Now, we are turning to the proof of Theorem 3.

Proof [Theorem 3]. First, suppose that GG contains a vertex uu with deg⁡(u)≤4\deg(u) \le4. By Lemma 4, the family Nu={N[v]∣v∈N[u]}\mathcal{N}_u = \{N[v] \mid v \in N[u]\} admits a non-clashing teaching map SS of size at most one. For every v∈N[u]v \in N[u], set T(N[v])=S(N[v])∪{u}T(N[v]) = S(N[v]) \cup\{u\}. The example uu distinguishes every pair ⟨N[v],N[w]⟩\langle N[v],N[w]\rangle with v∈N[u]v \in N[u] and w∉N[u]w \notin N[u], while SS distinguishes all pairs of distinct neighborhoods centered in N[u]N[u].

Otherwise, GG has minimum degree at least five. By Lemma 6, there exists a vertex uu of degree five such that G[N(u)]≅P5G[N(u)] \cong P_5 or C5C_5, and the family Nu={N[v]∣v∈N[u]}\mathcal{N}_u = \{N[v] \mid v \in N[u]\} admits a non-clashing teaching map SS of size at most one. For every v∈N[u]v \in N[u], set T(N[v])=S(N[v])∪{u}T(N[v]) = S(N[v]) \cup\{u\}. As in the previous case, the example uu distinguishes every pair ⟨N[v],N[w]⟩\langle N[v],N[w]\rangle with v∈N[u]v \in N[u] and w∉N[u]w \notin N[u], since u∈N[v]∖N[w]u \in N[v] \setminus N[w]. Meanwhile, SS distinguishes all pairs of distinct neighborhoods centered in N[u]N[u], including those involving N[u]N[u] itself. Thus, all these pairs are distinguished using teaching sets of size at most two.

In either case, remove N[u]N[u] from GG and repeat the construction on the remaining induced graph. Since each iteration distinguishes all pairs within the removed set and between the removed set and the remaining vertices, the resulting teaching map is non-clashing and has size at most two.

The bound of Theorem 3 is tight, as shown by the example in Subsection 2.1 (see Figure 1).

Hardness of Teaching Neighborhoods

This section establishes that deciding whether the non-clashing teaching dimension is at most one is NP-complete for closed neighborhoods of planar graphs, in both the general and positive settings.

Theorem 7 Given a planar graph GG and a set of closed neighborhoods N\mathcal{N}, deciding whether N-NCTD(N\mathcal{N}) ≤1\le1 is NP-complete.

Reduction Example: from an instance φ=(x1∨xˉ2∨x3)∧(xˉ2∨xˉ3∨x4)\varphi=(x_{1}\vee\bar{x}_{2}\vee x_{3})\wedge(\bar{x}_{2}\vee\bar{x}_{3}\vee x_{4}) of PLANAR(≤3,3\le3,3)-SAT to an instance (G,N,1)(G,\mathcal{N},1) of PLANAR N-NCTD.

We reduce from PLANAR(≤3,3\le3,3)-SAT, which is one of the known NP-complete restrictions of PLANAR 3-SAT Dahlhaus et al. [8]; Tippenhauer [22].

PLANAR(≤3,3\le3,3)-SAT

Input: A CNF formula φ=(X,C)\varphi=(\mathcal{X},\mathcal{C}) such that (i) every clause contains two or three literals over distinct variables, (ii) every variable occurs exactly once positively and twice negatively, and (iii) the variable–clause incidence graph is planar.

Output: Is φ\varphi satisfiable?

The reduction Given an instance φ=(X,C)\varphi=(\mathcal{X},\mathcal{C}) of PLANAR(≤3,3\le3,3)-SAT, we construct PLANAR N-NCTD instance (G,N,1)(G,\mathcal{N},1) in polynomial time, starting with φ=(X,C)\varphi=(\mathcal{X},\mathcal{C}) as an instance of PLANAR(≤3,3\le3,3)-SAT, for an example, see Figure 3. The associated graph GφG_{\varphi} has a variable vertex xix_i, two literal vertices tit_i and fif_i for each variable, and a clause vertex cjc_j for each clause. Each xix_i is adjacent to tit_i and fif_i, and each literal vertex is adjacent to the clause vertices representing its occurrences.

Figure 3. Associated graph GφG_{\varphi} for a PLANAR(≤3,3\le3,3)-SAT instance φ=(x1∨xˉ2∨x3)∧(xˉ2∨xˉ3∨x4)\varphi=(x_{1}\vee\bar{x}_{2}\vee x_{3})\wedge(\bar{x}_{2}\vee\bar{x}_{3}\vee x_{4}).

First, attach one pendant vertex xi′x'_i to each variable vertex xix_i and one pendant vertex cj′c'_j to each clause vertex cjc_j. Next, for every pair of a true-literal vertex tit_i and a false-literal vertex fif_i, we reverse their clause–literal adjacencies in GφG_{\varphi}. This can be done by simply exchanging the labels of these two vertices. After this modification, each vertex tit_i is adjacent to the two clauses containing xi‾\overline{x_i}, whereas fif_i is adjacent to the unique clause containing xix_i.

For each variable xix_i, choose one of its two negative-occurrence clauses, say cjc_j. Add the edge cjxic_jx_i and a new vertex tijt_i^j adjacent to both cjc_j and xix_i. We call tijt_i^j the bonus clause-vertex. Attach a pendant vertex ti′jt_i^{\prime j} to tijt_i^j, and add an extra vertex ti′t_i^{\prime} adjacent to both xix_i and tijt_i^j. See Figure 4 for an illustration.

Figure 4. A graph GG constructed from the associated graph GφG_{\varphi}. Black vertices represent concepts included in N\mathcal{N}.

These changes preserve planarity. Indeed, tit_i has exactly three neighbors in GφG_{\varphi}. Thus, the edge cjxic_jx_i can be drawn alongside the path cjtixic_jt_ix_i within a face of the given embedding. The vertices tijt_i^j, ti′jt_i^{\prime j}, and ti′t_i^{\prime}, together with their incident edges, can be embedded inside the resulting triangular face. Pendant vertices can be embedded locally. The remaining elements can then be embedded without crossings inside the face bounded by this path and the newly added edge cjxic_jx_i, since none of the newly introduced vertices is adjacent to any vertex outside this face (see Figure 4 for an illustration). Lastly, we add a disjoint 4-cycle CC, V(C)={v0,v1,v2,v3}V(C)=\{v_0,v_1,v_2,v_3\}. This completes the construction of GG.

Define N\mathcal{N} to consist of the closed neighborhoods of all vertices of GG, except those of the literal-vertices tit_i, fif_i and the extra vertices ti′t_i^{\prime}. Thus N\mathcal{N} includes neighborhoods centered at variable vertices, clause vertices, bonus clause-vertices, pendant vertices, and the 4-cycle vertices. Finally, we return (G,N,1)(G,\mathcal{N},1) as an instance of PLANAR N-NCTD and the construction is polynomial in the size of φ\varphi.

The high-level idea behind reversal of the clause–literal adjacencies is the following. Consider a clause-vertex cjc_j and a variable-vertex xix_i such that the variable xix_i appears in the clause corresponding to cjc_j. If the teaching set of N[xi]\mathcal{N}[x_i] contains a literal-vertex representing an assignment that satisfies this clause, then this literal-vertex should distinguish N[xi]\mathcal{N}[x_i] from N[cj]\mathcal{N}[c_j]. To ensure this, we reverse the clause–literal adjacencies so that the satisfying literal-vertex is not adjacent to the clause-vertex cjc_j.

Proof Let us first show the following direction: if (G,N,1)(G,\mathcal{N},1) admits a valid non-clashing teaching map, then the PLANAR(≤3,3\leq3,3)-SAT instance φ\varphi is satisfiable.

Suppose that N\mathcal{N} admits a non-clashing teaching map TT of size at most one. First, consider neighborhoods of the vertices of the 4-cycle CC. For indices taken modulo 4, there exists vi∈V(C)v_i\in V(C) such that, in order to distinguish N[vi]\mathcal{N}[v_i] from N[vi+1]\mathcal{N}[v_{i+1}] and from N[vi−1]\mathcal{N}[v_{i-1}], T(vi)={vi+2}T(v_i)=\{v_{i+2}\}, since no other vertex distinguishes both pairs. In particular, vi+2v_{i+2} belongs to N[vi]\mathcal{N}[v_i] but not to any neighborhood centered outside CC. Consequently, for any u∉V(C)u\notin V(C), T(u)T(u) must be a subset of N[u]\mathcal{N}[u], i.e. if T(u)={z}T(u)=\{z\} with z∉N[u]∪V(C)z\notin\mathcal{N}[u]\cup V(C), then N[u]\mathcal{N}[u] and N[vi]\mathcal{N}[v_i] would not be distinguished, and if z∈V(C)z\in V(C), N[u]\mathcal{N}[u] and N[vj]\mathcal{N}[v_j] are not distinguished, where vjv_j is a non-adjacent to zz vertex of the cycle.

For each clause-vertex cjc_j, a pair ⟨N[cj],N[cj′]⟩\langle\mathcal{N}[c_j],\mathcal{N}[c_j^{\prime}]\rangle can be distinguished only by T(cj)⊆N[cj]∖{cj,cj′}T(c_j)\subseteq\mathcal{N}[c_j]\setminus\{c_j,c_j^{\prime}\}. The same applies for each variable-vertex and each bonus clause-vertex.

Then, for each variable-vertex xix_i, there is a vertex tijt_i^j. Since N[tij]⊂N[xi]\mathcal{N}[t_i^j]\subset\mathcal{N}[x_i] and N[xi]∖N[tij]={ti,fi}\mathcal{N}[x_i]\setminus\mathcal{N}[t_i^j]=\{t_i,f_i\}, we must have T(xi)∩{ti,fi}≠∅T(x_i)\cap\{t_i,f_i\}\ne\varnothing. Consequently, T(xi)T(x_i) is either {ti}\{t_i\} or {fi}\{f_i\}.

We now define a truth assignment for φ\varphi by setting xi=Truex_i=\text{True} if T(xi)={ti}T(x_i)=\{t_i\}, and xi=Falsex_i=\text{False} if T(xi)={fi}T(x_i)=\{f_i\}.

Consider a clause-vertex cjc_j. As we observed, T(cj)⊆N[cj]∖{cj,cj′}T(c_j)\subseteq\mathcal{N}[c_j]\setminus\{c_j,c_j^{\prime}\}. Every vertex in this set belongs to N[xi]\mathcal{N}[x_i] for at least one variable xix_i occurring in cjc_j, i.e. such a vertex is either a literal vertex, the relevant variable vertex, or a bonus clause-vertex. So, let us consider such xix_i. Since T(cj)⊆N[xi]T(c_j) \subseteq N[x_i], the pair N[cj],N[xi]N[c_j], N[x_i] must be distinguished by T(xi)T(x_i). So, the literal vertex chosen to T(xi)T(x_i) is therefore absent from N[cj]N[c_j], which, by the reversed clause–literal adjacencies, means that the occurrence of xix_i in cjc_j is satisfied. This holds for every clause. Hence, φ\varphi is satisfiable.

For the reverse direction, suppose that φ\varphi admits a satisfying assignment. We define a teaching map TT of size 1 for (G,N,1)(G,\mathcal{N},1) as follows.

For every variable-vertex xix_i, set T(xi)=T(x_i)=

{{ti},if xi=True,{fi},if xi=False.\begin{cases} \{t_i\}, & \text{if } x_i = \text{True},\\ \{f_i\}, & \text{if } x_i = \text{False}. \end{cases}

For every pendant vertex uu, T(u)={u}T(u)=\{u\}. For every bonus clause vertex, set T(tij)={ti′j}T(t_i^j)=\{t_i^{\prime j}\}. For every vertex vi∈V(C)v_i \in V(C), set T(vi)={vi+2}T(v_i)=\{v_{i+2}\}, with indices modulo 4.

It remains to assign teaching examples to the clause-vertices. Consider a clause-vertex cjc_j. Since the assignment satisfies φ\varphi, there exists a variable xix_i whose assignment satisfies the clause represented by cjc_j. If several such variables exist, choose one arbitrarily. So, if xix_i satisfies cjc_j and is assigned True, by reversed adjacencies, fi∈N[cj]f_i \in N[c_j], and we set T(cj)={fi}T(c_j)=\{f_i\}.

Recall that each variable appears exactly once positively and exactly twice negatively in φ\varphi. Hence, for each variable xix_i, there can be at most one pair of clauses cj,cℓc_j,c_\ell that are both satisfied by the same assignment to xix_i. Such a pair can arise only when xi=Falsex_i=\text{False}. So, if cjc_j (and then cℓc_\ell) is satisfied by xi=Falsex_i=\text{False}, we set T(cℓ)={ti}T(c_\ell)=\{t_i\} and we set T(cj)={tij}T(c_j)=\{t_i^j\} (assuming that among cℓc_\ell and cjc_j the unique for each such a pair bonus clause vertex is adjacent to cjc_j).

We claim that TT is a valid non-clashing teaching map for (G,N,1)(G,\mathcal{N},1).

Any neighborhood centered in V(C)V(C) is distinguished from any neighborhood centered in V(G)∖V(C)V(G)\setminus V(C) by the positive teaching example of the latter. Any two neighborhoods centered in V(C)V(C) are distinguished because each cycle vertex selects its opposite vertex. The teaching set of a pendant concept belongs only to the neighborhoods centered at the vertex itself and its parent; the parent is distinguished from the pendant by teaching set of the parent including neither of them. Thus all pairs involving a pendant concept are distinguished.

Consider two distinct variable vertices xix_i and xrx_r. By construction, no tit_i or fif_i belongs to N[xr]N[x_r], so all such closed neighborhoods are distinguished by their teaching sets. By the same argument, neighborhoods centered in variable-vertices are distinguished from those centered in bonus clause vertices.

Next, consider bonus clause vertices. Neighborhoods of two distinct bonus clause vertices are distinguished, since one is never adjacent to a vertex in the teaching set of the other. The same holds for pairs across bonus clause vertices and clause-vertices, i.e. ti′j∈T(tij)t_i^{\prime j} \in T(t_i^j), but ti′j∉N[cℓ]t_i^{\prime j} \notin N[c_\ell] for each clause-vertex cℓc_\ell.

Consider two distinct clause-vertices cjc_j and cℓc_\ell. Their neighborhoods are distinguished because their teaching sets either belong to the non-intersecting neighborhoods of distinct variable-vertices, or one of the teaching sets contains a vertex tijt_i^j that is not adjacent to any other clause vertex.

Finally, consider a clause vertex cjc_j and a variable vertex xpx_p. The example in T(cj)T(c_j) is associated with some variable xix_i occurring in cjc_j and belongs to N[xi]N[x_i]. If p≠ip \ne i, this example does not belong to N[xp]N[x_p], so the pair is distinguished. If p=ip=i, then the example chosen for cjc_j came from an occurrence of a variable that received an assignment satisfying the clause cjc_j. In this case, the opposite literal-vertex was selected by T(xi)T(x_i). Therefore, T(xi)⊈N[cj]T(x_i) \nsubseteq N[c_j], and the pair is again distinguished.

Thus, every pair of distinct neighborhoods in N\mathcal{N} is distinguished by their teaching sets, so TT is a non-clashing teaching map of size one for (G,N,1)(G,\mathcal{N},1), completing the proof.

A similar result can also be stated for the positive non-clashing teaching dimension.

Theorem 8. Given a planar graph GG and a set of closed neighborhoods N\mathcal{N}, deciding whether N\mathrm{N}-NCTD+(N)=1\mathrm{NCTD}^{+}(\mathcal{N})=1 is NP-complete.

Indeed, if u′u' is a pendant neighbor of uu, then distinguishing N[u]N[u] from N[u′]N[u'] in a positive non-clashing teaching map of size at most one requires T(u)⊆N(u)∖{u′}T(u)\subseteq N(u)\setminus\{u'\}. Thus, the 4-cycle can be omitted, and the forward implication follows as in the proof of Theorem 7. Conversely, the teaching map constructed for the remaining neighborhoods in N\mathcal{N} is already positive and non-clashing.

Conclusion

We proved tight upper bounds for both the general and positive non-clashing teaching dimensions of closed neighborhoods in planar graphs. We also showed that deciding whether either dimension is at most one remains NP-complete, even for planar graphs. Our results prove the inequality between NCTD and VCdim that was conjectured for this family by Kirkpatrick et al. [17], and highlighted as an open question later by Chalopin et al. [5].

However, whether NCTD(C)≤VCdim(C)\mathrm{NCTD}(\mathcal{C})\leq\mathrm{VCdim}(\mathcal{C}) holds for every finite concept class C\mathcal{C} remains open. A natural direction is to extend our results to graph classes of linear neighborhood complexity, see, e.g., Reidl et al. [20]. Such classes have bounded VCdim, making them natural candidates for studying this relationship beyond planar graphs.

Moran and Yehudayoff [19]; Doliwa et al. [10] studied relationships between recursive teaching dimension, VCdim, and sample compression. It would be interesting to determine whether similar relationships hold for non-clashing teaching and whether bounds on NCTD could lead to improved sample compression schemes.

Acknowledgments

The authors would like to thank Fionn Mc Inerney for insightful comments and valuable feedback. This work has been supported by Helsinki Institute for Information Technology HIIT.

References

  1. [1]Dana Angluin. Inductive inference of formal languages from positive data. Information and Control, 45(2):117–135, 1980.DOI
  2. [2]Frank Balbach. Measuring teachability using variants of the teaching dimension. Theoretical Computer Science, 397(1–3):94–113, 2008.DOI
  3. [3]Sujoy Bhore, Liana Khazaliya, and Fionn Mc Inerney. Non-clashing teaching in graphs: Algorithms, complexity, and bounds. In Carl Vondrick, Bharath Hariharan, Colin Raffel, Lerrel Pinto, Diyi Yang, and Aleksandra Faust, editors, The Fourteenth International Conference on Learning Representations (ICLR), 2026.
  4. [4]Jérémie Chalopin, Victor Chepoi, Fionn Mc Inerney, Sébastien Ratel, and Yann Vaxès. Sample compression schemes for balls in graphs. SIAM Journal on Discrete Mathematics, 37(4):2585–2616, 2023.DOI
  5. [5]Jérémie Chalopin, Victor Chepoi, Fionn Mc Inerney, and Sébastien Ratel. Non-clashing teaching maps for balls in graphs. In Proceedings of the 37th Conference on Learning Theory (COLT), volume 247 of Proceedings of Machine Learning Research, pages 840–875. PMLR, 2024.arxiv.org/abs/2309.02876
  6. [6]Victor Chepoi, Bertrand Estellon, and Yann Vaxès. Covering planar graphs with a fixed number of balls. Discrete & Computational Geometry, 37:237–244, 2007.DOI
  7. [7]David Coudert, Mónika Csikós, Guillaume Ducoffe, and Laurent Viennot. Practical computation of graph VC-dimension. In Proceedings of the 22nd International Symposium on Experimental Algorithms (SEA 2024), volume 301 of Leibniz International Proceedings in Informatics (LIPIcs), pages 8:1–8:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024.
  8. [8]Elias Dahlhaus, David S. Johnson, Christos H. Papadimitriou, Paul D. Seymour, and Mihalis Yannakakis. The complexity of multiterminal cuts. SIAM Journal on Computing, 23(4):864–894, 1994.DOI
  9. [9]François Denis. Learning regular languages from simple positive examples. Machine Learning, 44 (1–2):37–66, 2001.DOI
  10. [10]Thorsten Doliwa, Gaojian Fan, Hans Ulrich Simon, and Sandra Zilles. Recursive teaching dimension, VC-dimension and sample compression. Journal of Machine Learning Research, 15(89):3107–3131, 2014.DOI
  11. [11]Guillaume Ducoffe, Michel Habib, and Laurent Viennot. Diameter computation on H-minor free graphs and graphs of bounded (distance) VC-dimension. In Proceedings of the 31st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1905–1922, 2020.arxiv.org/abs/1907.04385
  12. [12]Shaun Fallat, David Kirkpatrick, Hans U. Simon, A. bolghasem Soltani, and Sandra Zilles. On batch teaching without collusion. Journal of Machine Learning Research, 24(40):1–33, 2023.
  13. [13]Florent Foucaud, Harmender Gahlawat, Fionn Mc Inerney, and Prafullkumar Tale. The parameterized complexity of computing the VC-dimension. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, 2025.arxiv.org/abs/2510.17451
  14. [14]Robert Ganian, Liana Khazaliya, Fionn Mc Inerney, and Mathis Rocton. The computational complexity of positive non-clashing teaching in graphs. In The Thirteenth International Conference on Learning Representations (ICLR), 2025.arxiv.org/abs/2503.07665
  15. [15]Sally A. Goldman and Michael J. Kearns. On the complexity of teaching. Journal of Computer and System Sciences, 50(1):20–31, 1995.
  16. [16]Sally A. Goldman and H. David Mathias. Teaching a smarter learner. Journal of Computer and System Sciences, 52(2):255–267, 1996.DOI
  17. [17]David Kirkpatrick, Hans U. Simon, and Sandra Zilles. Optimal collusion-free teaching. In Proceedings of the 30th International Conference on Algorithmic Learning Theory (ALT), volume 98 of Proceedings of Machine Learning Research, pages 506–528. PMLR, 2019.arxiv.org/abs/1903.04012
  18. [18]Evangelos Kranakis, Danny Krizanc, Berthold Ruf, Jorge Urrutia, and Gerhard J. Woeginger. The VC-dimension of set systems defined by graphs. Discrete Applied Mathematics, 77(3):237–257, 1997.DOI
  19. [19]Shay Moran and Amir Yehudayoff. Sample compression schemes for VC classes. Journal of the ACM, 63(3):21:1–21:10, 2016.
  20. [20]Felix Reidl, Fernando Sánchez Villaamil, and Konstantinos Stavropoulos. Characterising bounded expansion by neighbourhood complexity. European Journal of Combinatorics, 75:152–168, 2019. doi: 10.1016/j.ejc.2018.08.001.DOI
  21. [21]Ingo Schwab, Wolfgang Pohl, and Ivan Koychev. Learning to recommend from positive evidence. In Proceedings of the 5th International Conference on Intelligent User Interfaces (IUI), pages 241–247, 2000.DOI
  22. [22]Simon Tippenhauer. On Planar 3-SAT and its Variants. Master’s thesis, Freie Universität Berlin, 2016.DOI
  23. [23]Vladimir N. Vapnik and Alexey Ya. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability and Its Applications, 16(2):264–280, 1971.
  24. [24]Sandra Zilles, Steffen Lange, Robert Holte, and Martin Zinkevich. Models of cooperative teaching and learning. Journal of Machine Learning Research, 12:349–384, 2011.DOI

Paper details

vlnc:W_pqdac4pp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents