An open API service indexing awesome lists of open source software.

https://github.com/vaithak/stable-marriage-problem

An implementation of stable marriage problem in C++.
https://github.com/vaithak/stable-marriage-problem

cpp gale-shapley-algorithm stable-marriage stable-marriage-problem

Last synced: 9 days ago
JSON representation

An implementation of stable marriage problem in C++.

Awesome Lists containing this project

README

          

# Stable-Marriage-Problem
An implementation of stable marriage problem in C++.

## Usage
* Edit the men and women preferences if menPref.txt and womenPref.txt respectively.
* Build the program by running `make` command.
* Run the program using `./stableMatch.out`
* The stable match will also be written to stableMatching.txt along with on terminal.

## Analysis
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_1.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_2.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_3.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_4.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_5.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_6.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_7.png)
![image](https://github.com/vaithak/Stable-Marriage-Problem/blob/master/images/image_8.png)