1. Objective / Мета роботи
Gain fluency in the two standard descriptions of a graph — the picture and the adjacency matrix — and in colouring graphs: computing the chromatic number and the chromatic index .
By the end of the class the student should be able to:
- read an adjacency matrix and draw the corresponding graph — recognising from the matrix alone whether it is undirected (symmetric) or directed (asymmetric), and where it has loops (diagonal entries) or parallel edges/arcs (entries greater than );
- go the other way — write the adjacency matrix of a given graph — and read off each vertex’s degree (row sum) or, for a digraph, its out-degree (row sum) and in-degree (column sum);
- find a proper vertex colouring and the chromatic number , using the clique lower bound and the greedy upper bound to trap the value;
- find a proper edge colouring and the chromatic index , using and Vizing’s theorem to decide whether the graph is class 1 or class 2;
- explain why colouring matters — scheduling, register allocation, and frequency assignment are all “colour so that conflicting things differ”.
The class consolidates Lecture 10 — Graph theory (basics) (representations §10.6 and colouring §10.12) and complements Lab 6. All theory needed is restated, self-contained, in 2method.md.