Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
26 lines (13 loc) · 756 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 756 Bytes

Residency Matching

The Residency Matching algorithm pairs medical school graduates(residents) and residency slots at teaching hospitals. Residents and hospitals submit their ordered preference list, and the stable pairing produced by matching residents with residency programs, i.e. a set of residents has to be assigned to a set of hospitals.


Windows

This solution developed in C++ on Microsoft Visual Studio 2012 as a Console Application. You can run and compile it in your way :)

For Linux/Unix

Compile:

g++ Main.cpp -o ResidencyMathcning

Run:

./ResidencyMathcning data1_h1.txt data1_r1.txt 3

./ResidencyMathcning data2_h2.txt data1_r2.txt 5

./ResidencyMathcning data3_h3.txt data1_r3.txt 10