Lesson 39 +25 XP

Cliques, Independent Sets, Matching, Coverings & TSP (Beyond Syllabus)

Cliques, Independent Sets, Matching, Coverings & TSP (Beyond Syllabus)

ℹ️ Note

🧭 Beyond syllabus. These topics appear in the uploaded notes but not in the CIC-205 syllabus. They connect graph theory to optimisation and complexity theory-read them after the syllabus lessons.

1. Cliques and Independent Sets

  • A clique is a set of vertices that are pairwise adjacent (it induces a complete subgraph). The clique number ω(G) is the size of the largest clique.
  • An independent set is a set of vertices with no edge between any two. The independence number α(G) is the size of the largest one.

S is independent in G ⇔ S is a clique in the complement Ḡ, so α(G) = ω(Ḡ).

A maximum clique and a maximum independent set in the same graphA maximum clique and a maximum independent set in the same graph

Links to colouring: each colour class is an independent set, so χ(G) ≥ n/α(G) and χ(G) ≥ ω(G).

2. Coverings

  • A vertex cover is a set of vertices touching every edge. β(G) = minimum size.
  • An edge cover is a set of edges touching every vertex.

Theorem (Gallai). S is an independent set ⇔ V − S is a vertex cover. Hence α(G) + β(G) = n. Proof. S independent ⇔ no edge has both ends in S ⇔ every edge has an end in V − S. ∎

3. Matchings

A matching M is a set of edges with no common end-point. A vertex on an edge of M is saturated.

  • Maximum matching: the largest possible.
  • Perfect matching: every vertex is saturated (needs n even).

A maximum matching in a bipartite graphA maximum matching in a bipartite graph

Hall's Marriage Theorem. A bipartite graph with parts X, Y has a matching saturating X iff for every S ⊆ X, ∣N(S)∣ ≥ ∣S∣ (N(S) = neighbours of S).

König's Theorem. In a bipartite graph, maximum matching size = minimum vertex cover size.

Applications: assigning jobs to workers, students to projects, organ donor exchanges.

4. Graph Homomorphism

A graph homomorphism f : G → H maps vertices to vertices so that adjacent vertices go to adjacent vertices. (An isomorphism is a bijective homomorphism whose inverse is also one.)

Key fact: G is k-colourable iff there is a homomorphism G → Kₖ - a colouring is exactly a homomorphism onto a complete graph whose vertices are the colours.

Chords and chordal graphs: a chord of a cycle is an edge joining two non-consecutive vertices of the cycle. A graph is chordal if every cycle of length ≥ 4 has a chord; chordal graphs can be coloured optimally in polynomial time.

5. The Travelling Salesman Problem (TSP)

Given n cities and the distance between each pair (a weighted Kₙ), find the shortest Hamiltonian circuit - a tour visiting each city exactly once and returning home.

Solved (brute force, 4 cities). AB = 10, AC = 15, AD = 20, BC = 35, BD = 25, CD = 30. There are (4 − 1)!/2 = 3 distinct tours:

TourLength
A-B - C-D - A10 + 35 + 30 + 20 = 95
A-B - D-C - A10 + 25 + 30 + 15 = 80 ✅
A-C - B-D - A15 + 35 + 25 + 20 = 95

Optimal tour A-B - D-C - A, length 80.

Complexity. TSP is NP-hard: brute force checks (n − 1)!/2 tours-20 cities ≈ 6 × 10¹⁶. Practical approaches:

  • Nearest-neighbour heuristic: always go to the closest unvisited city (fast, not optimal).
  • MST-based 2-approximation (when distances obey the triangle inequality): double the MST edges, take an Euler circuit, shortcut repeated vertices-the tour is at most twice optimal.
  • Dynamic programming (Held-Karp) in O(n²2ⁿ); branch and bound.
🎯 END-TERM EXAM PREP

📝 Exam Corner (for interest)

  • Q1. Define clique, independent set, vertex cover and matching. Prove α(G) + β(G) = n. (5 Marks)
  • Q2. State Hall's marriage theorem. (2.5 Marks)
  • Q3. Solve a 4-city TSP by enumeration. (5 Marks)
  • Note-IPU End-Term Exam Corner: this lesson is beyond the CIC-205 syllabus; use it for depth, not as a priority.