Recent questions tagged tifr2012

7 7 votes
1 answers 1 answer
1.5k
1.5k views
This question concerns the classes $P$ and $NP.$ If you are familiar with them, you may skip the definitions and go directly to the question.Let $L$ be a set. We say that...
24 24 votes
2 answers 2 answers
4.2k
4.2k views
Which of the following statements is TRUE?Every turing machine recognizable language is recursive.The complement of every recursively enumerable language is recursively e...
13 13 votes
3 answers 3 answers
2.4k
2.4k views
Let $a^{i}$ denote a sequence $a . a ... a$ with $i$ letters and let $\aleph$ be the set of natural numbers ${ 1, 2,...}$. Let $L_{1}=\left\{a^{i}b^{2i}\mid i \in \aleph...
18 18 votes
2 answers 2 answers
3.7k
3.7k views
Which of the following correctly describes $\text{LR}(k)$ parsing?The input string is alternately scanned left to right and right to left with $k$ reversals.Input string ...
11 11 votes
1 answers 1 answer
3.2k
3.2k views
Consider a complete binary tree of height $n$, where each edge is one Ohm resistor. Suppose all the leaves of the tree are tied together. Approximately how much is the ef...
32 32 votes
11 11 answers
7.4k
7.4k views
Let $T$ be a tree of $n$ nodes. Consider the following algorithm, that constructs a sequence of leaves $u_{1}, u_{2}...$. Let $u_{1}$ be some leaf of tree. Let $u_{2}$be ...
20 20 votes
3 answers 3 answers
6.3k
6.3k views
Consider the quick sort algorithm on a set of $n$ numbers, where in every recursive subroutine of the algorithm, the algorithm chooses the median of that set as the pivot...
33 33 votes
5 answers 5 answers
6.8k
6.8k views
An array $A$ contains $n$ integers. We wish to sort $A$ in ascending order. We are told that initially no element of $A$ is more than a distance $k$ away from its final p...
22 22 votes
2 answers 2 answers
5.6k
5.6k views
Let $A$ be a matrix such that $A^{k}=0$. What is the inverse of $I - A$?$0$$I$$A$$1 + A + A^{2} + ...+ A^{k - 1}$Inverse is not guaranteed to exist.
22 22 votes
3 answers 3 answers
5.0k
5.0k views
Consider the following three version of the binary search program. Assume that the elements of type $T$ can be compared with each other; also assume that the array is sor...
27 27 votes
3 answers 3 answers
6.6k
6.6k views
Consider the blocked-set semaphore where the signaling process awakens any one of the suspended process; i.e.,Wait (S): If $S>0$ then $S\leftarrow S - 1$, else suspend th...
22 22 votes
1 answers 1 answer
3.6k
3.6k views
Consider the concurrent program x := 1; cobegin x := x + x + 1 || x := x + 2 coend;Reading and writing of a variable is atomic, but evaluation of an expression is not a...
20 20 votes
2 answers 2 answers
4.4k
4.4k views
Consider the parse treeAssume that $*$ has higher precedence than $+$, $-$ and operators associate right to left (i.e $(a + b + c= (a + (b + c)))$. Consider$2 + a - b$$2 ...
15 15 votes
1 answers 1 answer
3.2k
3.2k views
A bag contains $16$ balls of the following colors: 8 red, 4 blue, 2 green, 1 black, and 1 white. Anisha picks a ball randomly from the bag, and messages Babu its color us...
26 26 votes
5 answers 5 answers
7.8k
7.8k views
Let $n$ be a large integer. Which of the following statements is TRUE?$2^{\sqrt{2\log n}}< \frac{n}{\log n}< n^{1/3}$$\frac{n}{\log n}< n^{1/3}< 2^{\sqrt{2\log n}}$$2^{\s...
15 15 votes
3 3 answers
3.9k
3.9k views
Let $R$ be a binary relation over a set $S$. The binary relation $R$ is called an equivalence relation if it is reflexive transitive and symmetric. The relation is called...
17 17 votes
4 4 answers
8.6k
8.6k views
Let $\wedge $, $\vee $ denote the meet and join operations of lattice. A lattice is called distributive if for all $x, y, z,$$x\wedge \left ( y\vee z \right )= \left ( x\...
28 28 votes
5 answers 5 answers
3.7k
3.7k views
For a person $p$, let $w(p)$, $A(p, y)$, $L(p)$ and $J(p)$ denote that $p$ is a woman, $p$ admires $y$, $p$ is a lawyer and $p$ is a judge respectively. Which of the foll...
18 18 votes
3 answers 3 answers
4.6k
4.6k views
In a graph, the degree of a vertex is the number of edges incident (connected) on it. Which of the following is true for every graph $G$?There are even number of vertices...
18 18 votes
4 answers 4 answers
3.5k
3.5k views
For $x, y\in \left\{0, 1\right\}^{n}$, let $x ⊕ y$ be the element of $\left\{0, 1\right\}^{n}$ obtained by the component-wise exclusive-or of $x$ and $y$. A Boolean funct...
23 23 votes
5 answers 5 answers
5.6k
5.6k views
There are $1000$ balls in a bag, of which $900$ are black and $100$ are white. I randomly draw $100$ balls from the bag. What is the probability that the $101$st ball wil...
26 26 votes
3 answers 3 answers
3.7k
3.7k views
An electric circuit between two terminals $A$ and $B$ is shown in the figure below, where the numbers indicate the probabilities of failure for the various links, which a...
9 9 votes
1 answers 1 answer
2.6k
2.6k views
A large community practices birth control in the following peculiar fashion. Each set of parents continues having children until a son is born; then they stop. What is th...
11 11 votes
6 6 answers
4.5k
4.5k views
A spider is at the bottom of a cliff, and is $n$ inches from the top. Every step it takes brings it one inch closer to the top with probability $1/3$, and one inch away f...
5 5 votes
2 answers 2 answers
1.9k
1.9k views
Walking at $4/5$ is normal speed a man is $10$ minute too late. Find his usual time in minutes.$81$$64$$52$$40$It is not possible to determine the usual time from given d...
8 8 votes
2 answers 2 answers
3.5k
3.5k views
Consider the differential equation $dx/dt= \left(1 - x\right)\left(2 - x\right)\left(3 - x\right)$. Which of its equilibria is unstable?$x=0$$x=1$$x=2$$x=3$None of the ab...
7 7 votes
3 answers 3 answers
3.2k
3.2k views
The limit $\displaystyle \lim_{n \rightarrow \infty} \left(\sqrt{n^{2}+n}-n\right)$ equals.$\infty$$1$$1 / 2$$0$None of the above
4 4 votes
2 answers 2 answers
2.5k
2.5k views
The maximum value of the function$f\left(x, y, z\right)= \left(x - 1 / 3\right)^{2}+ \left(y - 1 / 3\right)^{2}+ \left(z - 1 / 3\right)^{2}$subject to the constraints$x +...
16 16 votes
2 answers 2 answers
2.4k
2.4k views
For the polynomial $p(x)= 8x^{10}-7x^{3}+x-1$ consider the following statements (which may be true or false)It has a root between $[0, 1].$It has a root between $[0, -1]....
12 12 votes
3 answers 3 answers
3.3k
3.3k views
Let $N$ be the sum of all numbers from $1$ to $1023$ except the five primes numbers: $2, 3, 11, 17, 31.$ Suppose all numbers are represented using two bytes (sixteen bits...