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

GATE 2006

191 questions

MCQ 1911-mark 191

Questions 116–120 of 191

Q116Graph Traversal (BFS and DFS)1 markMCQ−0.33 if wrong
Let T be a depth first search tree in a undirected graph G Vertices u and v are leaves of this tree T. The degrees of both u and v in G are at least 2. Which one of the following statements is true?

Q117Minimum Spanning Tree1 markMCQ−0.33 if wrong
Consider the following graph:
a b c d e f 2 7 1 4 3 6 2 4 3 1 5
Which one of the following cannot be the sequence of edges added, in that order, to a minimum spanning tree using Kruskal's algorithm?

Q118Minimum Spanning Tree1 markMCQ−0.33 if wrong
Consider a weighted complete graph G on the vertex set {v1,v2,...,vnv_{1},v_{2},...,v_{n}} such that the weight of the edge (vi,vjv_{i},v_{j}) is 2|i-j|. The weight of a minimum spanning tree

Q119Shortest Path1 markMCQ−0.33 if wrong
To implement Dijkstra's shortest path algorithm on unweighted graphs so that it runs in linear time, then data structure to be used is

Q120Regular Expression1 markMCQ−0.33 if wrong
Which regular expression best describes the language accepted by the non-deterministic automaton below?
S S S t a a,b b a,b