Topics in Graph Theory and Graph Algorithms

Filter by year

Graph Theory and Graph Algorithms questions

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…

0/20 correct0 marks

Related topics in Programming Data Structures and Algorithms