Continue with your mobile number
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.
Statements: M ≤ N = O ≤ P; P = Q ≤ U; R > N = U
Conclusions:
I. R > O
II. U ≥ M
Statements: M * P $ C + D; I + F; I & C * K
Conclusions:
I. P + F
II. D * K
III. K + M
Statements: D ≤ R < E = F, W = B > A ≥ F
Conclusions:
I. E = W
II. D < B
In the question assuming the given statements to be true, find which of the conclusion(s) among given four conclusions is/are definitely true and then ...
Statements: T = S, U ≤ V, P < K, U ≤ K, V > S
Conclusion:
I. S ≥ U
II. S < U
Statement: E ≤ F; E ≤ H; F = P; H < S
Conclusion:
I. S ≤ F
II. P ≥ S
Statement: O ≤ Q, Q ≥ A, A > I, I = D
Conclusion: I. Q > D II. A > D
Statements: M % N, N & A, A @ B, B # C
Conclusions: I. C & A II. M # B
...Statement: H > G = M > S; G `>=` T > L; M `<=` F < U
Conclusion: I. F > S II. T < H
...Statements:Q ≥ R,R < S,S < T
Conclusions: I. T > R II. Q ≥ T