Detail: https://github.com/myuuuuun/oyama_seminar2016/tree/master/exercise/ex03
Code: https://github.com/myuuuuun/oyama_seminar2016/blob/master/exercise/ex03/matching.jl
In [1]:
include("test_deferred_acceptance.jl")
Out[1]:
In [1]:
include("matching_tools.jl")
include("matching.jl")
Out[1]:
In [2]:
srand(711)
m_prefs, f_prefs = random_prefs(5, 10, allow_unmatched=true)
println(m_prefs)
println(f_prefs)
println(Matching.gale_shapley(m_prefs, f_prefs))
In [ ]: