Recent questions tagged tifr2015

25 25 votes
5 answers 5 answers
4.4k
4.4k views
Consider the following grammar (the start symbol is $E$) for generating expressions.$E \rightarrow T - E \mid T + E \mid T$$T \rightarrow T * F \mid F$$F \rightarrow 0 \m...
15 15 votes
3 answers 3 answers
3.4k
3.4k views
Consider the following concurrent program (where statements separated by | | with-in cobegin-coend are executed concurrently).x:=1 cobegin x:= x + 1 || x:= x + 1 || x:=...
5 5 votes
2 2 answers
1.8k
1.8k views
Two undirected graphs $G_{1}=(V_{1}, E_{1})$ and $G_{2}= (V_{2}, E_{2})$ are said to be isomorphic if there exist a bijection $\pi: V_{1} \rightarrow V_{2}$ such that for...
9 9 votes
2 answers 2 answers
2.0k
2.0k views
Let $t_{n}$ be the sum of the first $n$ natural numbers, for $n 0$. A number is called triangular if it is equal to $t_{n}$ for some $n$. Which of the following statemen...
20 20 votes
3 answers 3 answers
3.3k
3.3k views
Let $K_{n}$ be the complete graph on $n$ vertices labeled $\left\{1, 2,\dots ,n\right\}$ with $m=\frac{n (n - 1)}{2}$ edges. What is the number of spanning trees of $K_{n...
21 21 votes
2 answers 2 answers
5.1k
5.1k views
Consider the languages $L_{1}= \left\{a^{m}b^{n}c^{p} \mid (m = n \vee n = p) \wedge m + n + p \geq 10\right\}$$L_{2}= \left\{a^{m}b^{n}c^{p} \mid (m = n \vee n = p) \wed...
27 27 votes
2 answers 2 answers
3.5k
3.5k views
A Boolean expression is an expression made out of propositional letters (such as $p, q, r$) and operators $\wedge$, $\vee$ and $\neg$; e.g. $p\wedge \neg (q \vee \neg r)$...
25 25 votes
6 answers 6 answers
7.5k
7.5k views
Let $\sum_{1}= \left\{a\right\}$ be a one letter alphabet and $\sum_{2}= \left\{a, b\right\}$ be a two letter alphabet. A language over an alphabet is a set of finite len...
18 18 votes
4 answers 4 answers
3.3k
3.3k views
Let $a, b, c$ be regular expressions. Which of the following identities is correct?$(a + b)^{*} = a^{*}b^{*}$$a(b + c) = ab + c$$(a + b)^{*} = a^{*} + b^{*}$$(ab + a)^{*}...
15 15 votes
3 answers 3 answers
3.0k
3.0k views
Let $B$ consist of all binary strings beginning with a $1$ whose value when converted to decimal is divisible by $7$.$B$ can be recognized by a deterministic finite state...
28 28 votes
7 answers 7 answers
6.9k
6.9k views
Suppose $\begin{pmatrix}0&1 &0&0&0&1 \\1&0&1&0&0&0 \\0&1&0&1&0&1 \\0&0&1&0&1&0 \\0&0&0&1&0&1 \\1&0&1&0&1&0\end{pmatrix}$is the adjacency matrix of an undirected graph...
45 45 votes
4 answers 4 answers
7.0k
7.0k views
First, consider the tree on the left. On the right, the nine nodes of the tree have been assigned numbers from the set $\left\{1, 2,\ldots,9\right\}$ so that for every ...
17 17 votes
2 answers 2 answers
2.7k
2.7k views
Consider the following code fragment in the $C$ programming language when run on a non-negative integer $n$.int f (int n) { if (n==0 || n==1) return 1; else return f (n -...
29 29 votes
2 answers 2 answers
4.9k
4.9k views
Consider the following undirected connected graph $G$ with weights on its edges as given in the figure below. A minimum spanning tree is a spanning tree of least weight a...
22 22 votes
3 answers 3 answers
5.4k
5.4k views
Consider the following recurrence relation:$T(n)= \begin{cases}2T (\lfloor\sqrt{n}\rfloor)+ \log n & \text{if }n \geq 2 \\ 1& \text{if }n = 1 \end{cases}$Which of the...
8 8 votes
2 answers 2 answers
2.0k
2.0k views
Let $A$ and $B$ be non-empty disjoint sets of real numbers. Suppose that the average of the numbers in the first set is $\mu_{A}$ and the average of the numbers in the se...
15 15 votes
1 answers 1 answer
2.4k
2.4k views
Consider the following $3 \times 3$ matrices.$M_{1}=\begin{pmatrix} 0&1&1 \\1&0&1 \\1&1&0 \end{pmatrix} $$M_{2}=\begin{pmatrix} 1&0&1 \\0&0&0 \\1&0&1 \end{pmatrix} ...
12 12 votes
2 answers 2 answers
3.1k
3.1k views
Imagine the first quadrant of the real plane as consisting of unit squares. A typical square has $4$ corners: $(i, j), (i+1, j), (i+1, j+1),$and $(i, j+1)$, where $(i, j)...
9 9 votes
2 2 answers
3.1k
3.1k views
Consider two independent and identically distributed random variables $X$ and $Y$ uniformly distributed in $[0, 1]$. For $\alpha \in \left[0, 1\right]$, the probability t...
16 16 votes
5 5 answers
5.3k
5.3k views
Suppose that $f(x)$ is a continuous function such that $0.4 \leq f(x) \leq 0.6$ for $0 \leq x \leq 1$. Which of the following is always true?$f(0.5) = 0.5$.There exists $...
6 6 votes
0 0 answers
1.2k
1.2k views
Let $f(x), x\in \left[0, 1\right]$, be any positive real valued continuous function. Then $\displaystyle \lim_{n \rightarrow \infty} (n + 1) \int_{0}^{1} x^{n} f(...
3 3 votes
2 answers 2 answers
1.5k
1.5k views
Consider a square of side length $2$. We throw five points into the square. Consider the following statements:There will always be three points that lie on a straight lin...
33 33 votes
5 answers 5 answers
7.1k
7.1k views
There is a set of $2n$ people: $n$ male and $n$ female. A good party is one with equal number of males and females (including the one where none are invited). The total n...
22 22 votes
8 answers 8 answers
6.3k
6.3k views
A $1 \times 1$ chessboard has one square, a $2 \times 2$ chessboard has five squares. Continuing along this fashion, what is the number of squares on the regular $8 \time...
21 21 votes
6 answers 6 answers
9.1k
9.1k views
Ram has a fair coin, i.e., a toss of the coin results in either head or tail and each event happens with probability exactly half $(1/2)$. He repeatedly tosses the coin u...
20 20 votes
4 answers 4 answers
3.5k
3.5k views
What is logically equivalent to "If Kareena and Parineeti go to the shopping mall then it is raining":If Kareena and Parineeti do not go to the shopping mall then it is n...
14 14 votes
1 answers 1 answer
3.6k
3.6k views
The Boolean function obtained by adding an inverter to each and every input of an $\text{AND}$ gate is:$\text{OR}$$\text{XOR}$$\text{NAND}$$\text{NOR}$None of the above
5 5 votes
2 answers 2 answers
1.9k
1.9k views
Let $|z| < 1$. Define $M_{n}(z)= \sum_{i=1}^{10} z^{10^{n}(i - 1)}?$ what is $\prod\limits_{i=0}^{\infty} M_{i}(z)= M_{0}(z)\times M_{1}(z) \times M_{2}(z) \t...
9 9 votes
1 answers 1 answer
1.7k
1.7k views
Consider a circle with a circumference of one unit length. Let $d< \dfrac{1}{6}$. Suppose that we independently throw two arcs, each of length $d$, randomly on this circu...
15 15 votes
5 answers 5 answers
3.8k
3.8k views
Consider a $6$-sided die with all sides not necessarily equally likely such that probability of an even number is $P (\left \{2, 4, 6 \right \}) =\dfrac{1}{2}$, probabil...
To see more, click for the full list of questions or popular tags.