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

GATE 2002

56 questions

MCQ 561-mark 56

Questions 36–40 of 56

Q36n-ary Tree1 markMCQ−0.33 if wrong
The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is

Q37AVL Tree1 markMCQ−0.33 if wrong
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the furthest leaf) of such a tree on n nodes is best described by which of the following ?

Q38Recurrence Relation1 markMCQ−0.33 if wrong
The running time of the following algorithm

Procedure A(n)
If n ≤\leq 2 return (1) else return (A(n\sqrt{n}));

is best discribed by

Q39Recurrence Relation1 markMCQ−0.33 if wrong
The solution to the recurrence equation T(2k)=3T(2k−1)+1,T(1)=1T(2^{k})=3T(2^{k-1})+1,T(1)=1 is

Q40Finite Automata1 markMCQ−0.33 if wrong
The smallest finite automaton which accepts the language {x length of x is divisible by 3} has