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 be a finite binary concept class over a domain . A teaching map assigns to each concept a set of examples, labeled according to their membership in . The map is non-clashing if, for every pair of distinct concepts ,
We call such a map a non-clashing teaching map (NCTM). Its size is , and the non-clashing teaching dimension is the minimum size of an NCTM for . In the positive variant, teaching sets contain only positive examples, that is, . The corresponding dimension is denoted by .
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 is shattered by if, for every subset , there exists a concept such that ; and is the maximum size of a set shattered by .
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 , 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 , 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 (-), respectively. The corresponding decision problems are defined as follows:
PLANAR N-NCTD
Input: A planar graph , a family of closed neighborhoods in , and an integer .
Output: Is N-NCTD() ?
The problem PLANAR N-NCTD is defined analogously for deciding on N-NCTD.
For two distinct neighborhoods , we say that a vertex distinguishes the pair if . The pair is distinguished if such a vertex exists. If , then and 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 is twin-free. Lastly, for a graph , let .
Our results. We establish that, for every planar graph , N-NCTD() , 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, improving the previous bound of seven. Finally, we prove that both PLANAR N-NCTD and PLANAR N-NCTD are NP-complete even for . 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 for planar graphs . In § 2.2, we establish a tight upper bound of two for the general variant N-NCTD(). 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 , N-NCTD.
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 , N-NCTD.
Claim 1 For every 2-connected outerplanar graph , N-NCTD.
Proof We first consider graphs with at most four vertices. For , all closed neighborhoods coincide, so the claim follows immediately. If , then is either a cycle or a cycle with a chord. In the former case, label the vertices cyclically and set . In the latter case, label the vertices so that is the chord, and set , , and . It is straightforward to verify that in both cases the maps are non-clashing.
Now suppose that . Fix an outerplanar embedding and label the vertices in cyclic order along the outer face, with indices taken modulo . Set . Clearly, each teaching set has size two and is contained in the corresponding closed neighborhood.
Suppose, for a contradiction, that two distinct closed neighborhoods and are not distinguished. Then , . Consider the two paths between and along the outer cycle. Since , at least one contains at least three edges. Without loss of generality, orient the cycle so that this path passes through and , in that order. Thus, are distinct. The conditions above imply that . Contracting the other – path and the – segment gives us a minor, so contradicts outerplanarity.
Hence, is a positive non-clashing teaching map of size at most two.
Proof [of Lemma 2] We construct a positive non-clashing teaching map 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 , we set , where and are neighbors of belonging to distinct components of . 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 , we set . Clearly, all teaching sets are positive and have size at most two.
We show that is non-clashing. First, consider a cut-vertex with . Since and belong to distinct components of , no vertex other than is adjacent to both. Thus, distinguishes from every other closed neighborhood.
Now consider two distinct non-cut-vertices and . 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, is a positive NCTM of size at most two, and hence, for an outerplanar graph , .
The bound of Lemma 2 is tight. Consider the outerplanar graph in Figure 1. Since , , any positive non-clashing teaching map of size one must satisfy and . However, these sets do not distinguish a pair . Thus, .
Figure 1. An outerplanar graph with N-NCTD.
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 with , set . For vertices of degree greater than three, we use the following construction. Since 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 , obtaining sets of size at most three.
For every vertex with , the choice distinguishes its neighborhood from every other distinct neighborhood. Moreover, when , the constructed teaching Examples showing that the upper bounds in Lemma 2 and Theorem 1 are tight.
sets also distinguish every pair with and , since but . Thus, after constructing the preliminary teaching map , it remains to distinguish pairs of neighborhoods centered within . We address these pairs by modifying the preliminary teaching sets in four steps.
First, we consider vertices that are twins in but not in . Next, we handle vertices satisfying , which we call saturating vertices. We then modify the teaching sets of the remaining vertices in and, finally, the teaching set of . Throughout these modifications, we ensure that all previously distinguished pairs remain distinguished.
Twin vertices in . Let be a set of pairwise twins in . Since such vertices form a clique, ; otherwise, together with would contain a , contradicting planarity. We modify the teaching sets according to the size of .
Case 1: . Since the vertices of have distinct closed neighborhoods in , their symmetric difference contains a vertex outside . 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: . First, no vertex in can be adjacent to a vertex of . Otherwise, it would be adjacent to all three vertices of , forming a together with .
For each , set . Since is twin-free, the closed neighborhoods of vertices in are pairwise distinct. For each pair , choose a vertex in 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 from vertices outside by , from vertices in by , and from one another by the additional vertices.
Saturating vertices. We call a vertex saturating if . So, distinguishing from requires a vertex from in .
If , there is at most one saturating neighbor. Indeed, two such neighbors, together with , would form one part of a , with three other neighbors of forming the other, contradicting planarity.
If is the unique saturating neighbor, it has no twin in . Thus, its teaching set has size at most three, and we add a vertex from to distinguish the pair.
It remains to consider with two saturating neighbors . These vertices are twins in , so the previous step has already added a vertex outside to one of their teaching sets, say . Hence, and are already distinguished. We add a vertex from to , keeping both teaching sets of size at most four.
Remaining vertices of . We now aim to distinguish from neighborhoods centered within non-saturating vertices of .
Case 1: . Let and set . This distinguishes from every non-saturating neighbor, saturating neighbors are handled by their own teaching sets.
Suppose satisfies . We redefine . This set distinguishes from every other neighborhood centered outside : a third vertex adjacent to , , , together with and , would yield a , contradicting planarity. Moreover, distinguishes from , while distinguishes from for every .
Case 2: . Here, we first show that the outerplanar graph contains two vertices and of degree at most two with at most one common neighbor in .
Since is outerplanar, it can be extended to a maximal outerplanar graph . As , we can choose two nonadjacent degree-two vertices , of . Since and have degree two, two common neighbors for them would force the outer boundary of to be a four-cycle, contradicting . Thus, and have at most one common neighbor in , and hence also in .
So, if and have a common neighbor in such that , choose . Otherwise, choose any . Set .
The vertex distinguishes from every neighborhood centered outside . Moreover, any neighbor containing both and in its closed neighborhood must be their unique common neighbor . By the choice of , this neighbor either saturates or is distinguished from by . Thus, distinguishes 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.
The upper bound for N-NCTD on planar graphs is also tight. Consider the graph in Figure 2. Since and (indices modulo 4), any valid positive non-clashing teaching map must take in for every . Thus, , and the upper bound yields N-NCTD.
Figure 2. A planar graph with N-NCTD.
(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 , N-NCTD.
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 with , we have .
Proof. First, repeatedly remove any concept whose label on some example is unique among the remaining concepts, setting . This distinguishes from all remaining concepts. If at most one concept remains, we are done.
Otherwise, the remaining family 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 , must be positive for at least two concepts and negative for at least two others. Thus, each such example partitions into two label classes of sizes or .
Construct an auxiliary graph on , where each nonconstant example induces an edge joining the two concepts from one of its size-two label classes. Thus, distinguishes precisely when exactly one of them is an endpoint of .
Since the concepts are distinct, 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, has one nontrivial component, possibly with an isolated vertex .
Let be a spanning tree of the nontrivial component, rooted at a leaf . Let be the neighbor of , and choose a neighbor of . For each non-root vertex , assign the example corresponding to its parent edge in . Assign to the example corresponding to an edge , and, if exists, assign to the example corresponding to an edge .
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 was constructed on size-two sets). The vertex is distinguished from by , and from every other non-root vertex by its parent edge. Finally, if exists, it is distinguished from every non-root vertex by that vertex’s parent edge, and from by an edge .
Thus 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 be a planar graph with minimum degree 5. Then there exists a vertex such that and .
Proof. We may assume that is connected. Every planar graph with minimum degree at least 5 contains a triangular face; otherwise, Euler’s formula implies , contradicting the Handshaking Lemma, which gives . Fix a plane embedding of in which a triangular face is the outer face. Among all triangles whose bounded interiors contain at least one vertex, choose a triangle minimizing the number of vertices in its interior. By the minimality of , there is no non-empty triangle contained in the face bounded by .
Let be the subgraph consisting of , together with all vertices and edges contained in the face bounded by . We denote (vertices enclosed by ), and let denote the set of bounded faces of . Furthermore, for every , . For convenience, we also denote , , and, for a face let be the length of the boundary walk. First, we make two standard observations for . By Euler’s formula, we have , so . Also, , since each edge is counted twice, except for the three edges of the outer face.
Define the total degree deficit of interior vertices as . Since every interior vertex has degree at least 5, only degree-5 vertices contribute positively to . We also define the faces sum as , where only triangular faces contribute zero.
By the Handshaking Lemma,
Based on the observations above,
Therefore, from Equations (1) and (2), . Since the sum counts edges of twice and connectivity guarantees at least one more edge between and , we have . Hence, .
Assume that there is no degree-5 vertex in incident with at most one non-triangular face. In other words, for every vertex of degree 5, the number of its incident non-triangular faces .
First, let us upper-bound the sum of these terms:
Indeed, on the left-hand side, each face is counted only if , and at most times. Next, under our assumption, the inequality holds for every . Therefore, , and by the upper-bound we established above, we further obtain .
Lastly, let us show that . For every triangular face , we have , while for every face with , we have .
Thus, under our assumption, , contradicting . Therefore, there always exists a vertex of degree 5 incident with at least four triangular faces.
Consider the graph . Since at least four faces are triangular, there is a path through all five vertices of , which can be ordered along this path. Assume that there is an edge between two vertices that are non-consecutive in the cyclic order around . Then the edges between , and would form a separating triangle, yielding a contradiction with the minimality of chosen triangular outer face . Thus, the only possible additional edge joins the endpoints of the path. Therefore, is either a path or a cycle on five vertices.
Lemma 6. For every planar graph with minimum degree 5, there exists a vertex such that the family admits a non-clashing teaching map of size at most 1.
Proof. Let be a vertex of degree five such that (exists by Lemma 5).
First, suppose , with vertices indexed cyclically modulo five, i.e. . Define , , for each . Every pair involving is distinguished, since . For two consecutive vertices, is distinguished by . For vertices at cyclic distance two, one selects the other, which also distinguishes the pair.
Now suppose , with vertices in path order. Define
Every pair involving is distinguished by the teaching set of the neighbor, except for , which is distinguished by .
Among the neighbors, distinguishes from , , ; distinguishes from , , ; and distinguishes from , . The two remaining pairs are distinguished by and , respectively.
In both cases, all teaching sets belong to , so the assignment is valid in . 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 contains a vertex with . By Lemma 4, the family admits a non-clashing teaching map of size at most one. For every , set . The example distinguishes every pair with and , while distinguishes all pairs of distinct neighborhoods centered in .
Otherwise, has minimum degree at least five. By Lemma 6, there exists a vertex of degree five such that or , and the family admits a non-clashing teaching map of size at most one. For every , set . As in the previous case, the example distinguishes every pair with and , since . Meanwhile, distinguishes all pairs of distinct neighborhoods centered in , including those involving itself. Thus, all these pairs are distinguished using teaching sets of size at most two.
In either case, remove from 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 and a set of closed neighborhoods , deciding whether N-NCTD() is NP-complete.
Reduction Example: from an instance of PLANAR()-SAT to an instance of PLANAR N-NCTD.
We reduce from PLANAR()-SAT, which is one of the known NP-complete restrictions of PLANAR 3-SAT Dahlhaus et al. [8]; Tippenhauer [22].
PLANAR()-SAT
Input: A CNF formula 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 satisfiable?
The reduction Given an instance of PLANAR()-SAT, we construct PLANAR N-NCTD instance in polynomial time, starting with as an instance of PLANAR()-SAT, for an example, see Figure 3. The associated graph has a variable vertex , two literal vertices and for each variable, and a clause vertex for each clause. Each is adjacent to and , and each literal vertex is adjacent to the clause vertices representing its occurrences.
Figure 3. Associated graph for a PLANAR()-SAT instance .
First, attach one pendant vertex to each variable vertex and one pendant vertex to each clause vertex . Next, for every pair of a true-literal vertex and a false-literal vertex , we reverse their clause–literal adjacencies in . This can be done by simply exchanging the labels of these two vertices. After this modification, each vertex is adjacent to the two clauses containing , whereas is adjacent to the unique clause containing .
For each variable , choose one of its two negative-occurrence clauses, say . Add the edge and a new vertex adjacent to both and . We call the bonus clause-vertex. Attach a pendant vertex to , and add an extra vertex adjacent to both and . See Figure 4 for an illustration.
Figure 4. A graph constructed from the associated graph . Black vertices represent concepts included in .
These changes preserve planarity. Indeed, has exactly three neighbors in . Thus, the edge can be drawn alongside the path within a face of the given embedding. The vertices , , and , 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 , 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 , . This completes the construction of .
Define to consist of the closed neighborhoods of all vertices of , except those of the literal-vertices , and the extra vertices . Thus includes neighborhoods centered at variable vertices, clause vertices, bonus clause-vertices, pendant vertices, and the 4-cycle vertices. Finally, we return as an instance of PLANAR N-NCTD and the construction is polynomial in the size of .
The high-level idea behind reversal of the clause–literal adjacencies is the following. Consider a clause-vertex and a variable-vertex such that the variable appears in the clause corresponding to . If the teaching set of contains a literal-vertex representing an assignment that satisfies this clause, then this literal-vertex should distinguish from . To ensure this, we reverse the clause–literal adjacencies so that the satisfying literal-vertex is not adjacent to the clause-vertex .
Proof Let us first show the following direction: if admits a valid non-clashing teaching map, then the PLANAR()-SAT instance is satisfiable.
Suppose that admits a non-clashing teaching map of size at most one. First, consider neighborhoods of the vertices of the 4-cycle . For indices taken modulo 4, there exists such that, in order to distinguish from and from , , since no other vertex distinguishes both pairs. In particular, belongs to but not to any neighborhood centered outside . Consequently, for any , must be a subset of , i.e. if with , then and would not be distinguished, and if , and are not distinguished, where is a non-adjacent to vertex of the cycle.
For each clause-vertex , a pair can be distinguished only by . The same applies for each variable-vertex and each bonus clause-vertex.
Then, for each variable-vertex , there is a vertex . Since and , we must have . Consequently, is either or .
We now define a truth assignment for by setting if , and if .
Consider a clause-vertex . As we observed, . Every vertex in this set belongs to for at least one variable occurring in , i.e. such a vertex is either a literal vertex, the relevant variable vertex, or a bonus clause-vertex. So, let us consider such . Since , the pair must be distinguished by . So, the literal vertex chosen to is therefore absent from , which, by the reversed clause–literal adjacencies, means that the occurrence of in is satisfied. This holds for every clause. Hence, is satisfiable.
For the reverse direction, suppose that admits a satisfying assignment. We define a teaching map of size 1 for as follows.
For every variable-vertex , set
For every pendant vertex , . For every bonus clause vertex, set . For every vertex , set , with indices modulo 4.
It remains to assign teaching examples to the clause-vertices. Consider a clause-vertex . Since the assignment satisfies , there exists a variable whose assignment satisfies the clause represented by . If several such variables exist, choose one arbitrarily. So, if satisfies and is assigned True, by reversed adjacencies, , and we set .
Recall that each variable appears exactly once positively and exactly twice negatively in . Hence, for each variable , there can be at most one pair of clauses that are both satisfied by the same assignment to . Such a pair can arise only when . So, if (and then ) is satisfied by , we set and we set (assuming that among and the unique for each such a pair bonus clause vertex is adjacent to ).
We claim that is a valid non-clashing teaching map for .
Any neighborhood centered in is distinguished from any neighborhood centered in by the positive teaching example of the latter. Any two neighborhoods centered in 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 and . By construction, no or belongs to , 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. , but for each clause-vertex .
Consider two distinct clause-vertices and . 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 that is not adjacent to any other clause vertex.
Finally, consider a clause vertex and a variable vertex . The example in is associated with some variable occurring in and belongs to . If , this example does not belong to , so the pair is distinguished. If , then the example chosen for came from an occurrence of a variable that received an assignment satisfying the clause . In this case, the opposite literal-vertex was selected by . Therefore, , and the pair is again distinguished.
Thus, every pair of distinct neighborhoods in is distinguished by their teaching sets, so is a non-clashing teaching map of size one for , completing the proof.
A similar result can also be stated for the positive non-clashing teaching dimension.
Theorem 8. Given a planar graph and a set of closed neighborhoods , deciding whether - is NP-complete.
Indeed, if is a pendant neighbor of , then distinguishing from in a positive non-clashing teaching map of size at most one requires . 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 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 holds for every finite concept class 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]Dana Angluin. Inductive inference of formal languages from positive data. Information and Control, 45(2):117–135, 1980.DOI
- [2]Frank Balbach. Measuring teachability using variants of the teaching dimension. Theoretical Computer Science, 397(1–3):94–113, 2008.DOI
- [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]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]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]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]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]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]François Denis. Learning regular languages from simple positive examples. Machine Learning, 44 (1–2):37–66, 2001.DOI
- [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]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]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]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]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]Sally A. Goldman and Michael J. Kearns. On the complexity of teaching. Journal of Computer and System Sciences, 50(1):20–31, 1995.
- [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]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]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]Shay Moran and Amir Yehudayoff. Sample compression schemes for VC classes. Journal of the ACM, 63(3):21:1–21:10, 2016.
- [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]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]Simon Tippenhauer. On Planar 3-SAT and its Variants. Master’s thesis, Freie Universität Berlin, 2016.DOI
- [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]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



