Walkthrough
Example 01 — A simple XY-Chain
Consider a five cells chain starting from cell r1c6 with numbers 3 and 4, traveling through cell r6c6, r3c6, r3c5 and ending at cell r9c5, if cell r1c5 is not number 3, then cell r6c6 must be number 7, cell r3c6 must be number 5, cell r3c5 must be 7, resulting cell r9c5 to be number 3; because one of chain's ending cells r1c6 or cell r9c5 must be number 3, therefore cell r1c5 cannot be 3 because that cell sees both chain's endpoints.
What to notice: The middle numbers can change several times. Only the endpoint number needs to match.