Skip to content

Coding up some of the algorithms from Stanford's Econ 136 - Market Design

Notifications You must be signed in to change notification settings

QuantumArjun/Market_Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Market_Design

Coding up some of the algorithms from Stanford's Econ 136

Gale Shapley

Input the preferences of the two sides under preferences.json

Here is the format for the preferences:

{
    "left": {
        "1": {
            "ranking": "1, 2, 3"
        },
        "2": {
            "ranking": "1, 2, 3"
        },
        "3": {
            "ranking": "1, 2, 3"
        }
    },
  
    "right": {
        "1": {
            "ranking": "1, 2, 3"
          },
        "2": {
            "ranking": "1, 2, 3"
        },
        "3": {
            "ranking": "1, 2, 3"
        }
  }
}

To run Deferred Acceptance (also known as Gale-Shapley), run the following command to run the left proposing DA algorithm: python main.py --algorithm DA --proposing left

About

Coding up some of the algorithms from Stanford's Econ 136 - Market Design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages