Jump to content

Recommended Posts

Posted

I need help in design algoritem that check for a given Graph if a minimal spanning tree exist without a specific edge.

Mean that for the original graph you find a minimal spannig tree and that spanning tree not include the edge and it is minimal spanning tree of the graph that do include the edge.

The algorithm must run in O(|V| + |E|) when V - vertics and E - edge

 

 

Thank for any help!

Posted

Have you looked at Dijkstra's minimal spanning tree algorithm? There are others as well. You don't need to design an algorithm. This problem has been solved many times before.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.