GATE 2016 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2016 (Session 2)

65 questions

MCQ 38 · NAT 271-mark 30 · 2-mark 35

Questions 51–55 of 65

Q51Asymptotic Notation2 marksMCQ−0.67 if wrong
In an adjacency list representation of an undirected simple graph G = (V,E), each edge (u,v) has two adjacency list entries: [v] in the adjacency list of u, and [u] in the adjacency list of v. These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin. If |E|=m and |V|=n, and the memory size is not a constraint, what is the time complexity of the most efficient algorithm to set the twin pointer in each entry in each adjacency list?

Q52Finite Automata2 marksMCQ−0.67 if wrong
Consider the following two statements:
I. If all states of an NFA are accepting states then the language accepted by the NFA is ∑∗\sum ^{*} .
II. There exists a regular language A such that for all languages B, A∩\capB is regular.
Which one of the following is CORRECT?

Q53Context Free Language2 marksMCQ−0.67 if wrong
Consider the following languages:
L1={anbmcn+m:m,n≥1}L_{1}=\{a^{n}b^{m}c^{n+m}:m,n\geq 1\}
L2={anbnc2n:n≥1}L_{2}=\{a^{n}b^{n}c^{2n}:n\geq 1\}
Which one of the following is TRUE?

Q54Turing Machine2 marksMCQ−0.67 if wrong
Consider the following languages.
L1 = {<\ltM>\gt |M takes at least 2016 steps on some input},
L2 = {<\ltM>\gt| M takes at least 2016 steps on all inputs} and
L3 = {<\ltM>\gt|M accepts ε\varepsilon},
where for each Turing machine M, <\ltM>\gt denotes a specific encoding of M. Which one of the following is TRUE?

Q55Context Free Grammar2 marksMCQ−0.67 if wrong
Which one of the following grammars is free from left recursion?