Start learning 50% faster. Sign in now
Get Started with ixamBee
Start learning 50% faster. Sign in nowIn 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(logV) 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(ElogV), 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.
Under section 194D of the Income Tax Act, 1961, what is the rate of Tax Deducted at Source (TDS) on insurance commission, if the payee is a domestic com...
If a firm’s interest coverage ratio falls from 6x to 2x over a year, it indicates:
From the following information calculate the amount of sales to earn a desired profit of Rs.12,000
Fixed Cost: 24,000
Selling Price: ...
According to ISA 500, the strength of audit evidence is determined by which two qualities?
How can we find out the Net Realizable Value on account of Inventory as per the applicable Accounting Standard for valuation of Inventory?
Government audit is conducted by the department maintained by government of India is known as:
A company takes office space on a 5-year lease. As per Ind AS 116, what should be recognized in books at commencement?
A company purchases machinery for ₹10 lakhs and incurs ₹1 lakh on its installation. The accountant records the total ₹11 lakhs under the fixed ass...
As per recently published data of PIB related to 31st March 2023, How much Gross Merchandise Value (GMV) GeM has recorded in FY 2022-23?