A network is a set of servers and a set of wires. Throughout the exercise, we...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A network is a set of servers and a set of wires. Throughout the exercise, we let S denote the number of servers and W the number of wires. Each server is identified by a unique integer in the range [0,S-1]. Each wire is a pair (x, y) of distinct servers and we say that x and y are wired. If x and y are wired then y and x are also wired. A link between two servers z and z, is a sequence of servers z,...,z, such that z; and 2+1 are wired for i = 1,...,j-1. For example the sets {0,1,2,3,4,5} and {(0, 1), (0,3), (0, 4), (1, 2), (2, 3), (2, 4), (3, 5), (4,5)} is a network with 6 servers and 8 wires. The sequence 2, 3,0 is a link between server 2 and server 0. 3.1 (2%) Describe how to model a network as a graph Solution: 3.4 (18%) The group of hackers now find a way to efficiently hack wires. If a wire (x, y) is hacked the wire disappears from the network, but the servers x and y at the endpoints are unaffected. We want to invest in protection for some of the wires such that even if the unprotected wires are hacked the network remains linked. We associate to each wire (x, y) a protection cost, denoted p(x, y), that indicates the cost of protecting the wire from hacking. A minimal wire set is a subset of wires X such that the network is linked and the sum of the protection cost of the wires in X is minimal. Give an algorithm that computes a minimal wire set given a network. Argue correctness of your algorithm. Analyze the running time of your algorithm in the relevant parameters of the problem. Solution: A network is a set of servers and a set of wires. Throughout the exercise, we let S denote the number of servers and W the number of wires. Each server is identified by a unique integer in the range [0,S-1]. Each wire is a pair (x, y) of distinct servers and we say that x and y are wired. If x and y are wired then y and x are also wired. A link between two servers z and z, is a sequence of servers z,...,z, such that z; and 2+1 are wired for i = 1,...,j-1. For example the sets {0,1,2,3,4,5} and {(0, 1), (0,3), (0, 4), (1, 2), (2, 3), (2, 4), (3, 5), (4,5)} is a network with 6 servers and 8 wires. The sequence 2, 3,0 is a link between server 2 and server 0. 3.1 (2%) Describe how to model a network as a graph Solution: 3.4 (18%) The group of hackers now find a way to efficiently hack wires. If a wire (x, y) is hacked the wire disappears from the network, but the servers x and y at the endpoints are unaffected. We want to invest in protection for some of the wires such that even if the unprotected wires are hacked the network remains linked. We associate to each wire (x, y) a protection cost, denoted p(x, y), that indicates the cost of protecting the wire from hacking. A minimal wire set is a subset of wires X such that the network is linked and the sum of the protection cost of the wires in X is minimal. Give an algorithm that computes a minimal wire set given a network. Argue correctness of your algorithm. Analyze the running time of your algorithm in the relevant parameters of the problem. Solution:
Expert 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 computer network questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
List the key principles of the six Sigma philosophy. How does it differ from TQM?
-
To preconcentrate cocaine and benzoylecgonine from river water at the opening of this chapter, solid-phase extraction was carried out at pH 2 using the mixed-mode cation exchange resin in Figure...
-
Demand in each period follows the same normal distribution (i.e., there is one demand distribution that represents demand in any single period). Assuming demand is independent across periods, which...
-
An explosion in an LNG storage tank in the process of being repaired could have occurred as the result of static electricity, malfunctioning electrical equipment, an open flame in contact with the...
-
Toxaway Telephone Company has a $1,000 par value bond outstanding that pays 6 percent annual interest. If the yield to maturity is 8 percent, and remains so over the remaining life of the bond, the...
-
a)Name and explain the major Components of a production system E D (6 marks) A 1 B 3 4 4 C Figure 2: Transversing a graph of a travelling salesman b) Use the nearest neighbour heuristic to find the...
-
Will our awareness of connectedness generate a positive dynamic shift, or will personal greed & technology advances further separate and diminish the people focus?
-
Does a plaintiff have to be aware of a battery when it occurs?
-
Discovery-related motions include a. motions for summary judgment. b. motions to compel. c. motions alleging improper venue. d. all of the above.
-
What are the four elements of a complaint?
-
At a jury trial all ____________ issues are decided by the jury and all ____________ are decided by the judge. At a(n) ____________ trial the judge decides both factual and legal issues.
-
At the same time they file an answer, a defendant can file a(n) ____________ alleging lack of jurisdiction over the person or subject matter.
-
Please explain why the following are true/false: 1. The value of R-squared represents the unexplained variation for a regression equation. True or False. 2. In regression, a two-tailed p-value test...
-
DC has unused FTC carryover from 2017 in the separate category for GC income as the result of income generated by a foreign branch. The income was foreign source general category income. In 2018 the...
-
In problem 49, when does the estate's taxable year end? problem 49, John Henry died on May 1, 2018. When does his final 1040 have to be filed?
-
John Henry died on May 1, 2018. When does his final 1040 have to be filed?
-
John and Mary Hughes file their income tax return on a calendar year basis. John dies on May 15, 2018. Mary remarries on July 4, 2018. Can Mary file a joint return with John for the taxable year 2018?
Study smarter with the SolutionInn App