GATE DA 2025 · Question 65 · Programming, Data Structures and Algorithms · Numerical answer (NAT) · 2 marks · no negative marks

Consider a directed graph G = (V, E), where V = {0, 1, 2, …, 100} and E = {(i, j) : 0 < j - i ≤ 2, for all i, j ∈ V}. Suppose the adjacency list of each vertex is in decreasing order of vertex number, and depth-first search (DFS) is performed at vertex 0. The number of vertices that will be discovered after vertex 50 is ______ (Answer in integer)

Answer

Answer 75

Answer from the official GATE DA 2025 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes