Course Test · University: upper level

Graph theory: independent answers

Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.

  1. 1.Handshake lemma
    A graph has degree sequence 3,3,2,2,23, 3, 2, 2, 2. How many edges does it have? Build one and check.
    Answer
    ∑deg⁡=12=2∣E∣\sum \deg = 12 = 2|E|, so 6 edges. For example a 5-cycle plus one chord.
  2. 2.Bridges and cut vertices
    Two triangles {1,2,3}\{1,2,3\} and {4,5,6}\{4,5,6\} are joined by the edge 3–43\text{–}4. Find the bridges and cut vertices.
    Answer
    Only 3–43\text{–}4 lies on no cycle: it is the one bridge. Removing 3 or 4 disconnects the graph: the cut vertices are 3 and 4.
  3. 3.Prüfer codes
    Find the Prüfer code of the tree with edges 1–4,2–4,3–4,4–5,5–61\text{–}4, 2\text{–}4, 3\text{–}4, 4\text{–}5, 5\text{–}6.
    Answer
    Remove the smallest leaf each time and record its neighbour: 1 (4), 2 (4), 3 (4), then 4 is a leaf (5). Code (4,4,4,5)(4, 4, 4, 5).
  4. 4.Counting spanning trees
    How many spanning trees do K4K_4 and C5C_5 have?
    Answer
    Cayley: 44−2=164^{4-2} = 16. A cycle loses any one of its 5 edges: 5.
  5. 5.Euler tours
    Does K5K_5 have a closed Euler tour? Does K4K_4?
    Answer
    K5K_5 is connected and every degree is 4 (even): yes, a tour of all 10 edges (11 vertices listed). In K4K_4 every degree is 3 (odd): no.
  6. 6.Hamilton cycles
    Is the cube graph Q3Q_3 Hamiltonian? Give a cycle.
    Answer
    Yes: the Gray code 000,001,011,010,110,111,101,100000, 001, 011, 010, 110, 111, 101, 100 and back.
  7. 7.The Petersen graph
    For the Petersen graph give the order, size, girth, diameter, chromatic number, independence number, and whether it is Hamiltonian.
    Answer
    10 vertices, 15 edges, girth 5, diameter 2, χ=3\chi = 3, α=4\alpha = 4, and it has no Hamilton cycle.
  8. 8.Planarity
    Which of K4K_4, K5K_5, K3,3K_{3,3} are planar?
    Answer
    K4K_4 is planar. K5K_5 has 10>3⋅5−6=910 > 3\cdot5 - 6 = 9 edges, and K3,3K_{3,3} (triangle-free) has 9>2⋅6−4=89 > 2\cdot6 - 4 = 8: neither is planar.
  9. 9.Kuratowski's theorem
    Show the Petersen graph is not planar by finding a Kuratowski subgraph.
    Answer
    It contains a subdivision of K3,3K_{3,3} (it also has K5K_5 as a minor, but no subdivided K5K_5, since its degrees are 3).
  10. 10.Euler's formula
    The cube graph is planar with 8 vertices and 12 edges. How many faces does a plane drawing have?
    Answer
    V−E+F=2V - E + F = 2: F=2−8+12=6F = 2 - 8 + 12 = 6.
  11. 11.Chromatic number
    Find the chromatic number of the wheel with 5 spokes (a hub joined to every vertex of C5C_5).
    Answer
    The odd rim needs 3 colours and the hub, adjacent to all of them, needs a fourth: χ=4\chi = 4.
  12. 12.Chromatic polynomial
    Find the chromatic polynomial of C4C_4.
    Answer
    P(Cn,k)=(k−1)n+(−1)n(k−1)P(C_n, k) = (k - 1)^n + (-1)^n(k - 1): (k−1)4+(k−1)=k4−4k3+6k2−3k(k-1)^4 + (k - 1) = k^4 - 4k^3 + 6k^2 - 3k.
  13. 13.Matchings
    What is the size of a maximum matching in K3,3K_{3,3}? Is it perfect?
    Answer
    Hall's condition holds (every set of kk left vertices has 3 neighbours), so there is a perfect matching of size 3.
  14. 14.Max flow, min cut
    In the network s→as\to a (3), s→bs\to b (2), a→ba\to b (1), a→ta\to t (2), b→tb\to t (3), find the maximum flow from ss to tt.
    Answer
    The cut {s}\{s\} has capacity 3+2=53 + 2 = 5. Flow: s ⁣→ ⁣a ⁣→ ⁣ts\!\to\!a\!\to\!t 2, s ⁣→ ⁣a ⁣→ ⁣b ⁣→ ⁣ts\!\to\!a\!\to\!b\!\to\!t 1, s ⁣→ ⁣b ⁣→ ⁣ts\!\to\!b\!\to\!t 2: total 5. Max flow == min cut =5= 5.
  15. 15.Isomorphism
    C6C_6 and two disjoint triangles are both 2-regular on 6 vertices. Are they isomorphic?
    Answer
    No: C6C_6 is connected and the triangles are not (also, one has girth 6 and the other 3).
  16. 16.Counting walks
    How many closed walks of length 3 start and end at a given vertex of K4K_4? How many walks of length 3 join two different vertices?
    Answer
    With A=J−IA = J - I and J2=4JJ^2 = 4J: A3=J3−3J2+3J−I=16J−12J+3J−I=7J−IA^3 = J^3 - 3J^2 + 3J - I = 16J - 12J + 3J - I = 7J - I. So (A3)vv=6(A^3)_{vv} = 6 (the 3⋅23\cdot2 ordered triangles through vv) and (A3)uv=7(A^3)_{uv} = 7.
  17. 17.Spectrum
    Find the eigenvalues of the adjacency matrix of K4K_4.
    Answer
    A=J−IA = J - I; JJ has eigenvalues 4, 0, 0, 0, so AA has 3 and −1-1 (three times).
  18. 18.Turán's theorem
    What is the largest number of edges in a triangle-free graph on 6 vertices?
    Answer
    Mantel/Turán: ⌊62/4⌋=9\lfloor 6^2/4\rfloor = 9, attained by K3,3K_{3,3}.
  19. 19.Cliques and independence
    Find the clique number of the Petersen graph and of its complement.
    Answer
    Petersen has girth 5, so it has no triangle: ω=2\omega = 2. A clique in the complement is an independent set in PP, so ω(Pˉ)=α(P)=4\omega(\bar P) = \alpha(P) = 4.
  20. 20.Bipartite graphs
    Is the cube graph Q3Q_3 bipartite? Is the Petersen graph?
    Answer
    Q3Q_3: yes, split by the parity of the number of 1s. Petersen: no, it has 5-cycles.