Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 전산물리학:xorsat [2026/10/14 14:48] – [XORSAT] admin | 전산물리학:xorsat [2026/10/14 15:53] (current) – [3-XORSAT의 예] admin | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| 1 & 1 & 1 & 0 | 1 & 1 & 1 & 0 | ||
| \end{pmatrix} \] | \end{pmatrix} \] | ||
| - | 이고 $\underline{b} = (0,0,0)^\intercal$이다. 가우스 소거법을 사용하면 아래 식으로 바꾸어 쓸 수 있다: | + | 이고 $\underline{b} = (0,0,1)^\intercal$이다. 가우스 소거법을 사용하면 아래 식으로 바꾸어 쓸 수 있다: |
| \[\begin{pmatrix} | \[\begin{pmatrix} | ||
| 1 & 0 & 0 & 1\\ | 1 & 0 & 0 & 1\\ | ||
| Line 43: | Line 43: | ||
| * $\operatorname{rank}\mathbb{H}< | * $\operatorname{rank}\mathbb{H}< | ||
| - | 방정식 $\mathbb{H} \underline{x} = \underline{b}$에 해가 존재한다면, | + | 방정식 $\mathbb{H} \underline{x} = \underline{b}$에 해가 존재한다면(표기를 간편하게 하기 위해 $\bmod 2$는 앞으로 생략한다), $Z = 2^{N-\operatorname{rank}\mathbb{H}}$이다. 위의 예에서 $N=4$와 $\operatorname{rank}\mathbb{H} = M = 3$이므로 실제로 해가 두 개 존재했다. |
| *$\mathbb{H}\underline{x} = \underline{0}$을 동차(homogeneous) 방정식이라 하고 그 해의 집합을 $\mathcal{S}_0$라고 하자. $\mathbb{H} \underline{x} = \underline{b}$의 특수해 $\underline{x}_\ast$가 있을 때, $\mathcal{S} = \underline{x}_\ast + \mathcal{S}_0$이다. 달리 말해서, 동차 방정식 $\mathbb{H}\underline{x} = \underline{0}$를 만족하는 해의 수가 $Z_0 = 2^{N-M}$이라면, | *$\mathbb{H}\underline{x} = \underline{0}$을 동차(homogeneous) 방정식이라 하고 그 해의 집합을 $\mathcal{S}_0$라고 하자. $\mathbb{H} \underline{x} = \underline{b}$의 특수해 $\underline{x}_\ast$가 있을 때, $\mathcal{S} = \underline{x}_\ast + \mathcal{S}_0$이다. 달리 말해서, 동차 방정식 $\mathbb{H}\underline{x} = \underline{0}$를 만족하는 해의 수가 $Z_0 = 2^{N-M}$이라면, | ||
| - | * 반면 $Z_0 > 2^{N-M}$이라면, | + | * 반면 $Z_0 > 2^{N-M}$이라면, |
| + | \[\mathbb{H} = \begin{pmatrix} | ||
| + | 1 & 0 & 0 & 1\\ | ||
| + | 0 & 1 & 0 & 0\\ | ||
| + | 0 & 0 & 0 & 0 | ||
| + | \end{pmatrix}. | ||
| + | \] | ||
| + | |||
| + | ====3-XORSAT의 예==== | ||
| + | $N=M=6$인 경우이다: | ||
| + | \[ \mathbb{H} = \begin{pmatrix} | ||
| + | 0 & 1 & 0 & 1 & 1 & 0\\ | ||
| + | 1 & 0 & 0 & 1 & 0 & 1\\ | ||
| + | 0 & 1 & 0 & 0 & 1 & 1\\ | ||
| + | 1 & 0 & 1 & 0 & 0 & 1\\ | ||
| + | 0 & 1 & 0 & 1 & 0 & 1\\ | ||
| + | 1 & 0 & 1 & 0 & 1 & 0 | ||
| + | \end{pmatrix}. | ||
| + | \] | ||
| + | 가우스 소거법을 시행하면 다음을 얻는다: | ||
| + | \[ \begin{pmatrix} | ||
| + | 1 & 0 & 0 & 0 & 0 & 0\\ | ||
| + | 0 & 1 & 0 & 0 & 0 & 0\\ | ||
| + | 0 & 0 & 1 & 0 & 0 & 1\\ | ||
| + | 0 & 0 & 0 & 1 & 0 & 1\\ | ||
| + | 0 & 0 & 0 & 0 & 1 & 1\\ | ||
| + | 0 & 0 & 0 & 0 & 0 & 0\\ | ||
| + | \end{pmatrix}. | ||
| + | \] | ||
| + | 따라서 $\operatorname{rank}\mathbb{H} =5$이고 $\mathcal{S}_0 = \{(0, | ||
| + | |||
| + | 위 문제에 해당하는 [[수학: | ||
| + | |||