> For the complete documentation index, see [llms.txt](https://zhugelianglongming.gitbook.io/shu-du/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zhugelianglongming.gitbook.io/shu-du/ji-qiao/ji-qiao-gui-na/lian/biao-zhun-lian/shuang-zhi-ge-lian.md).

# 双值格链

## 原理

因为

* 存在单元格 `Cell0`
  * 候选数为`X` `Y`
* 存在一条链`ChainX`
  1. 单元格`Cell0`候选包含`X`
  2. 单元格`CellX[1]`候选为`X` `X[1]`
  3. 单元格`CellX[2]`候选为`X[1]` `X[2]`
  4. ...
  5. 单元格`CellX[p]`候选为`X[p-1]` `N`
* 存在一条链`ChainY`
  1. 单元格`Cell0`候选包含`Y`
  2. 单元格`CellY[1]`候选为`Y` `Y[1]`
  3. 单元格`CellY[2]`候选为`Y[1]` `Y[2]`
  4. ...
  5. 单元格`CellY[q]`候选为`Y[q-1]` `N`

所以

* 单元格`CellX[p]`和`CellY[q]`的共同影响区域必不填入数字`N`

![XY-Chains](https://www.sudokuwiki.org/PuzImages/XYC2.png)

### 技巧拓展

* \[\[双分支匹配法]]：拓展分支链的长度
  * 1→n

### 技巧组合

* \[\[同单元格异数强关系]] \* n
* \[\[同区域同数弱关系]] \* n

> [SudokuWiki.org - XY-Chains](https://www.sudokuwiki.org/XY_Chains)
