Graph Theory: GATE CS Previous Year Questions

Graph Theory · Discrete Mathematics

86 questions · asked in 25 of 27 years (2000–2026)

MCQ 59 · MSQ 9 · NAT 181-mark 55 · 2-mark 31

2000Questions per year2026

Questions 66–70 of 86

Q66GATE 20061 markMCQ−0.33 if wrong
Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G=(V,E) with |V| divisible by 3 and DHAM3 be the problem of determining if a Hamltonian cycle exists in such graphs. Which one of the following is true?

Q67GATE 20051 markMCQ−0.33 if wrong
A sink in a directed graph is a vertex i such that there is an edge from every vertex j≠ij \neq i to i and there is no edge from i to any other vertex. A directed graph G with n vertices is represented by its adjacency matrix A, where A[i] [j] = 1 if there is an edge directed from vertex i to j and 0 otherwise. The following algorithm determines whether there is a sink in the graph G.
 i = 0;
do {
    j = i + 1;
    while ((j < n) && E1) j++;
    if (j < n) E2;
} while (j < n);
flag = 1;
for (j = 0; j < n; j++)
    if ((j != i) && E3) flag = 0;
if (flag) printf("Sink exists") ;
else printf ("Sink does not exist");

Choose the correct expression for E3E_3.

Q68GATE 20051 markMCQ−0.33 if wrong
A sink in a directed graph is a vertex i such that there is an edge from every vertex j≠ij \neq i to i and there is no edge from i to any other vertex. A directed graph G with n vertices is represented by its adjacency matrix A, where A[i] [j] = 1 if there is an edge directed from vertex i to j and 0 otherwise. The following algorithm determines whether there is a sink in the graph G.
 i = 0;
do {
    j = i + 1;
    while ((j < n) && E1) j++;
    if (j < n) E2;
} while (j < n);
flag = 1;
for (j = 0; j < n; j++)
    if ((j != i) && E3) flag = 0;
if (flag) printf("Sink exists") ;
else printf ("Sink does not exist");

Choose the correct expressions for E1E_1 and E2E_2.

Q69GATE 20051 markMCQ−0.33 if wrong
In a depth-first traversal of a graph G with n vertices, k edges are marked as tree edges. The number of connected components in G is

Q70GATE 20051 markMCQ−0.33 if wrong
Let G be a simple graph with 20 vertices and 100 edges. The size of the minimum vertex cover of G is 8. then, the size of the maximum independent set of G is:

Keep practising

Topics in Discrete Mathematics

All CS topics ›