GATE CSE 1987
View Questions

GATE CSE

1
Find a solution to the following recurrence equation
T(n) = T(n - 1)+ n
T(1) = 1
2
Let P be a quicksort program to sort numbers in ascending order. Let t1 and t2 be the time taken by the program for the inputs [1 2 3 4] and [5 4 3 2 1], respectively. Which of the following holds?
3
What is the generating function G (z) for the sequence of Fibonacci numbers?
4
Solve the recurrence equations
T (n) = T (n - 1) + n
T (1) = 1
5
It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given.
6
If the no of leaves in a tree is not a power of 2,then the tree is not a binary tree.
7
In a circular linked list organization,insertion of a record involves modification of :
8
State whether the following statement are TRUE or FALSE:
(a) The union of two equivalence relations is also an equivalence relation.
9
If a, b and c are constants, which of the following is a linear inequality?
10
A square matrix is singular whenever:
11
(a) Solve the recurrence equations
$$\,\,\,\,\,\,\,\,\,T\left( n \right) = T\left( {n - 1} \right) + n$$
$$\,\,\,\,\,\,\,\,\,T\left( 1 \right) = 1T$$
(b) What is the generating function?
$$\,\,\,\,\,\,\,\,\,G\left( z \right)$$ for the sequence of Fibonacci numbers?
12
(a) How many binary relations are there on a set A with n elements?

(b) How many one - to - one functions are there from a set A with n elements onto itself

13
A critical region is:
14
On receiving an interrupt from an $${\rm I}/O$$ device the $$CPU$$:
15
FORTRAN is:
16
A context-free grammar is ambiguous if:
17
Give minimal $$DFA$$ that performs as a Mod-$$3$$ $$1's$$ counter, i.e., outputs a $$1$$ each time the number of $$1's$$ in the input sequence is a sequence is a multiple of $$3.$$
18
Give the regular expression over $${\left\{ {0,\,\,1} \right\}}$$ to denote the set of proper non-null substrings of the string $$0110$$.
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12