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 문제둜 ν™˜μ›ν•˜λŠ” 방법에 λŒ€ν•΄ μ‚΄νŽ΄λ³Ό μ˜ˆμ •μ΄λ‹€.

ν•¨κ»˜λ³΄κΈ°