2020-1ํ•™๊ธฐ, ๋Œ€ํ•™์—์„œ โ€˜์•Œ๊ณ ๋ฆฌ์ฆ˜โ€™ ์ˆ˜์—…์„ ๋“ฃ๊ณ  ๊ณต๋ถ€ํ•œ ๋ฐ”๋ฅผ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ์ง€์ ์€ ์–ธ์ œ๋‚˜ ํ™˜์˜์ž…๋‹ˆ๋‹ค :)

1 minute read

2020-1ํ•™๊ธฐ, ๋Œ€ํ•™์—์„œ โ€˜์•Œ๊ณ ๋ฆฌ์ฆ˜โ€™ ์ˆ˜์—…์„ ๋“ฃ๊ณ  ๊ณต๋ถ€ํ•œ ๋ฐ”๋ฅผ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ์ง€์ ์€ ์–ธ์ œ๋‚˜ ํ™˜์˜์ž…๋‹ˆ๋‹ค :)


ํฌ์ŠคํŠธ๋ฅผ ์•ž์—์„œ๋ถ€ํ„ฐ ์ฒœ์ฒœํžˆ ๋”ฐ๋ผ์™”๋‹ค๋ฉด, Network Flow ์ฑ•ํ„ฐ์—์„œ Network Flow ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ํ†ตํ•ด Bipartite Matching(์ด๋ถ„ ๋งค์นญ) ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Œ์„ ๊ณต๋ถ€ํ–ˆ์„ ๊ฒƒ์ด๋‹ค.

Problem. Bipartite Matching Problem

Given $n$ boys and $n$ girls, and the compatibility btw them, find as many disjoint couples as possible.


์ด๋ฒˆ์—๋Š” (boy, girl)์˜ ์Œ(pair)๊ฐ€ ์•„๋‹ˆ๋ผ (boy, girl, pet)์˜ triplet์—์„œ์˜ Matching์„ ์ฐพ๋Š” 3D Matching ๋ฌธ์ œ๋ฅผ ์‚ดํŽด๋ณด์ž!

Problem. Bipartite Matching Problem

Given $n$ boys and $n$ girls, and the compatibility btw them, find as many disjoint couples as possible.


์ถ”ํ›„์— ํ™˜์›(reduction)์„ ๋ถ€๋ถ„์—์„œ 3D Matching ๋ฌธ์ œ๋ฅผ ๋‹ค๋ฅธ NP ๋ฌธ์ œ๋กœ ํ™˜์›ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์‚ดํŽด๋ณผ ์˜ˆ์ •์ด๋‹ค.

ํ•จ๊ป˜๋ณด๊ธฐ