






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







We now return to some good old fashioned counting. We will be looking at sets. We have a collection of elements and we will let U denote the “univers” of all possible elements for the problem that we are counting. We will let A denote a subset of U, |A| denote the number of elements in the set A, and A = U \A denote the complement of A (the set of all elements in U not in A). Since every element is either in A or not in A we can conclude
Pictorially we have the following picture.
This is a simple example of a Venn diagram which gives a visual way to represent sets. We will look at Venn diagrams for 1, 2 and 3 sets, after that it gets more difficult to draw Venn diagrams (but not impos- sible!).
Example: There are 35 students in the class. If 15 students come to office hours then how many student’s didn’t come.
Solution: The set U is the set of all students, A the set of students who came to office hours so by the above formula we have
Not surprisingly, there is not much interesting to do with only one set. So now let us consider the situation when we have two set A and B. The Venn diagram for this situation is shown below.
Notice that this picture implies the possibility that the sets intersect. We do this because we ant Venn diagrams to be as general as possible, so the actual intersection can be empty (do not assume that sets always intersect). We let A ∪ B denote the union of A and B where
A ∪ B = {x | x ∈ A or x ∈ B} ,
and A ∩ B denote the intersection of A and B where
A ∩ B = {x | x ∈ A and x ∈ B}.
de Morgan’s laws
A ∩ B = A ∪ B A ∪ B = A ∩ B
In words de Morgan’s laws says that the complement of the union is the intersection of the complements, and that the complement of the intersection is the union of the complements. To prove A ∩ B = A ∪ B we show that they have the same elements.
x ∈ A ∩ B ⇔ x /∈ A ∩ B ⇔ x /∈ A or x /∈ B ⇔ x ∈ A or x ∈ B ⇔ x ∈ A ∪ B
The other half of the law is proved similarly. Suppose that we wanted to count the number of el- ements in |A ∪ B|, a natural first guess is |A| + |B|. The problem is that we are double counting elements in the intersection of A and B, so we need to correct this overcounting by subtracting out. So we have
|A ∪ B| = |A| + |B| − |A ∩ B|.
We can also count this by breaking A ∪ B into three pieces, namely A ∩ B (elements in A but not in B), A ∩ B (elements in A and in B) and A ∩ B (elements not in A but in B). So we also have
|A ∪ B| = |A ∩ B| + |A ∩ B| + A ∩ B|.
We now turn to the three set case. This is illustrated in the Venn diagram below.
Notice that we have split U into eight pieces, which is what we should expect because we are either in or not in each of the three sets. The eight pieces are
A ∩ B ∩ C, A ∩ B ∩ C, A ∩ B ∩ C, A ∩ B ∩ C,
A ∩ B ∩ C, A ∩ B ∩ C, A ∩ B ∩ C, A ∩ B ∩ C.
The last set, by de Morgan’s law is A ∩ B ∩ C = A ∪ B ∪ C which are the points outside of the sets A, B and C. Similarly as with the two set case we may want to count the union of the sets, and as before we have to be careful not to overcount. So we have
|A ∪ B ∪ C| = |A| + |B| + |C| − |A ∩ B| − |A ∩ C| − |B ∩ C| + |A ∩ B ∩ C|.
Example: At a local college there is a language pro- gram which has the three languages Russian (R), Chi- nese (C) and Java (J). There are 34 students attend- ing the Russian class, 31 students taking the Chinese class, 36 students taking the Java class, 13 students taking both Russian and Chinese, 9 students taking Russian and Java and 11 students taking Chinese and Java. When this is reported to the dean they look at it and say, “Wait, I also need to know how many stu- dents are in all three!” How many students attend all three classes?
Solution: Thinking of these as sets then we are looking for |R ∩ C ∩ J|. Plugging in the information we have into the formula above we have
73 = 34 + 31 + 36 − 13 − 9 − 11 + |R ∩ C ∩ J| = 68 + |R ∩ C ∩ J|.
So |R ∩ C ∩ J| = 5, i.e., there are 5 students taking all three classes.
Example: How many n digit ternary sequences with at least one 0, one 1 and one 2?
Solution: Let us use sets to represent the situation. Let A denote the set of sequences without 0, B denote the sequences without 1 and C denote the sequences without 2. (We could alternatively let them denote the sets with the elements, but this is more fun.) Phrased this way we are looking for
|A ∩ B ∩ C| = |A ∪ B ∪ C| = |U| − |A ∪ B ∪ C|.
On the one hand we have |A| = |B| = |C| = 2n, since elements in these sets are formed only using two let- ters. We also have |A∩B| = |A∩C| = |B∩B| = 1 since elements in these sets are formed only using one letter (so they look like 000 · · · 0, 111 · · · 1 and 222 · · · 2). Fi- nally we have |A ∩ B ∩ C| = 0 since we don’t have any letters to form the sequence. Putting this altogether we have
|A ∩ B ∩ C| = 3n^ −
3 · 2 n^ − 3 ·1 + 0) = 3n^ − 3 · 2 n^ + 3.
It is always a good idea to check, so let us try 0, plug- ging it in we get 1, but that is not the right answer, we should have gotten 0 (there are no sequences of length 0 with at least one 0, one 1 and one 2). So where was our mistake? Looking back over what we did we see that |A ∩ B ∩ C| will be 1 when n = 0 and 0 otherwise. This is because the empty string (the string with no letters) has no 0, no 1 and no 2 and so is an element in |A∩B ∩C|. So if we put this back in we see that we do get the correct answer. So we have that the number of such ternary sequences is { 3 n^ − 3 · 2 n^ + 3 if n ≥ 1, 0 if n = 0.
What we have just done is a simple example of a more basic principle.
Inclusion-Exclusion Principle: Let A 1 , A 2 ,... , An ⊆ U. Then
∣ ∣A 1 ∩ A 2 ∩ · · · ∩ An
I⊆[n] I 6 =∅
j∈I
Aj
Before we try to prove this we first should work on trying to understand what this says. We have [n] = { 1 , 2 ,... , n}, so what we are doing is summing over all nonempty subsets of [n]. What this is really doing is summing over all possible ways that we can intersect the sets Ai. Where we either add or subtract based on
Then term
(n k
shows up because there are
(n k
ways to choose k out of n sets to intersect.
Note that the sum that shows up in the number of derangements looks familiar. In particular since
ex^ =
k=
xk k!
we have
k=
(−1)k k!
= e−^1.
So the number of derangements is ≈ n!/e. In fact it can be shown that the number of derangements is the integer nearest to n!/e. Using this we can conclude that the probability that if we collect hats from n people and redistribute them randomly that no one gets their hat back is ≈ 1 /e.
Example: Suppose that there are n couples that go to a theatre and sit in a row with 2n chairs.
(a) How many ways can the couples sit down if each person sits next to the person they came with?
(b) How many ways can the couples sit down if no person sits next to the person they came with?
Solution: For part (a) we think of pairing the couples together and then arrange the couples (which can be done in n! ways). Now each couple sits down and we need to decide who sits on the left and who sits on the right which can be done in 2 ways per couple, so in total there are 2nn! ways for the couples to sit down. For part (b) we use inclusion-exclusion. If we let
Ai = {seatings with ith couple together},
then what we are looking for is A 1 ∩ A 2 ∩ · · · ∩ An (just right for inclusion-exclusion). The total number of ways to seat the 2n people is (2n)!. Now let us focus on a term of the from ∩j∈I Aj. This corresponds to the situation where the couples in I are sitting together (and maybe some more as well). To count this we now think of there as being |I| couples and 2n − 2 |I| singles for us to arrange, or combined 2n − |I| “people” to arrange. Once we are done arranging the order of the people we then again have to decide for each couple who sits on the left and who sits on the right. So altogether we have that
∣ ∣ ∣∣
j∈I
Aj
∣∣ = (2n − |I|)!2|I|.
(Again it is important that it is the number of elements in I and not which elements in I that matters.) So as in the last example if we group by the size of the index
set we have
∣ ∣A 1 ∩ A 2 ∩ · · · ∩ An
I⊆[n] I 6 =∅
j∈I
Aj
= (2n)! +
∑^ n
k=
(−1)k
n k
(2n − k)!2k
∑^ n
k=
(−2)k
n k
(2n − k)!.
Again the term
(n k
shows up because there are
(n k
ways to choose k of the n sets to intersect. Also we can absorb the (2n)! term into the sum since this cor- responds to the case k = 0. Unfortunately, there does not seem to be any nice way to condense this formula, but at least we have a way to count it! Using a computer we see that
n=
n=
n=
n=
n=
n=
Finally, let us look at some more variations of the inclusion-exclusion principle
Variation of the Inclusion-Exclusion Principle: Let A 1 , A 2 ,... , An ⊆ U and let
Bm = {x | x in exactly m of the Ai}.
Then
|Bm| =
I⊆[n] |I|≥m
(−1)|I|−m
m
j∈I
Aj
The case B 0 (where we translate the empty intersec- tion as the entire U) gives us back the original form of the inclusion-exclusion principle. Our method to prove this is similar as before, namely to consider cases for individual elements in U and show that each elements contributes the same to both sides.
( (^) r m
times in the intersection of m
sets,
( (^) r m+
( times in the intersection of^ m^ + 1 sets, r m+
times in the intersection of m + 2 sets,.. .. In particular the contribution on the right hand side will be ( r m
m m
r m + 1
m + 1 m
r m + 2
m + 2 m
Digging back to when we practiced identities for binomial coefficients we find the identity ( n k
k m
n m
n − m k − m
So applying this to our situation we have ( r m + i
m + i m
r m
r − m i
In particular we can rewrite our sum where we use this identity on every term and factor out the (now common)
( (^) r m
to get that the contribution on the right is ( r m
r − m 0
r − m 1
r − m 2
which, by the same reasoning as last time, is 0.
Closely related to this we have the following.
Variation of the Inclusion-Exclusion Principle (II): Let A 1 , A 2 ,... , An ⊆ U and let
Cm = {x | x in at least m of the Ai}.
Then
|Cm| =
I⊆[n] |I|≥m
(−1)|I|−m
m − 1
j∈I
Aj
The case m = 1 corresponds to the variation that we gave in the last lecture. We will not give the proof here.
This brings us to the end of the enumerative com- binatorics part of the course. Starting with the next lecture we turn to graph theory.
We now start a new area of combinatorics, namely graph theory. Graphs are at a basic level a set of ob- jects and connections between them. As such they can
be used to model all sorts of real world and mathemat- ical objects. We start with some of the basic properties of graphs. A graph G consists of two sets, a vertex set V and an edge set E, we sometimes will write this as G = (V, E). The vertex set represents our objects and the edge set represents our connections between objects, we will visually denote vertices by “ ”. The edge set can have several different ways of describing how we connect vertices which leads to different types of graphs. The most common are:
Usually when we think of a graph we do not think of two sets but rather as a visual drawing of points and lines connecting the points. This is great for building intuition, but can also be deceiving in that the same graph can be drawn in many different ways (we will look at this problem shortly). Another problem is that many graphs that are interesting have a large number of vertices (in the billions) so that if we were to draw them as points and lines the end result would be a black piece of paper. So it is good to be able to not have to rely on pictures! An example of an undirected graph is a handshake graph which corresponds to a party with several peo- ple present and we connect an edge between two people if they shake hands. As a graph the vertices are the people and the edges correspond to handshakes. Be- cause there is symmetry in the relationship (i.e., if I shake your hand you also shake mine) the undirected graph is the appropriate one to use. These also can be used to model social networks, in addition they are fre- quently used to model groups (these graphs are known as Cayley graphs). An example of a directed graph is the internet, some- times known as the web graph. Here every vertex cor- responds to a webpage and edges are hyperlinks from one webpage to another webpage. Because there does not have to be symmetry (i.e., I might link to a website about kittens but that does not mean the kitten web- site links to me) the directed graph is the appropriate
One of the most famous graphs, the Fabio of graph theory if you will, is the Petersen graph. This graph consists of 10 vertices and 15 edges as shown below. This graph is a classic example/counterexample to many problems in graph theory and is a good graph to have around when testing a new idea, we will use this as an example in a later lecture.
Another important graphs are hypercubes Qn (here the “hyper” refers to high dimensions, these graphs are not themselves hypergraphs). The vertex set of these graphs consist of all binary strings of length n, so that there are 2n^ vertices. Two vertices are con- nected if the strings differ in exactly one entry. So for example Q 1 consists of vertices 0 and 1 with an edge connecting them, Q 2 consists of the four vertices 00, 01, 10 and 11 and form a four cycle (note that there will be no edge connecting 00 and 11 since they dif- fer in both entries and similarly no edge connecting 01 and 10). The graph Q 3 is shown below (you should try to label the vertices with the eight binary strings of length three that would give this graph). The name hypercube comes from the idea of the vertices denot- ing the corners of an n-dimensional cube sitting at the origin, because binary strings are used in computers these graphs frequently arise in computer science.
Note that the hypercube is a bipartite graph. To see this we need to tell how to break up the vertices into two sets so that edges go only between these sets. This is done by letting U be the set of binary strings of length n with an odd number of 1s and W the set of binary strings of length n with an even number of 1s. Since an edge connects two vertices which differ by exactly one entry we will either increase or decrease the number of 1s by one, so that edges must go between U and W. Let us now look at how many edges are in the hyper- cube. Before we do that we first need a few definitions. Two vertices u and v are adjacent if there is an edge connecting them, this is denoted as u∼v. An edge e and a vertex v are incident if the vertex v is contained in the edge e (pictorially the edge connects to the ver- tex). The degree of a vertex is the number of edges incident to the vertex, equivalently the number of ver- tices adjacent to the vertex (assuming we do not allow
loops and multiple edges), we denote the degree of a vertex by dv or d(v). In the hypercube graph Qn every vertex corresponds to a string of length n. To connect to this vertex we must differ in exactly one letter, since there are n pos- sible letters then there are n different vertices that connect to the graph. In other words every vertex in the graph has degree n. If we add up all the degrees then we get n 2 n. But adding up all the degrees we will count each edge exactly twice, so that twice the num- ber of edges is n 2 n^ or the number of edges is n 2 n−^1. As an example in Q 3 there are 3· 22 = 12 edges. A graph where all of the vertices have the same de- gree is known as a regular graph. The Petersen graph is a regular graph of degree 3, the hypercube is a reg- ular graph of degree n, the complete graph Kn is a regular graph of degree n − 1 and the cycle Cn is reg- ular of degree 2. Of course there are many others, regular graphs have nice properties, particularly when approaching graphs using linear algebra. Looking at our derivation for the number of edges in Qn we noted that by adding up the sum of the degrees that we got twice the number of edges. This is the first theorem of graph theory.
Handshake Theorem: For a graph G let |E| denote the number of edges, then (^) ∑
v∈V
d(v) = 2|E|.
In particular this implies that the sum of the degrees must be an even number. So we have the following immediate corollary.
Corollary of the Handshake Theorem: The number of vertices with odd degree must be even.
Example: Does there exist a graph on six vertices where the vertices have degree 1, 2 , 3 , 3 , 4 , 4?
Solution: No. Summing up the degrees we get 17 which is an odd number, but by the handshake theo- rem if such a graph existed the sum would have to be even.
Of course, just because the sum of the degrees of a graph is even does not mean that a graph exists.
Example: Does there exist a graph on six vertices where the vertices have degree 1, 2 , 3 , 4 , 5 , 5?
Solution: No. Summing up the degrees we get 20 so the handshake theorem does not rule it out. However if there were such a graph then it would have two vertices of degree 5, in particular these two vertices would have
to be adjacent to every vertex in the graph. Or put another way, every vertex in the graph would have to be adjacent to the two vertices of degree 5, but this would imply that no vertex can have degree less than 2, in particular we could not have a degree 1 vertex as desired.
Finally, we turn to a problem mentioned earlier. Namely, we like to represent graphs visually but the way that we can draw the graph is not unique as we can place vertices where we like and draw edges as we want. For example consider the following two graphs.
1 7
6
5 4
3
2
a g
f
e (^) d
c
b
These graphs have the same number of vertices (7) the same number of edges (14) all the degrees are the same, but are they two different drawings of the same graph or two different graphs altogether? To answer this question we have to decide what we mean to say that they are the same graph, or rather they have the same structure. We say two graphs G and H are isomorphic (“iso”=same, “mor- phic”=structure) if there is a bijective (one-to-one and onto) map φ : V (G) → V (H) so that u∼v in G if and only if φ(u)∼φ(v) in H. Or in other words we can map the vertices of one graph to the other in a way that preserves adjacency. In terms of the picture above the question is can we relabel the vertices of one graph and produce the other graph. Careful checking will see that if we relabel as follows 1 7 → a, 2 7 → c, 3 7 → e, 4 7 → g, 5 7 → b, 6 7 → d and 7 7 → f , then we preserve adjacency. In other words these two graphs are isomorphic so are two drawings of the same graph. To show that two graphs are isomorphic then it suf- fices for us to find a way to relabel the vertices of one graph to produce the other graph. To find a rule for relabeling we often try to identify some vertices that must be mapped one to the other (i.e., because of de- gree considerations) and slowly build up the relation- ship. To show that two graphs are not isomorphic we need to find some structure that one graph has that the other does not, showing they cannot be the same graph. We will pick this topic up again in the next lecture.
Our main focus in graph theory will be simple undi- rected graphs. Simple graphs refer to graphs without
loops or multiple edges. A loop is an edge that con- nects a vertex to itself, i.e.,. A multiple edge is several edges going between the same two vertices, i.e.,. In other words we want to eliminate the possibility of having a repeated element in our sets. A useful technique in proving statements is proof by contradiction. The underlying idea is to assume the opposite of what we are trying to prove and show that this leads to an impossible situation. This implies that our assumption is wrong, well our assumption was the opposite of what we are trying to prove, so this means what we want to prove is true. In other words we are proving something is not not true.
Example: Show that in any simple graph on two or more vertices there must be two vertices which have the same degree.
Solution: Suppose that it is not true, i.e., suppose that there is a graph where all vertices have different degrees. Also for convenience let us suppose that we have n vertices. Then the possible degrees in the graph are 0, 1 ,... , n−1. Since there are n vertices, n possible degrees and all of them are distinct this implies that we must have
But clearly we cannot have both of these vertices in the same graph. Therefore our assumption is false, and in particular there must be some two vertices with the same degree.
In the last lecture we looked at telling if two graphs were isomorphic. We saw that the way to show that two graphs were isomorphic was to produce a bijective φ : V (G) → V (H) that preserves adjacency. But now suppose that we want to show that two graphs are not isomorphic. To do this we need to find some structure that one of the graphs have that the other doesn’t. Some possibilities to look for.
removing an edge could not disconnect the graph since we could simply use the rest of the cycle to replace the now missing edge. Further we can grow a cycle by the following technique, we start with any vertex and move to an adjacent vertex, we then move to a new vertex other than the one we came from and continue doing this until we get to a vertex that we have previously visited. So suppose that we now have a sequence of vertices v 1 ∼v 2 ∼v 3 ∼ · · · ∼vj
and that vj ∼vi for some i < j. Then the desired cycle is vi∼vi+1∼ · · · ∼vj ∼vi.
The key to this is since each vertex has degree two or more whenever we went into a vertex we could also exit along a different edge.) We now proceed by induction. Our base graph con- sists of a single vertex. In that case we have |V | = 1, |E| = 0 and |F | = 1 (i.e., the outer face) and so
|V | − |E| + |F | = 1 − 0 + 1 = 2.
Now suppose that we have shown that we have |V | − |E| + |F | = 2 for our connected planar graph G. Sup- pose that we do the first type of operation as given above. Then when we are adding a new vertex and a new edge, but we do not change the number of faces (i.e., this edge does not divide a face), and so |V ′| = |V | + 1, |E′| = |E| + 1 and |F ′| = |F | so
|V ′| − |E′| + |F ′| = (|V | + 1) − (|E| + 1) + |F | = |V | − |E| + |F | = 2.
Suppose that we do the second type of operation as given above. Then we do not add a vertex but we do add an edge, further we must split a face into two faces, and so |V ′| = |V |, |E′| = |E| + 1 and |F ′| = |F | + 1 so
|V ′| − |E′| + |F ′| = |V | − (|E| + 1) + (|F | + 1) = |V | − |E| + |F | = 2.
Concluding the proof. Euler’s formula is the main tool for dealing with pla- nar graphs. In this lecture we will show how to use it to prove that some graphs are not planar, we will also see some additional applications in the next lecture. So let us first try to prove that the graph K 5 is not planar. Before we do this we first need to introduce the idea of counting the (bounding) edges in a face. Every face can be though of as being contained inside of some cycle and so we can count how many edges are in the cycle by starting at a vertex and walking clock- wise around the face and counting how many edges we encounter before we return to our starting position, this will be the number of edges in the face. There is a small bit of subtlety to be aware of, namely consider the following graph, a planar graph on three vertices.
This graph has two edges and a single face (so as predicted by Euler’s formula 3−2+1 = 2). How many edges are in the face? Our natural instinct is to say two, but the correct answer is four. That is because as we walk around we will encounter each edge twice and we count an edge each time we encounter it. Put another way if we had cut along the edges we could not distinguish between this graph and what would have happened if we started with a four cycle. The reason that we are using this definition is be- cause we want to be able to count edges by using in- formation about faces. Namely since each edge will be used in two faces (or twice in a single face) if we add up the number of edges in each face we will have double counted all the edges in the graph, i.e.,
f ∈F
edges in face f
We now make an observation, for every simple con- nected planar graph on at least three vertices, each face has at least three edges in it. (The reason that we limit ourselves to simple graphs is that a loop would be a face with a single edge while a pair of vertices connected by two edges would give a face bounded by two edges.) Plugging this into the above formula we have
f ∈F
edges in face f
f ∈F
so that |F | ≤ (2/3)|E|. Putting this into Euler’s for- mula we have
2 = |V | − |E| + |F | ≤ |V | − |E| +
or rearranging we have
|E| ≤ 3 |V | − 6.
We are now ready to prove the following.
K 5 is not planar.
Suppose that K 5 were planar. Since it a simple con- nected graph on five vertices this would then imply by the above inequality that |E| ≤ 3 |V | − 6 but for K 5 we have |E| = 10 and 3|V | − 6 = 9 so this is impossible. So K 5 is not planar. Another graph that is difficult to draw in the plane is K 3 , 3 , if we apply the above inequality we see that |E| = 9 and 3|V |−6 = 12. From this we can’t conclude anything (just because a graph satisfies the above in- equality does not automatically imply planar). We will have to work a little harder for K 3 , 3. One thing that we might be able to use is that the graph K 3 , 3 is
bipartite, and bipartite graphs have nice structure. In particular we have the following.
A graph is bipartite if and only if every cycle (al- lowing for repetition of edges) in the graph has even length.
The assumption that we allow for edges to be re- peated is not important and can be removed from the following arguments with a little care. Since it is an if and only if statement we need to prove both directions. First let us suppose that our graph is bipartite. So we have that the vertices are in sets U and W with all edges going between U and W. Suppose that we start our cycle at a vertex in U , then after the first step we must be in a vertex in W , then after the next step we are back in U and so on. So our cycle keeps going back and forth between the two sets. After an odd number of steps we will be in W and after an even number of steps we will be in U. Since a cycle must begin and end at the same vertex our cycle must have even length. Now let us suppose that every cycle in our graph has even length. Without loss of generality we may assume that our graph is connected (i.e., we can work on each component, a maximal connected subgraph, show that each is bipartite and so the whole graph is bipartite). We fix a vertex v and partition the vertices into Vodd and Veven by putting a vertex v into Vodd if there is a path of odd length between v and v and putting a vertex v into Veven if there is a path of even length between v and v. We claim that this is well defined, i.e., no vertex could be in both sets since if there were a path of even length and a path of odd length between v and v we could form a cycle by starting along the path of even length from v to v and then follow the path of odd length backwards from v to v (i.e., we are concatenating the paths). This new cycle would have an odd number of edges but by our assumption this is impossible. Similarly there cannot be an edge connecting two vertices v, w in Vodd (similarly for Veven since we could then form an odd cycle by going from v to v, from v to w and from w to v. So this shows that we can split the vertices into two sets and all edges in the graph go between these sets, by definition this is a bipartite graph. Since the edges bounding a face correspond to a cy- cle we must now be able to conclude that in a simple connected planar bipartite graph on at least three ver- tices each face has at least four edges, i.e.,
f ∈F
edges in face f
f ∈F
so that |F | ≤ (1/2)|E|. Putting this into Euler’s for- mula we have
2 = |V | − |E| + |F | ≤ |V | − |E| +
or rearranging we have
|E| ≤ 2 |V | − 4.
We are now ready to prove the following.
K 3 , 3 is not planar.
Suppose that K 3 , 3 were planar. Since it a simple connected bipartite graph on six vertices this would then imply by the above inequality that |E| ≤ 2 |V | − 4 but for K 3 , 3 we have |E| = 9 and 2|V | − 4 = 8 so this is impossible. So K 3 , 3 is not planar. We have now shown that K 3 , 3 and K 5 are not pla- nar. In some sense these are the problem graphs for planarity. We will make this more precise in the next lecture.