GATE CSE Graph Algorithms & P/NP Completeness – Algorithms Practice Test | Set 1

Questions 1-5 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 1

MCQ · Single Correct 2 mark

In a Depth-First Search (DFS) on a directed graph, an edge (u, v) is classified as a BACK EDGE if and only if:

Answers for question 1

Question 2

MCQ · Single Correct 2 mark

Which graph traversal algorithm can be used to find the shortest path in an UNWEIGHTED graph from a single source vertex to all other vertices?

Answers for question 2

Question 3

MCQ · Single Correct 2 mark

Topological Sorting is possible if and only if the directed graph is:

Answers for question 3

Question 4

MCQ · Single Correct 2 mark

What is the time complexity of Kosaraju's algorithm for finding all Strongly Connected Components (SCCs) of a directed graph $G = (V, E)$?

Answers for question 4

Question 5

MCQ · Single Correct 2 mark

In Tarjan's algorithm for Strongly Connected Components, what do low-link values (low[u]) represent?

Answers for question 5
Scroll to Top