Skip to content

Gale-Shapley stable matching algorithm implemented in Java.

Notifications You must be signed in to change notification settings

ConnorD/Gale-Shapley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Gale-Shapley

Gale-Shapley stable matching algorithm implemented in Java.

Input: a text file that defines the preference list of each man and woman, where there are n number of men and n number of women. Each person lists n people in their pref list.

On each line of the input file, the first word is the person that is listing their preferences, and the following words on that line are their preferences in order of importance.

Output: Each line represents a couple. Each couple, obviously, consists of one man and one woman. There are n number of couples (or lines) in the output, and they are paired such that they are a stable matching.

About

Gale-Shapley stable matching algorithm implemented in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages