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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 66–70 of 107

Q66Sorting1 markMCQ−0.33 if wrong
The usual Θ(n2)\Theta (n^{2}) implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already sorted part of the array. If, instead, we use binary search to identify the position, the worst case running time will

Q67Asymptotic Notation1 markMCQ−0.33 if wrong
The cube root of a natural number n is defined as the largest natural number m such that m3≤nm^{3}\leq n. The complexity of computing the cube root of n(n is represented in binary notation) is

Q68Asymptotic Notation1 markMCQ−0.33 if wrong
Consider the following three claims
1. (n+k)m=Θ(nm)(n+k)^{m}=\Theta (n^{m}) , where k and m are constants
2. 2n+1=O(2n)2^{n+1}=O(2^{n})
3. 22n+1=O(2n)2^{2n+1}=O(2^{n})
Which of these claims are correct?

Q69Recurrence Relation1 markMCQ−0.33 if wrong
Consider the following recurrence relation
T(1)=1
T(n+1)=T(n)+⌊n+1⌋\left \lfloor \sqrt{n+1} \right \rfloor for all n ≥\geq 1
The value of T(m2m^{2} ) for m ≥\geq 1 is

Q70Graph Traversal (BFS and DFS)1 markMCQ−0.33 if wrong
Consider the following graph
a e b f h g
Among the following sequences
(I) a b e g h f
(II) a b f e h g
(III) a b f h g e
(IV) a f g h b e
Which are depth first traversals of the above graph?