Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-26 21:07:53 UTC · snapshot created 2026-11-26 21:08:36 UTC · last check 2026-11-29 22:20:05 UTC

B.5:5.1 - A counterexample becomes a constructive mathematical question

An engineer models pairwise incompatibilities with a finite simple undirected graph and asks, “Does connectedness let us divide the vertices into two groups with every edge crossing between groups?”

A triangle answers the engineer’s question. Putting two adjacent vertices in different groups forces the third vertex to conflict with one of them. Connectedness therefore gives no such guarantee. An engineer who also needs a way to make the division can now ask a further question. What obstruction prevents the partition, and how can we return either the partition or a witness of failure?

Build the tree by keeping an ordered waiting list. The neighbours of a vertex are the vertices joined to it by an edge.

  1. Choose any unseen vertex as a root, mark it seen, give it depth 0 and put it on the waiting list.
  2. Remove the first waiting vertex. For each of its unseen neighbours, mark that neighbour seen, record the removed vertex as its parent, give it the parent’s depth plus 1, and append it to the waiting list. A seen vertex keeps its first parent and depth.
  3. Repeat step 2 until the list is empty. If an unseen vertex remains, start a new root and repeat; this covers disconnected components and isolated vertices.

This is breadth-first search: a discovered vertex waits behind the vertices already waiting. The recorded parent edges form a tree in each component. Assign even-depth vertices to one group and odd-depth vertices to the other. If every graph edge joins opposite parities, these groups give the partition.

If an edge joins equal parities, write each endpoint’s chain of parents back to the root. Keep the two paths up to their common vertex of greatest depth, discarding the shared part beyond it. The retained paths have an even total length; the extra edge closes a simple odd cycle. An odd cycle cannot alternate between two groups all the way around. Thus the procedure returns either a two-colouring or an odd-cycle witness.

For a worked traversal, take vertices A–F and edges AB, AC, BD, CE, DF and EF. Start at A and inspect neighbours alphabetically. The waiting list changes as follows; the processed vertex is the parent of each newly found vertex in that row.

Processed vertexNewly found vertices and depthWaiting list after processing
AB, C at depth 1B, C
BD at depth 2C, D
CE at depth 2D, E
DF at depth 3E, F
ENone; F was already seenF
FNoneEmpty

A has depth 0, so the groups are {A,D,E} and {B,C,F}; each of the six edges crosses between them. Now add DE. Its endpoints both have depth 2. Their parent paths D–B–A and E–C–A, joined by DE, give the five-edge cycle D–B–A–C–E–D. The added edge therefore prevents the requested two-group partition.

Parity and the parent paths establish what the procedure returns for an arbitrary graph in this class. To use it for allocation, establish which items the vertices represent and which assignments the edges exclude. Suppose three items may share a group in pairs but all three together are forbidden. No edge between those three items expresses that restriction faithfully. The allocation question can stay fixed while the model gains a condition on the triple. A particular colouring that also satisfies every such condition can supply one allocation. An odd cycle of mandatory pairwise incompatibilities still rules out a two-group allocation under the additional restrictions.

The practice targets are to explain the obstruction, construct a partition or failure witness for another finite graph, and handle disconnected components. Assess those capabilities on a changed graph with the references and assistance permitted in the intended work.