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

GATE 2007

184 questions

MCQ 1841-mark 184

Questions 101–105 of 184

Q101Graph Traversal (BFS and DFS)1 markMCQ−0.33 if wrong
A depth-first search is performed on a directed acyclic graph. Let d[u] denote the time at which vertex u is visited for the first time and f[u] the time at which the DFS call to the vertex u terminates. Which of the following statements is always TRUE for all edges (u, v) in the graph ?

Q102Graph Traversal (BFS and DFS)1 markMCQ−0.33 if wrong
Consider the DAG with V = {1,2,3,4,5,6}, shown below.
1 2 5 4 3 6
Which of the following is NOT a topological ordering?

Q103Minimum Spanning Tree1 markMCQ−0.33 if wrong
What is the largest integer m such that every simple connected graph with n vertices and n edges contains at least m different spanning trees ?

Q104Minimum Spanning Tree1 markMCQ−0.33 if wrong
Let w be the minimum weight among all edge weights in an undirected connected graph. Let e be a specific edge of weight w . Which of the following is FALSE?

Q105Shortest Path1 markMCQ−0.33 if wrong
Consider a weighted, undirected graph with positive edge weights and let uvuv be an edge in the graph. It is known that the shortest path from the source vertex ss to uu has weight 53 and the shortest path from ss to vv has weight 65. Which one of the following statements is always TRUE?