Maths Olympiad Prep

Library / /4 of 7

, 2018

Combinatorics Difficulty 8.0 National olympiad, round 2 Prove it Saudi Arabia

In a graph with 8 vertices that contains no cycle of length 4, at most how many edges can there be?

Solution

Let VV denote the set of all vertices. Let dd be the greatest degree of a vertex in the graph and vVv \in V be a vertex with degree dd and let DVD \subset V be the set of dd vertices connected to vv.

In the full subgraph consisting of vertices in DD, no vertex can have degree 2 or more, because this would make a cycle of length 4. Therefore, there are at most d2\left\lfloor\frac{d}{2}\right\rfloor edges in this full subgraph.

Similarly, none of the 7d7-d vertices in V(D{v})V \setminus (D \cup \{v\}) can have 2 or more connections to DD because this would also make a cycle of length 4. Therefore, there are at most 7d7-d edges between V(D{v})V \setminus (D \cup \{v\}) and D{v}D \cup \{v\}. Finally, the number of edges in V(D{v})V \setminus (D \cup \{v\}) is at most (7d2)\binom{7-d}{2}, hence
ed+d2+7d+(7d2)=7+d2+(7d2) e \leq d + \left\lfloor\frac{d}{2}\right\rfloor + 7 - d + \binom{7-d}{2} = 7 + \left\lfloor\frac{d}{2}\right\rfloor + \binom{7-d}{2}
- If d5d \geq 5, e7+d2+(7d2)10e \leq 7 + \left\lfloor\frac{d}{2}\right\rfloor + \binom{7-d}{2} \leq 10.
- If d=4d = 4, e7+42+(742)=12e \leq 7 + \left\lfloor\frac{4}{2}\right\rfloor + \binom{7-4}{2} = 12.
- If d3d \leq 3, e=uVd(u)2832=12e = \frac{\sum_{u \in V} d(u)}{2} \leq \frac{8 \cdot 3}{2} = 12.

Let us now prove that e=12e = 12 is not possible by ruling out the two cases with d=4d = 4 and d=3d = 3.

1. If e=12e = 12 and d=4d = 4, then there are exactly 2 edges in the full subgraph consisting of vertices in DD (each vertex in DD is connected to exactly one other vertex in DD), there are exactly 3 edges between V(D{v})V \setminus (D \cup \{v\}) and DD (each vertex in V(D{v})V \setminus (D \cup \{v\}) is connected to exactly 1 vertex in DD) and there are exactly 3 edges in V(D{v})V \setminus (D \cup \{v\}) (all 3 of the vertices in V(D{v})V \setminus (D \cup \{v\}) are connected).

Let us denote the vertices in V(D{v})V \setminus (D \cup \{v\}) by a1,a2,a3a_1, a_2, a_3. aia_i and aja_j cannot be connected to the same vertex in DD, otherwise this would make a cycle of length 4 (for example (a,c,b,x)(a, c, b, x) cyclically connected).

Therefore, exactly 3 of the 4 vertices in DD are connected to V(D{v})V \setminus (D \cup \{v\}). Since each vertex in DD is connected to exactly one other vertex in DD, two of these 3 vertices are connected. Let us call them x,yx, y and let us assume without loss of generality that they are connected to a1a_1 and a2a_2. Now, we have a cycle of length 4 as (x,y,a2,a1)(x, y, a_2, a_1) are cyclically connected. Therefore, e=12e = 12 and d=4d = 4 is not possible.

2. If e=12e = 12 and d=3d = 3, then all vertices in the graph must have degree 3. Let vv be any vertex and DD be defined as above. Similarly as above, no vertex in V(D{v})V \setminus (D \cup \{v\}) can have 2 or more connections to DD as this would make a cycle of length 4.

Hence, each vertex in V(D{v})V \setminus (D \cup \{v\}) is connected to at most 1 vertex in D{v}D \cup \{v\} and thus connected to at least 2 vertices in V(D{v})V \setminus (D \cup \{v\}). If we consider the full subgraph consisting of the 4 vertices in V(D{v})V \setminus (D \cup \{v\}), each vertex has degree at least 2. In a graph with 4 vertices such that each vertex has degree at least 2, there must be a cycle of length 4. Therefore, e=12e = 12 and d=3d = 3 is also not possible.

Figure 1

Let us now give an example of a graph with e=11e = 11. Consider an octagon ABCDEFGHA B C D E F G H. Now, draw the additional three edges AC,CE,EGA C, C E, E G. This is a graph with 8 vertices, 11 edges and no cycles of length 4.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.