We model Northeastern's network routers using an undirected graph G = (V, E) where the vertices...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We model Northeastern's network routers using an undirected graph G = (V, E) where the vertices are the routers and the edges are the potential connections to be installed between the routers. Some potential connections are underground while some potential connections are above ground. We would like to connect the routers so that data can be sent from any router to any other router using as few connections as possible. However, there are disagreements in the team. Alice would like to build the network using as few underground connections as possible whereas Bob would like to use as many underground connections as possible. (a) Give an algorithm to find the network Alice wants. For full credit, your algorithm should run in 0(m +n) time or O((m +n)logn) time. Solution: (b) Give an algorithm to find the network Bob wants. For full credit, you can either give an algorithm with O(m + n) or O((m+n)log n) time, or describe how to use the algorithm in part (a) to solve this part. Solution: (c) Suppose that Alice's solution T₁ has a underground connections while Bob's solution T₂ has b underground connections. To mediate the team, Charlie picks a number x in between (a ≤ x ≤ b) and would like to get a solution with exactly x underground connections. Give an algorithm to find the network Charlie wants starting from Alice's and Bob's solutions and its running time. Hint: start from T₁ and try to increase the number of underground connections by swapping in underground connections in T₂\T₁ for appropriate connections in T₁ T₂ (just a reminder, the set A\ B consists of all elements in A but not in B) Solution: We model Northeastern's network routers using an undirected graph G = (V, E) where the vertices are the routers and the edges are the potential connections to be installed between the routers. Some potential connections are underground while some potential connections are above ground. We would like to connect the routers so that data can be sent from any router to any other router using as few connections as possible. However, there are disagreements in the team. Alice would like to build the network using as few underground connections as possible whereas Bob would like to use as many underground connections as possible. (a) Give an algorithm to find the network Alice wants. For full credit, your algorithm should run in 0(m +n) time or O((m +n)logn) time. Solution: (b) Give an algorithm to find the network Bob wants. For full credit, you can either give an algorithm with O(m + n) or O((m+n)log n) time, or describe how to use the algorithm in part (a) to solve this part. Solution: (c) Suppose that Alice's solution T₁ has a underground connections while Bob's solution T₂ has b underground connections. To mediate the team, Charlie picks a number x in between (a ≤ x ≤ b) and would like to get a solution with exactly x underground connections. Give an algorithm to find the network Charlie wants starting from Alice's and Bob's solutions and its running time. Hint: start from T₁ and try to increase the number of underground connections by swapping in underground connections in T₂\T₁ for appropriate connections in T₁ T₂ (just a reminder, the set A\ B consists of all elements in A but not in B) Solution:
Expert Answer:
Answer rating: 100% (QA)
With a small tweak you may apply Kruskals algorithm to identify the network that Alice wants which r... View the full answer
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these computer network questions
-
A portfolio has a standard deviation of 25%. The correlation of the portfolio and the market is 1. If the risk-free rate is 3.2%, the expected return on the market portfolio is 11%, and the standard...
-
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...
-
For an undirected graph G = (V, E) a subset of I of V is called independent when no two vertices in I are adjacent. If, in addition, I ª {x} is not independent for each x V - I, then we say that...
-
Compare and contrast megaloblastic anemia caused by vitamin B12 deficiency and that caused by folic acid deficiency. (10)
-
Suppose that for a certain city the cost C, in dollars, of obtaining drinking water that contains p percent impurities (by volume) is given by C = 120,000 / p - 1200 (a) Find the rate of change of...
-
Record the following transactions in the journal of Birds Eye Music. Explanations are not required. Use 360-day year for interest computation. 2011 Dec 6 Received a $4,000, 90-day, 9% note on account...
-
Western Meat Processing Company buys and processes livestock for sale to supermarkets. In connection with the examination of the company's financial statements, you have prepared the following notes...
-
A decade ago, five firms supplied amateur color film in the United States: Kodak, Fuji, Konica, Agfa, and 3M. From a technical viewpoint, there was little difference in the quality of color film...
-
Problem 2 MPa. stress 2 n A = 20 000 mm tw = 18 mm bf = 320 mm tf = 12 mm |= 1569 10 "mm 4 d = 500 mm E = = 200 000 MP a Compute the moment of inertia of the composite beam. Compute the section...
-
Freddy Frolic consumes only asparagus and tomatoes, which are highly seasonal crops in Freddys part of the world. He sells umbrellas for a living, which provides a fluctuating income depending on the...
-
If we use Trapezoidal rule to approximate f(1)dx then find the value of x-, where n= 6 Select one: a. 0 b. 5 2x C. d.
-
Derive the formula for torque transmitted by a cone clutch assuming uniform wear.
-
(LO5) What is a specified service business activity?
-
Jai Investment and Finance Ltd. had acquired 3,000 shares of Gabbar and Sambha Ltd. in September 2004. They were being carried in the 31-03-2006 balance sheet at Rs. 17,85,000. Gabbar and Sambha Ltd....
-
Contender Oil Corporation obtained shooting rights only for $10,000 on 5,000 acres owned by Mr. See. Contender also obtained shooting rights coupled with an option to lease for $12,000 on 4,000 acres...
-
Insight Partners created a SPAC with units priced at \($10\) share. Each unit consists of 1 share of common stock plus a 3/10ths of a warrant with a strike price of \($11.50\). Insight issued 10...
-
The average price of a kilogram of rice is 35 across different stores and the standard deviation is 5.50. One store sells a kilogram for 45, convert this price into a z-score.
-
Representative data read from a plot that appeared in the paper Effect of Cattle Treading on Erosion from Hill Pasture: Modeling Concepts and Analysis of Rainfall Simulator Data (Australian Journal...
-
Simplify the following Boolean expressions. (a) xy + (x + y) + y (c) yz + wx + z + [wz(xy + wz)] x y+ y +z)
-
A carnival game invites a player to select one card from a standard deck of 52 cards. If the card is a seven or a jack the player is given five dollars. For a king or an ace the player is given eight...
-
For n ¥ 0, let m = [(n + 1)/2]. Prove that Fn+2 = (You may want to look back at Examples 9.17 and 10.11.) - . n-k k-D1)
-
True or False. The Euler-Bernoulli beam theory is more accurate than the Timoshenko theory.
-
Fixed end spring force a. Bending moment \(=0\); shear force equals the b. Deflection \(=0\); slope \(=0\) c. Deflection \(=0\); bending moment \(=0\) d. Bending moment \(=0\); shear force \(=0\)
-
Fill in the Blank. The Timoshenko beam theory can be considered as __________ beam theory.
Study smarter with the SolutionInn App