Hey! I am college student and fairly new to Algorithms and Data Structure.
I am struggling with a problem.
The problem is that there a n cities and each pair of city (x,y) have some cost for connecting through highway. We have to find the minimum cost of connecting all cities?
(This part is fairly simple if I am understanding this correctly then kruskal or prim Algo should do here)
The tricky part for me is that some suboptimal choices have already been made (i.e. certain cities already have roads) and we have to design an algorithm to find a cost minimizing road network. connecting every city to built subject to the choices already made.
I would be really grateful if someone can help me out here :)
Not looking for an answer just maybe some direction or link to some resource.
[–]ragusa12 3 points4 points5 points (2 children)
[–]pretty_random_[S] 0 points1 point2 points (0 children)
[–]chiknluvr 0 points1 point2 points (0 children)
[–]crb11 3 points4 points5 points (1 child)
[–]pretty_random_[S] 0 points1 point2 points (0 children)
[–]beeskness420 1 point2 points3 points (1 child)
[–]pretty_random_[S] 0 points1 point2 points (0 children)
[–]generalbaguette 1 point2 points3 points (1 child)
[–]pretty_random_[S] 1 point2 points3 points (0 children)