Stable Roommate Algorithm

A matching algorithm.

Algorithmia Platform License

Try the API

{
  "Sam": "Elise",
  "Charlie": "Paul",
  "Kelly": "Peter",
  "Elise": "Sam",
  "Paul": "Charlie",
  "Peter": "Kelly"
}

Install & Use

Use

curl -X POST -d '{
    "preferences": {
        "Charlie": ["Peter", "Paul", "Sam", "Kelly", "Elise"],
        "Peter": ["Kelly", "Elise", "Sam", "Paul", "Charlie"],
        "Elise": ["Peter", "Sam", "Kelly", "Charlie", "Paul"],
        "Paul": ["Elise", "Charlie", "Sam", "Peter", "Kelly"],
        "Kelly": ["Peter", "Charlie", "Sam", "Elise", "Paul"],
        "Sam": ["Charlie", "Paul", "Kelly", "Elise", "Peter"]
    }
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/matching/StableRoommateAlgorithm/0.1.1