Question: Question 2 : Spanning and Steiner trees ( a ) Prove or provide a counterexample to the following statement: If all arcs of a network
Question : Spanning and Steiner trees
a Prove or provide a counterexample to the following statement: If all arcs of a network have
distinct costs that is no two arc costs are equal then the network has a unique minimum
spanning tree.
b Consider the problem of the minimum cost spanning forest, in which the goal is to identify
trees that span all nodes of a network in the minimum cost. Recommend an approach to solve
this problem when is given in advance. Then, use networkx to code this approach and solve
the minimum cost spanning forest for in the network provided in the Les Misrables
graph nxlesmiserablesgraph Specifically, do the following: i create a network based
on the Les Misrables graph; ii find the weight of each edge; iii replace it with its reciprocal.
For example, Valjean and Cosette have a weight of so that should be replaced by This
way, you will ensure that your minimum cost spanning forest will identify trees that contain the
most closely related based on cooccurrence characters.
c Write code in networkx that reads the illinois.csv zip codes, randomly selects of them you
may try kin and then returns the minimum cost Steiner tree connecting them.
You may assume the distances between two zip codes are the Haversine distance based on their
longitudes and latitudes. You may also assume that we may only connect two zip codes by an
edge if the distance between them is below units.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
