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

GATE 2010

82 questions

MCQ 821-mark 39 · 2-mark 43

Questions 36–40 of 82

Q36Minimum Spanning Tree2 marksMCQ−0.67 if wrong
Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Entry WijW_{ij} in the matrix W below is the weight of the edge {i, j}.

(018141012498120731470249320)\begin{pmatrix} 0&1 & 8 & 1 &4 \\ 1& 0 & 12 & 4 & 9\\ 8 & 12 & 0 & 7 & 3\\ 1& 4& 7 & 0 &2 \\ 4& 9 & 3& 2 &0 \end{pmatrix}

What is the minimum possible weight of a spanning tree T in this graph such that vertex 0 is a leaf node in the tree T?

Q37Shortest Path2 marksMCQ−0.67 if wrong
Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Entry WijW_{ij} in the matrix W below is the weight of the edge {i, j}.

(018141012498120731470249320)\begin{pmatrix} 0&1 & 8 & 1 &4 \\ 1& 0 & 12 & 4 & 9\\ 8 & 12 & 0 & 7 & 3\\ 1& 4& 7 & 0 &2 \\ 4& 9 & 3& 2 &0 \end{pmatrix}

What is the minimum possible weight of a path P from vertex 1 to vertex 2 in this graph such that P contains at most 3 edges?

Q38Regular Expression2 marksMCQ−0.67 if wrong
Let L = {w ∈\in (0 + 1)*|w has even number of 1s}, i.e. L is the set of all bit strings with even number of 1s. Which one of the regular expressions below represents L?

Q39Finite Automata2 marksMCQ−0.67 if wrong
Let w be any string of length n in {0, 1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L?

Q40Context Free Language2 marksMCQ−0.67 if wrong
Consider the languages
L1={0i1j  ∣  i≠j}L1=\{0^{i}1^{j}\;| \; i\neq j\}.
L2={0i1j  ∣  i=j}L2=\{0^{i}1^{j}\;| \; i=j\}.
L3={0i1j  ∣  i=2j+1}L3=\{0^{i}1^{j}\;| \; i=2j+1\}.
L4={0i1j  ∣  i≠2j}L4=\{0^{i}1^{j}\;| \; i \neq 2j\}
Which one of the following statements is true?