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

GATE 2008

185 questions

MCQ 1851-mark 52 · 2-mark 133

Questions 96–100 of 185

Q96Heap Tree2 marksMCQ−0.67 if wrong
We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is

Q97B Tree2 marksMCQ−0.67 if wrong
A B-tree of order 4 is built from scratch by 10 successive insertions. What is the maximum number of node splitting operations that may take place?

Q98Hashing2 marksMCQ−0.67 if wrong
Consider a hash table of size 11 that uses open addressing with linear probing. Let h(k)=kmod 11 be the hash function used. A sequence of records with keys
43 36 92 87 11 4 71 13 14
is inserted into an initially empty hash table, the bins of which are indexed from zero to ten. What is the index of the bin into which the last record is inserted?

Q99Sorting2 marksMCQ−0.67 if wrong
If we use Radix Sort to sort n integers in the range (nk/2,nk)\left (n^{k/2}, n^k \right ), for some k>0 which is independent of n, the time taken would be?

Q100Sorting2 marksMCQ−0.67 if wrong
Consider the Quicksort algorithm. Suppose there is a procedure for finding a pivot element which splits the list into two sub-lists each of which contains at least one-fifth of the elements. Let T(n) be the number of comparisons required to sort n elements. Then