Reduction and NP-complete
2020-1ํ๊ธฐ, ๋ํ์์ โ์๊ณ ๋ฆฌ์ฆโ ์์ ์ ๋ฃ๊ณ ๊ณต๋ถํ ๋ฐ๋ฅผ ์ ๋ฆฌํ ๊ธ์ ๋๋ค. ์ง์ ์ ์ธ์ ๋ ํ์์ ๋๋ค :) ์ ์ฒด ํฌ์คํธ๋ Algorithm ํฌ์คํธ์์ ํ์ธํ์ค ์ ์์ต๋๋ค.
(Review) P and NPPermalink
์ ๊น ์ด์ ๋ด์ฉ์ ๋ณต์ตํด๋ณด์.
: the class of all search problems : the class of all search problems that can be solved in polynomial time.
๊ทธ๋ฆฌ๊ณ
๊ทธ๋ค์ โ์ฆ๊ฑฐโ๋ฅผ ๊ฐ์ง๊ณ ์๊ธฐ ๋๋ฌธ์ด๋ค!
What reductions demonstrate is that the problems are all, in some sense, exactly the same problem, except that they are stated in different languages.
์ด๋ฒ ์ฑํฐ์์๋
ReductionPermalink

Definition. Reduction (search problem)
A reduction from search problem
Together with another polynomial-time algorithm
์ฆ, <Reduction>์ด๋ผ ํจ์
- instance
๋ฅผ ๋ณํ(transform) ํ๋ polynomial-time algorithm ์ solution ๋ฅผ ์ solution์ผ๋ก ๋ณํํ๋ polynomial-time algorithm
์ฆ
๊ทธ๋ฐ๋ฐ <Reduction>์ ํ๋ ์ด์ ๊ฐ ๋ญ๊น? ๊ฑฐ๊ธฐ์ 2๊ฐ์ง ๋ชฉ์ ์ด ์๋ค.
- We know how to solve
efficiently, and want to utilize it to solve - We know
is hard, and use the reuction to prove is hard as well.
๋ณดํต์ ๊ฒฝ์ฐ๋ค์๋ ๋ชฉ์ 1์ ์ด๋ฃจ๊ธฐ ์ํด <Reduction> ์์ ์ ์ํํ๋ค. ๊ทธ๋ฌ๋ ์ด๋ฒ ๊ฒฝ์ฐ์๋ Problem B๊ฐ Problem A๋งํผ โ์ด๋ ต๋คโ๋ ์ฆ๋ช ํ๋ ๋ชฉ์ 2๋ฅผ ์ํด์ <Reduction> ์์ ์ ์ํํ๋ค!!
๋ณธ์ธ์ ์ฒ์์ ์์ ๋ฌธ์ฅ๋ค์ด ์ ์ดํด๊ฐ ์ ๋์๋ค. Reduction์ผ๋ก ์ ๋๋๋ Problem B์ Difficulty๊ฐ ๋ถ์์ฐ์ค๋ฌ์ ๋ณด์๊ธฐ ๋๋ฌธ์ด๋ค. ๋ณธ์ธ์ Reduction์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํ ์๋จ, ์ฆ ๋ชฉ์ 1์ ๋ํด์๋ง ์จ์ ํ ์ดํดํ๊ณ ์์๋ค.
๊ทธ๋ฌ๋ Wikipedia์ ๊ธฐ์ ๋ ์๋ ๊ตฌ์ ์ ์ฝ๊ณ ๋ชฉ์ 2๋ฅผ ์จ์ ํ ์ดํดํ ์ ์์๋ค.
Intuitively, problem A is reducible to problem B if an algorithm for solving B efficiently could also be used as a subroutine to solve problem A efficiently. When this is true, solving A cannot be harder than solving B. โHarderโ means having a higher estimate of the required computational resources in a given context.
์ฆ, problem A์์ problem B๊ฐ Reduction์ด ๊ฐ๋ฅํ ์๊ฐ๋ถํฐ Difficulty์ ๋ํ bound๊ฐ ์๊ธฐ๋ ์ ์ด๋ค. ๊ทธ๊ฒ์ โsolving A cannot be harder than solving Bโ๋ผ๋ ๋ฌธ์ฅ์ผ๋ก ํํ๋๋ค. ์ด๊ฒ์ Difficulty of B๊ฐ Difficulty of A์ upper bound๊ฐ ๋๋ค๋ ์ ์ด๋ฉฐ, ๋ฐ๊ฟ๋งํ๋ฉด Difficulty of A๊ฐ B์ lower bound๊ฐ ๋๋ค๋ ์ ์ด๋ค.
Reduction๋ฅผ ์์์ผ๋ก ํํ๋ฉด
NP-completePermalink
์ด์ <Reduction>์ด ๋ฌด์์ธ์ง ๋์ถฉ ์์์ผ๋
Definition.
A search problem is
ํ ์คํธ์ ํจ๊ป ์๋ ๊ทธ๋ฆผ์ ์ดํด๋ณด์.

์ ๊ทธ๋ฆผ์ ๋ณด๋ฉด, ๋ชจ๋ Search Problem, ์ฆ
์ฌ์ค ์ ๊ทธ๋ฆผ์ ์ง์ ์ผ๋ก ์ดํดํ๋ ค๋ฉด, <Reduction>์ด composition property๋ฅผ ๊ฐ๋๋ค๋ ์ฌ์ค์ ์์์ผ ํ๋ค.
For reduction,
If
<Reduction>์ composition property๋ฅผ ํ ์ฉํ๋ฉด, โAll NP โ ???โ๋ฅผ ์ฆ๋ช ํ์ง ์๊ณ , โAll NP โ SATโ๋ฅผ ๋ณด์ธ ํ์ โSAT โ ???โ๋ฅผ ๋ณด์ด๋ฉด, โAll NP โ ???โ๋ฅผ ์ฆ๋ช ํ๋๋ฐ ์ถฉ๋ถํ๊ธฐ ๋๋ฌธ์ด๋ค!
๋ณธ์ธ ๊ต์ฌ์์๋
์! ์ด์ ๋ช ํธ์ ํฌ์คํธ์ ๊ฑธ์ณ์ ์ด์ ๊ป ์ดํด๋ดค๋