Recent questions tagged gate1998

13 votes
4 answers
1
Let $R$ be a binary relation on $A = \{a, b, c, d, e, f, g, h\}$ represented by the following two component digraph. Find the smallest integers $m$ and $n$ such that $m <...
21 votes
3 answers
2
Solve the following recurrence relation$x_n = 2x_{n-1}-1, n>1$$x_1=2$
44 votes
9 answers
4
Compute the post fix equivalent of the following expression $3^*\log(x+1)-\frac{a}{2}$
29 votes
5 answers
6
Give a regular expression for the set of binary strings where every $0$ is immediately followed by exactly $k$ $1$'s and preceded by at least $k$ $1$’s ($k$ is a fixed...
26 votes
3 answers
9
21 votes
1 answer
13
Derive a recurrence relation for the size of the smallest AVL tree with height $h$.What is the size of the smallest AVL tree with height $8$?
20 votes
1 answer
14
Draw the binary tree with node labels $\text{a, b, c, d, e, f and g}$ for which the inorder and postorder traversals result in the following sequences:Inorder: $\text{a f...
33 votes
5 answers
16
For a set-associative Cache organization, the parameters are as follows:$$\begin{array}{|c|l|} \hline \text {$t _c$} & \text{Cache Access Time }\\\hline \text{$t _m$} &...
23 votes
3 answers
18
12 votes
4 answers
20
Let $G_1 = (N, T, P, S_1)$ be a CFG where, $N=\{S_1, A, B\},T=\{a, b\}$ and $P$ is given by$$\begin{array}{l|l}S_1 \rightarrow a S_1 b &S_1 \rightarrow a B b \\S_1 \right...
32 votes
3 answers
22
20 votes
6 answers
24
Prove by induction that the expression for the number of diagonals in a polygon of $n$ sides is $\frac{n(n-3)}{2}$
5 votes
1 answer
25
13 votes
1 answer
26
Find the points of local maxima and minima, if any, of the following function defined in $0\leq x\leq 6$. $$x^3-6x^2+9x+15$$Integrate $$\int_{-\pi}^{\pi} x \cos x dx$$
26 votes
2 answers
28
Consider the grammarS $\rightarrow Aa \mid b$A $\rightarrow Ac \mid Sd \mid \epsilon$Construct an equivalent grammar with no left recursion and with minimum number of pr...