×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Advertisement


What happens if adding an edge creates a cycle in the spanning tree?

15. What happens if adding an edge creates a cycle in the spanning tree?

  1. The edge is added to the spanning tree
  2. The algorithm restarts
  3. The edge is discarded
  4. The edge's weight is increased

Answer

The correct answer is: C) The edge is discarded

Explanation

If an edge creates a cycle in the spanning tree, it is discarded to ensure the tree remains acyclic.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.