Question
Which traversal method is most suitable for finding
connected components in an undirected graph?Solution
Depth-First Search (DFS) is ideal for finding connected components in an undirected graph. Starting from an unvisited vertex, DFS explores all reachable vertices, marking them as visited. Each DFS call identifies one connected component, and the process is repeated for all unvisited vertices. Steps: 1. Initialize all vertices as unvisited. 2. Perform DFS from each unvisited vertex. 3. Each DFS traversal marks a connected component. DFS is efficient, with a time complexity of O(V+E), making it well-suited for sparse and dense graphs. Why Other Options Are Incorrect: 1. BFS: Can also find connected components but requires more memory due to queue-based implementation. 2. Topological Sort: Applies to Directed Acyclic Graphs (DAGs) and does not determine connected components. 3. Dijkstra’s Algorithm: Finds shortest paths, not connected components. 4. Floyd-Warshall Algorithm: Computes all-pairs shortest paths, unsuitable for this task.
With amortized loans, such as a mortgage, which of the following statements is correct?
The process of finding present value of a future amount is called:
The first Annual General Meeting of the company shall be held ______________
Interest coverage ratio can be numerically expressed in the form of the following equation:-
Which among the following profitability level is the profit from which the fixed costs are to recovered first to arrive at the profit?
An unfavourable material usage arises because of:
The appointment of a Statutory Auditor in a company is done by:
______ of the Companies Act, 2013 deals with the Powers and Duties of Auditors and Auditing Standards.
In amalgamation in the nature of merger, which method is used?
As per the Master Circular on Management of Advances – UCBs, for borrowers (other than MSEs) requiring fund-based working capital up to ₹1 crore and...