Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/iii/paper-215/3/b/solution

Writing and gives
Make two states adjacent when one can pair every disagreement except at most one, equivalently when , and give every such edge length one. Pairing a deletion with an insertion as a swap and then handling the excess disagreements constructs a path of length ; every edge changes by at most one, so this is the corresponding path metric.
For adjacent states, couple the lazy coin and coordinate choices so that a distinguished disagreement is removed whenever its coordinate is selected, matching a compensating coordinate in the swap case. A direct check of the nested and equal-cardinality cases gives
The Path coupling theorem extends this to all pairs. Since , part (a), with up to an absolute constant, gives

New to topics? Read the docs here!