In class we proved that the runtime of the Gale-Shapely algorithm is O(n). In this question...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In class we proved that the runtime of the Gale-Shapely algorithm is O(n²). In this question you will prove that this bound is tight. That is, that there is a matching (n²) lower bound - there exists c, no > 0 such that for all n ≥ no, there is an instance of Stable Matching with n people and n supervisors such that the runtime of the Gale-Shapely algorithm on this algorithm takes time at least cn². (a) (7pts) Let n be an arbitrary integer which is at least no. Describe an instance of Stable Matching (that is, a list of preferences) which requires the Gale-Shapely algorithm time at least cn². Hint. Think about what would cause the Gale-Shapely algorithm to un-match each person a large number of times. 1 (b) (8pts) Prove that the instance that you described in (a) requires time cn². In class we proved that the runtime of the Gale-Shapely algorithm is O(n²). In this question you will prove that this bound is tight. That is, that there is a matching (n²) lower bound - there exists c, no > 0 such that for all n ≥ no, there is an instance of Stable Matching with n people and n supervisors such that the runtime of the Gale-Shapely algorithm on this algorithm takes time at least cn². (a) (7pts) Let n be an arbitrary integer which is at least no. Describe an instance of Stable Matching (that is, a list of preferences) which requires the Gale-Shapely algorithm time at least cn². Hint. Think about what would cause the Gale-Shapely algorithm to un-match each person a large number of times. 1 (b) (8pts) Prove that the instance that you described in (a) requires time cn².
Expert Answer:
Answer rating: 100% (QA)
a To create an instance of Stable Matching that requires the GaleShapely algorithm to take time at l... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these algorithms questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
EnviroSpecialists is an environmental engineering company that provides assessments of the effect of new construction and proposed development on the surrounding landscape. Customers include large...
-
On January 1, 2014, Iron Mountain Ski Corporation purchased a new snow-grooming machine for $50,000. The machine is estimated to have a 10-year life with a $2,000 salvage value. What journal entry...
-
Assume that the following graph illustrates the market for a breast cancer-fighting drug, without which breast cancer patients cannot survive. What is the consumer surplus in this market? How does it...
-
Do Prob. 10.8-1. The Tinker Construction Company is ready to begin a project that must be completed in 12 months. This project has four activities (A, B, C, D) with the project network shown next....
-
1. Describe "intangible" assets. 2. Is it possible for working capital to be negative? Retained earnings? Why? 3. The liquidity of assets is important to creditors. Does the liquidity of assets...
-
Dorsey Company manufactures three products from a common input in a joint processing operation. Joint processing costs up to the split-off point total $350,000 per quarter. For financial reporting...
-
4) (10 pts) Write a script that will prompt the user for a distance in miles, and then a 'K' for kilometers or 'M' for meters. The script will convert and print the corresponding distance in the...
-
Assume that Chapman Company acquired Abernethy's common stock for $490,000 in cash. As of January 1, 2017, Abernethy's land had a fair value of $90,000, its buildings were valued at $160,000, and its...
-
The following information for Urbanski Corporation relates to the three months ending June 30, 2018: Units Price per unit Beginning inventory 11,000 $ 10 Purchases 75,000 $ 16 Sales 80,000 $ 25...
-
In an isolated environment, a positive charge (QA) is released so that it is free to move near a fixed position positive charge qB. As q moves away from qB, what is true of qA's motion? As it moves,...
-
Two spheres A and B of same size are placed in a box as shown. What is the force exerted by B on A when the mass of the sphere, m = 10 kg and radius, r = 100 mm? A What is the downward reaction force...
-
a) If 0 = 0o rad, and de/dt = 0o rad/s, what is the velocity of P relative to O? b) If = 1.2 rad, de/dt = -1.5 rad/s, and d0/dt 0 rad/s2 what is the velocity and acceleration of P relative to O? = 04...
-
Air in a cylinder is compressed slowly so that the temperature does not rise. The pressure changes from 2.0 x 105 Pa to 5.0 x 105 Pa. The original volume was 0.35 m. Calculate the new volume.
-
There is a charged particle with a mass m and a charge q, which moves in a circular motion with a velocity v in a uniform magnetic field. (a) Find the magnitude of the magnetic flux density B. (b)...
-
Ms.Mona is the headmistress of a high school. She wants to design an application so that she can maintain the student's data in the database. She wants to perform various operations like insert,...
-
For the vector whose polar components are (Vr = 1, Vθ = 0), compute in polars all components of the second covariant derivative Vα;μ;ν. To find...
-
Suppose we perform a sequence of n operations on a data structure in which the i th operation costs i if i is an exact power of 2, and 1 otherwise. Use aggregate analysis to determine the amortized...
-
Argue that for any integers n ? 0, j ? 0, k ? 0, and j + k ? n,? Provide both an algebraic proof and an argument based on a method for choosing j + k items out of n. Give an example in which equality...
-
Consider a sequence of?n?Bernoulli trials, where in the?i?th trial, for?i?=?1, 2, . . . ,n, success occurs with probability?pi?and failure occurs with probability?q i = 1 ? p i . Let X be the random...
-
Online purchases are commonly governed by a sales contract between the online merchant and the consumer in the terms of use found as a link on the sellers home page. Often, purchasers are informed...
-
Zapata, a Texas company, entered into a contract for Unterweser, a German company, to tow an oil-drilling rig from Louisiana to Italy. The contract stated, Any dispute arising must be treated before...
-
Aangi sends Anil a purchase order stating that only her terms apply and that in the event of a dispute between the parties in connection with the transaction, the dispute will be submitted to...
Study smarter with the SolutionInn App