GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - finn-nerd/cop4533-gale-shapley

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
images
images
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
data_helpers.py
data_helpers.py
 
 
gale_shapley.py
gale_shapley.py
 
 
scalability.py
scalability.py
 
 
verifier.py
verifier.py
 
 

Repository files navigation

Programming Assignment 1: Matching and Verifying

COP4533

Students: Finn Walker (UFID: 11388586) and Sara Lin (UFID: 49424527)

Structure of Repository

data (contains the example input/output files to run)
    example.in
    example.out

images (contains the graph and solution images for Task C)
    Task_C_Graph.png
    Task_C_Solution.png

data_helpers.py (helper functions to parse/pack the input/output and generate input/output files)

gale_shapley.py (the matcher)

verifier.py (the verifier)

scalability.py (creates the graphs for Task C)

README.md

To run the matcher:

  1. Run either command in the command line:
  • cat data/example.in | python gale_shapley.py
    • This will utilize our already made input file in the "data" folder and pass that into our matcher.
    • Replace with any valid input file you wish.
  • python gale_shapley.py
    • This will allow the user to manually type in the inputs to the matcher.
    • They will be given instructions prompted for the correct inputs.
    • Example user input:
      3
      1 2 3
      2 3 1
      2 1 3
      2 1 3
      1 2 3
      1 2 3

The pairings from the matcher should print in the command line. The pairings should match the "example.out" file in "data/example.out".

To run the verifier:

  • Run command:
    • python verifier.py
  • It will prompt the user for input method (.in file or manual input).
  • It will ask you to either provide pairings manually or use a .out file.
  • It will then validate the pairings.

To get the graph for runtimes of the matcher and verifier:

  • Run command:
    • python scalability.py

Assumptions

  • Have "python" already installed.
  • Have "matplotlib" already installed.
    • To install this, do:
      pip -m install matplotlib

Graph for Task C

Task C: Graph Based on the graphs, the runtimes grow similarly at n^2 time complexity.

Solution to Task C

Task C: Solution

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.