Finding a spanning tree with minimum sum of arc weights

Assignment Help Basic Computer Science
Reference no: EM131122435

(Minimum Weight Spanning Trees) Given a graph (N , A) and a weight wij for each arc (i, j), consider the problem of finding a spanning tree with minimum sum of arc weights. This is not a shortest path problem and in fact it is not even a special case of the minimum cost flow problem. However, it has a similar graph structure to the one of the shortest path problem. Note that the orientation of the arcs does not matter here. In particular, if (i, j) and (j, i) are arcs, any one of them can participate in a spanning tree solution, and the arc having greater weight can be a priori eliminated.

(a) Consider the problem of finding a shortest path from node 1 to all nodes with arc lengths equal to wij . Give an example where the shortest path spanning tree is not a minimum weight spanning tree.

(b) Let us define a fragment to be a subgraph of a minimum weight spanning tree; for example the subgraph consisting of any subset of nodes and no arcs is a fragment. Given a fragment F, let us denote by A(F) the set of arcs (i, j) such that either i or j belong to F, and if (i, j) is added to F no cycle is closed. Show that if F is a fragment, then by adding to F an arc of A(F) that has minimum weight over all arcs of A(F) we obtain a fragment.

(c) Consider a greedy algorithm that starts with some fragment, and at each iteration, adds to the current fragment F an arc of A(F) that has minimum weight over all arcs of A(F). Show that the algorithm terminates with a minimum weight spanning tree.

(d) Show that the complexity of the greedy algorithm is O(NA), where N is the number of nodes and A is the number of arcs.

(e) The Prim-Dijkstra algorithm is the special case of the greedy algorithm where the initial fragment consists of a single node.

Provide an O(N2), implementation of this algorithm. Hint: Together with the kth fragment Fk, maintain for each j /∈ Fk the node nk(i) ∈ Fk such that the arc connecting j and nk(i) has minimum weight

Reference no: EM131122435

Questions Cloud

Explain what happens to the postmerger earnings : Explain what happens to the postmerger earnings per share figure when a company with a relatively high P/E ratio acquires a company with a lower P/E ratio, assuming that the exchange ratio is based on current stock market prices and no synergy exists..
How would the general anti-avoidance rule affect transaction : Over the past two years, your client, a lawyer in sole practice, has developed several software packages for the preparation of legal contracts. If tax is avoided, how would the general anti-avoidance rule affect the transactions?
What methods do financial analysts use to value merger : What methods do financial analysts use to value merger candidates? What are the limitations of each method?
What are some of the reasons why firms merge with other firm : What are some of the reasons why firms merge with other firms?
Finding a spanning tree with minimum sum of arc weights : Provide an O(N2), implementation of this algorithm. Hint: Together with the kth fragment Fk, maintain for each j /∈ Fk the node nk(i) ∈ Fk such that the arc connecting j and nk(i) has minimum weight
Prepare an accounts payable subsidiary ledger report : Prepare an accounts payable subsidiary ledger report (from the corrected accounts payable subsidiaryledger.
Difference between horizontal vertical conglomerate mergers : Discuss the differences between the following types of mergers: a. Horizontal mergers b. Vertical mergers c. Conglomerate mergers
Give the values of the population parameters : Consider a small population of N = 5 units, labeled 1, 2, 3, 4, 5, with respective y-values 3, 1, 0, 1, 5. Consider a simple random sampling design with a sample size n = 3.
Explain the process of preparing an operations budget : Explain the process of preparing an operations budget. Describe the budgeting control process and explain how significant variances are determined. What are the forecasted revenues for the month?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the decimal value

assume that the following 10 bit numbers represents sighned integers using sign/magnitude notation. the sign is the leftmost bit and the remaining 9 bits represent the magnitude. What is the decimal value for 100000000.

  How these metrics differ from that of existing manual system

Develop a set of EC metrics and discuss how these metrics differ from that of the existing manual system.

  Goals for the information technology strategic plan

Conduct a strengths, weaknesses, opportunities, and threats (SWOT) analysis for the business venture in question for the company - goals for the information technology strategic plan

  Describe how the processor computes the tag

Based on your results in parts (a) and (b), design and describe a simple routing scheme for distributed control of the Omega network. A message will carry a routing tag computed by the sending processor. Describe how the processor computes the tag..

  What is the total capacity of a track

What is the total capacity of a track, and what is its useful capacity (excluding interblock gaps)?

  Comment on the value of the constants associated

Comment on the value of the constants associated with this isoefficiency term

  What are the typical security classifications

Discuss the simple security property and the *-property, and explain the justification behind these rules for enforcing multilevel security.

  Write a house class that has the following properties

Total number of rooms ( calculated: number of bedrooms + formal dining room if present + 1 for kitchen)Number of baths (house can have any number of 1/2 bath or 1/4 of a bath in addition to a full bath - example 1.5, 1.75 or 1.25 bath)

  Write paper about video or computer games

Prepare a short research paper (275-300 words) about video or computer games

  Design a circuit to add 1 to a given n-bit number

What is the decimal value of the following IEEE 754 single-precision floating-point number?

  Describes the difference between an intranet and internet

Which of the following BEST describes the difference between an intranet and internet? Beginning in the upper left corner of a spread sheet, where would you look to find cell C6

  Establishing a crime-tracking database system

Based on the following memo, create a database design for the City Jail. TIP: Keep in mind that the memo is written from an end-user perspective - not by a database developer!

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd