Recent questions tagged gate1991

31 votes
2 answers
6
20 votes
3 answers
7
Consider the binary tree in the figure below:Give different steps for deleting the node with key $5$ so that the structure is preserved.
41 votes
4 answers
10
Consider the following first order formula:$\left ( \matrix{ \forall x \exists y : R(x,y) \\[1em] \Large \land \\[1em] \forall x \forall y : \left ( R(x,y) \impl...
21 votes
5 answers
11
Show that the Turing machines, which have a read only input tape and constant size work tape, recognize precisely the class of regular languages.
48 votes
3 answers
12
Show that all vertices in an undirected finite graph cannot have distinct degrees, if the graph has at least two vertices.
20 votes
2 answers
15
Find the minimum sum of products form of the logic function $ f(A,B,C,D) = \Sigma_{m}(0,2,8,10,15)+ \Sigma _{d}(3,11,12,14)$ where $m$ and $d$ represent minterm and don't...
52 votes
2 answers
18
Find the number of binary strings $w$ of length $2n$ with an equal number of $1's$ and $0's$ and the property that every prefix of $w$ has at least as many $0's$ as $1's....
15 votes
5 answers
19
Show that the product of the least common multiple and the greatest common divisor of two positive integers $a$ and $b$ is $a\times b$.
25 votes
3 answers
20
Consider the binary tree in the figure below:What structure is represented by the binary tree?
26 votes
5 answers
21
Give an optimal algorithm in pseudo-code for sorting a sequence of $n$ numbers which has only $k$ distinct numbers ($k$ is not known a Priori). Give a brief analysis for ...
27 votes
1 answer
29