Topics in Graph Theory and Graph Algorithms

Filter by year

Graph Theory and Graph Algorithms questions

Q40

GATE DA 2026 DAGraph Theory and Graph AlgorithmsMCQ2 marks−2/3 if wrong

Report a problem with Q40

What is wrong?
Consider a directed graph G=(V,E)G = (V, E), where VV is the finite set of vertices and EE is the set of directed edges between the vertices. GG may contain cycles but there is no self-loop. Further, GG may not be strongly connected.
Let GRG^R be the graph obtained by reversing the directions of all the edges in GG without changing the set of vertices.
Assume that Breadth First Search (BFS) or Depth First Search (DFS) from any given vertex vv of a graph visits only the reachable vertices from vv in that graph.
Which of the following statements must always be true, regardless of the structure of GG?
Show answer without attempting

Loading the answer…

Q58

GATE DA 2025 DAGraph Theory and Graph AlgorithmsMSQ2 marks

Report a problem with Q58

What is wrong?
Let GG be a simple, unweighted, and undirected graph. A subset of the vertices and edges of GG are shown below.

It is given that a−b−c−da - b - c - d is a shortest path between aa and dd; e−f−g−he - f - g - h is a shortest path between ee and hh; a−f−c−ha - f - c - h is a shortest path between aa and hh. Which of the following is/are NOT the edges of GG?
Question figure
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q65

GATE DA 2025 DAGraph Theory and Graph AlgorithmsNAT2 marks

Report a problem with Q65

What is wrong?
Consider a directed graph G=(V,E)G = (V, E), where V={0,1,2,…,100}V = \{0, 1, 2, \ldots, 100\} and E={(i,j):0<j−i≤2,for all i,j∈V}E = \{(i, j) : 0 < j - i \le 2, \text{for all } i, j \in 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)
Show answer without attempting

Loading the answer…

Q14

GATE DA 2024 DAGraph Theory and Graph AlgorithmsMCQ1 mark−1/3 if wrong

Report a problem with Q14

What is wrong?
Consider performing depth-first search (DFS) on an undirected and unweighted graph GG starting at vertex ss. For any vertex uu in GG, d[u]d[u] is the length of the shortest path from ss to uu. Let (u,v)(u, v) be an edge in GG such that d[u]<d[v]d[u] < d[v]. If the edge (u,v)(u, v) is explored first in the direction from uu to vv during the above DFS, then (u,v)(u, v) becomes a ______ edge.
Show answer without attempting

Loading the answer…

Q51

GATE DA 2024 DAGraph Theory and Graph AlgorithmsMSQ2 marks

Report a problem with Q51

What is wrong?
Consider the directed acyclic graph (DAG) below:

Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?
Question figure
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/50 correct0 marks

Related topics in Programming Data Structures and Algorithms