Question
Which data structure is used in Primās Algorithm to
efficiently find the minimum edge connecting a vertex to the spanning tree?Solution
In Primās Algorithm, a Min-Heap (Priority Queue) is used to efficiently find and extract the minimum-weight edge connecting a vertex to the existing spanning tree. The Min-Heap allows quick updates to edge weights and ensures that the minimum-weight edge can be retrieved in O(logā”V) time, where V is the number of vertices. Steps: ⢠Initialize a Min-Heap with all vertices, starting with an arbitrary vertex having weight 0. ⢠Update the heap when shorter edges are discovered. ⢠Extract the vertex with the minimum edge weight, adding it to the Minimum Spanning Tree (MST). This data structure optimizes the algorithm's overall complexity to O(Elogā”V), making it suitable for dense graphs. Why Other Options Are Incorrect: 1. Binary Search Tree: Inefficient for handling dynamic updates and retrieval of minimum elements. 2. Adjacency List: Represents graph structure but does not facilitate edge selection. 3. Adjacency Matrix: Useful for graph representation but inefficient for edge extraction in MST. 4. Disjoint Set: Used in Kruskalās Algorithm to detect cycles, not for edge selection in Primās Algorithm. Min-Heaps are integral to Primās efficiency in handling dynamic graph traversal during MST construction.
INDIA’S first payments Bank is?
What is the primary purpose of the Indian International Maritime Dispute Resolution Centre (IIMDRC)?
- When will BHIM 3.0 become fully available across users and platforms?
Who became Indiaās third-highest run-scorer in ODIs as of October 2025?
Which instrument from Varanasi recently received the Geographical Indication (GI) tag?
Kabaddi was introduced for the first time for promotional purposes as a demonstration sport in Olympic games in which year?
How much of an export target has been set by APEDA for the current fiscal year (2022-23)?
Which vaccine has been permitted by DAHD for use against Bird Flu outbreaks in India?
Consider the following statements about Garba dance:Ā
1.Ā Ā Ā Recently, Garba has been inscribed in the Representative List of Intangible Cultu...
At what age did Anish Sarkar become the youngest rated chess player in history?