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

  How would you show an input mask for a serial number

In MS Access, how would you show an input mask for a serial number that had 5 letters followed by 7 numbers? No dashes or any other characters.

  Explain the major concepts behind computers

Address the following below in at least 20 slides powerpoint or more, you must include as a minimum an introduction, body, summary/conclusion, and notes pages. It is important that you follow APA formatting guidelines and site your references ..

  Search and seizure of computers

search and seizure of computers

  Write a tutorial which consists of detailed instructions

Write a tutorial which consists of detailed instructions on the use of an IP related topic (e.g., IP addressing scheme, IP routing protocols, various IP technologies, and many more) that you think important or interesting.

  Binary scientific notation

For IEEE 754 single precision floating point, what is the number, as written in binary scientific notation, whose hexadecimal representation is: 0061 0000

  For the purpose of this assignment you will have to recap

For the purpose of this assignment, you will have to recap your previous assignment (in 250 words) and then provide a well-researched and informed report to the CIO.

  Austraria or a major river in another country

students are to write a retter home to their parents expraining the water crises and arguing for or against the use of recycled water.GEOGRAPHY:

  What is the purpose of ping utility

What is the purpose of ping utility? Also describe its functionality with two different options? Try pinging two different sites and give summary of results in each case? What is difference between the ping and traceroute?

  Random functions to create data sets

Make your own data set. You can even use random functions to create data sets or use a data set that would be deemed appropriate for your application.

  Government imposes below-equilibrium price ceiling on market

If the government imposes the same below-equilibrium price ceiling on all these markets, which of the following statements will be true?

  Saas and cloud computing

SaaS and Cloud Computing

  What aspect of ip addresses makes it necessary

In light of your answer, why does IP tolerate point-to-point interfaces that have nonunique addresses or no addresses?

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