GATE 2005 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 121–125 of 203

Q121Minimum Spanning Tree1 markMCQ−0.33 if wrong
Let s and t be two vertices in a undirected graph G=(V, E) having distinct positive edge weights. Let [X, Y] be a partition of V such that s∈\inX and t∈\inY. Consider the edge e having the minimum weight amongst all those edges that have one vertex in X and one vertex in Y.

The edge e must definitely belong to:

Q122Minimum Spanning Tree1 markMCQ−0.33 if wrong
An undirected graph G has n nodes. Its adjacency matrix is given by an nxn square matrix whose
(i) diagonal elements are 0's and
(ii) non-diagonal elements are 1's.
which one of the following is TRUE?

Q123Shortest Path1 markMCQ−0.33 if wrong
Let GG be a directed graph whose vertex set is the set of numbers from 1 to 100. There is an edge from a vertex ii to a vertex jj iff either j=i+1j = i + 1 or j=3ij = 3i. The minimum number of edges in a path in G from vertex 1 to vertex 100 is

Q124Shortest Path1 markMCQ−0.33 if wrong
Let s and t be two vertices in a undirected graph G=(V, E) having distinct positive edge weights. Let [X, Y] be a partition of V such that s∈\inX and t∈\inY. Consider the edge e having the minimum weight amongst all those edges that have one vertex in X and one vertex in Y.

Let the weight of an edge e denote the congestion on that edge. The congestion on a path is defined to be the maximum of the congestions on the edges of the path. We wish to find the path from s to t having minimum congestion. Which one of the following paths is always such a path of minimum congestion?

Q125Shortest Path1 markMCQ−0.33 if wrong
Let G(V,E) be an undirected graph with positive edge weights. Dijkstra's single source shortest path algorithm can be implemented using the binary heap data structure with time complexity: