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

GATE 2010

82 questions

MCQ 821-mark 39 · 2-mark 43

Questions 31–35 of 82

Q31B plus Tree1 markMCQ−0.33 if wrong
Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?

Q32Hashing2 marksMCQ−0.67 if wrong
A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown below
0 1 2 42 3 23 4 34 5 52 6 46 7 33 8 9
How many different insertion sequences of the key values using the same hash function and linear probing will result in the hash table shown above?

Q33Hashing2 marksMCQ−0.67 if wrong
A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown below
0 1 2 42 3 23 4 34 5 52 6 46 7 33 8 9
Which one of the following choices gives a possible order in which the key values could have been inserted in the table?

Q34Asymptotic Notation1 markMCQ−0.33 if wrong
Two alternative packages A and B are available for processing a database having 10k10^{k} records. Package A requires 0.0001n2n^{2} time units and package B requires 10nlog⁡10n10n \log _{{10}} n time units to process n records. What is the smallest value of k for which package B will be preferred over A?

Q35Dynamic Programming2 marksMCQ−0.67 if wrong
The weight of a sequence a0,a1,...,an−1a_{0},a_{1},...,a_{n-1} of real numbers is defined as a0+a1/2+...+an−1/2n−1a_{0}+a_{1}/2+...+a_{n-1}/2^{n-1} A subsequence of a sequence is obtained by deleting some elements from the sequence, keeping the order of the remaining elements the same. Let X denote the maximum possible weight of a subsequence of a0,a1,...,an−1a_{0},a_{1},...,a_{n-1} and Y the maximum possible weight of a subsequence of a1,a2,...,an−1a_{1},a_{2},...,a_{n-1}. Then X is equal to