Stable Marriage Algorithm

A matching algorithm.

Algorithmia Platform License

Run an Example

{
  "matches": {
    "fusco": "shaw",
    "reese": "morgan",
    "elias": "groves",
    "finch": "carter"
  }
}

Install & Use

Use

curl -X POST -d '{
    "optimal": {
        "reese": ["morgan", "groves", "carter", "shaw"],
        "finch": ["morgan", "carter", "shaw", "groves"],
        "fusco": ["shaw", "carter", "groves", "morgan"],
        "elias": ["groves", "carter", "shaw", "morgan"]
    },
    "pessimal":{
        "carter": ["reese", "fusco", "elias", "finch"],
        "shaw": ["elias", "reese", "fusco", "finch"],
        "groves": ["reese", "fusco", "elias", "finch"],
        "morgan": ["finch", "fusco", "elias", "reese"]
    }
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/matching/StableMarriageAlgorithm/0.1.2