Question: I need c,d,e,f how to run and plot it 6 5 PD Homework1-Spring2021 x P 01DemoGaleShapley.pdf PD 01StableMatching.pdf Homework1-Spring 2020.pd + V - 0 X

 I need c,d,e,f how to run and plot it 6 5

I need c,d,e,f how to run and plot it

6 5 PD Homework1-Spring2021 x P 01DemoGaleShapley.pdf PD 01StableMatching.pdf Homework1-Spring 2020.pd + V - 0 X file:///F:/driveF/Dayton/SPRING%202020/Algorithm%20Design/Homework1-Spring2020.pdf 1. Implement Gale-Shapley Algorithm for computing Stable Marriage Assignment in any language, such as Python, Java, C++ or MATLAB, using the approach and data structures described in the first two Chapters of the Kleinberg and Tardos text. The input file should include number of subjects, n, preference list for men and women one line for each. mi: w11, W12, ..., Win mn: Wni, Wn2, ..., Wan wi: mii, M12, ..., Min Wni mny, mn2, ---, mnn a) Write a function to create preference lists for men and women. Function should take number of men (women), say n, create preferences and output them. b) Write the output, explicitly checking to see that it is a stable match (It requires a separate function to check). Turn in sample inputs and corresponding outputs in separate files. c) Run the algorithm on several instances of the problem for n= 10 with different input files and plot the variation in the running time. d) Run the algorithm on several instances of the problem for n = 10 with the same input file and plot the variation in the running time. e) Run the algorithm on problem instances with n= 10, 15, 20, 50, 100, and plot the average running time as a function of the problem input size (n). f) Run the algorithm on several instances of the problem for n = 10 with the same input file, let a different man start proposing and output the matches. O Type here to search w on - 0) ENG US 22:21 23-02-2020 6 5 PD Homework1-Spring2021 x P 01DemoGaleShapley.pdf PD 01StableMatching.pdf Homework1-Spring 2020.pd + V - 0 X file:///F:/driveF/Dayton/SPRING%202020/Algorithm%20Design/Homework1-Spring2020.pdf 1. Implement Gale-Shapley Algorithm for computing Stable Marriage Assignment in any language, such as Python, Java, C++ or MATLAB, using the approach and data structures described in the first two Chapters of the Kleinberg and Tardos text. The input file should include number of subjects, n, preference list for men and women one line for each. mi: w11, W12, ..., Win mn: Wni, Wn2, ..., Wan wi: mii, M12, ..., Min Wni mny, mn2, ---, mnn a) Write a function to create preference lists for men and women. Function should take number of men (women), say n, create preferences and output them. b) Write the output, explicitly checking to see that it is a stable match (It requires a separate function to check). Turn in sample inputs and corresponding outputs in separate files. c) Run the algorithm on several instances of the problem for n= 10 with different input files and plot the variation in the running time. d) Run the algorithm on several instances of the problem for n = 10 with the same input file and plot the variation in the running time. e) Run the algorithm on problem instances with n= 10, 15, 20, 50, 100, and plot the average running time as a function of the problem input size (n). f) Run the algorithm on several instances of the problem for n = 10 with the same input file, let a different man start proposing and output the matches. O Type here to search w on - 0) ENG US 22:21 23-02-2020

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!