GATE 2014 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2014 (Session 1)

65 questions

MCQ 40 · NAT 251-mark 30 · 2-mark 35

Questions 46–50 of 65

Q46Finite Automata2 marksMCQ−0.67 if wrong
Which of the regular expressions given below represent the following DFA?
0 1 0 1
I) 0*1(1+00*1)*
II) 0*1*1+11*0*1
III) (0+1)*1

Q47Combination2 marksNAT
There are 5 bags labelled 1 to 5. All the coins in a given bag have the same weight. Some bags have coins of weight 10 gm, others have coins of weight 11 gm. I pick 1, 2, 4, 8, 16 coins respectively from bags 1 to 5. Their total weight comes out to 323 gm. Then the product of the labels of the bags having 11 gm coins is ___.

Q48Undecidability2 marksMCQ−0.67 if wrong
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?

Q49Divide and Conquer2 marksNAT
The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is _________________.

Q50Hashing2 marksMCQ−0.67 if wrong
Consider a hash table with 9 slots. The hash function is h(k)=k mod 9. The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19, 15, 20, 33, 12, 17, 10. The maximum, minimum, and average chain lengths in the hash table, respectively, are