3D Matching
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 λ¬Έμ λ‘ νμνλ λ°©λ²μ λν΄ μ΄ν΄λ³Ό μμ μ΄λ€.