Question

1. What is the definition of a safe edge for the minimum spanning tree algorithm? 2....

1. What is the definition of a safe edge for the minimum spanning tree algorithm?

2. Give an example graph with 4 nodes and 5 edges with exactly three strongly connected components.

3. What is the running time of the Kruskal spanning tree algorithm on a graph with n nodes and n log n edges?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

A safe edge is am edge that may be added to a tree T without violating the invariant that T is a subset of some minimum spanning tree.

2)

3)

Kruskal Algorithm runs in O(E log V) time.

In this case, E = log n and V = n

Hence, total running time = O(log2n)

Add a comment
Know the answer?
Add Answer to:
1. What is the definition of a safe edge for the minimum spanning tree algorithm? 2....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT