Graph Theory and Graph Algorithms: GATE DA Previous Year Questions

Graph Theory and Graph Algorithms · Programming, Data Structures and Algorithms

4 questions · asked in 3 of 3 years (2024–2026)

MCQ 1 · MSQ 2 · NAT 12-mark 4

2024Questions per year2026

Questions 1–4 of 4

Q1GATE 20262 marksMCQ−0.67 if 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 G?{G}?

Q2GATE 20252 marksMSQ
Let GG be a simple, unweighted, and undirected graph. A subset of the vertices and edges of GG are shown below.

abcd efgh

It is given that a−b−c−da - b - c - d is a shortest path between aa and d;e−f−g−hd; e - f - g - h is a shortest path between ee and h;a−f−c−hh; a - f - c - h is a shortest path between aa and hh. Which of the following is/are NOT the edges of GG?

One or more options are correct.

Q3GATE 20252 marksNAT
Consider a directed graph G=(V,E)G = (V, E), where V={0,1,2,...,100}V = \{0, 1, 2, ..., 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)

Q4GATE 20242 marksMSQ
Consider the directed acyclic graph (DAG) below:


PRQ SVUT
Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?

One or more options are correct.

Keep practising

Topics in Programming, Data Structures and Algorithms

All DA topics ›