Recent questions tagged non-gatecse

0 0 votes
2 2 answers
346
346 views
Let $S$ be a set of $2n$ (not necessarily distinct) integers.Design an efficient algorithm that finds a partition of $S$ into $n$ pairs such that the maximum sum of the t...
2 2 votes
1 1 answer
421
421 views
An induced subgraph of an undirected graph $G = (V,E)$ is a graph formed from a non-empty subset $S$ of the vertices $V$ and all of the edges in $E$ connecting pairs of v...
2 2 votes
1 1 answer
296
296 views
Let $\mathscr{A} = (Q,\Sigma,\delta,q_0,F)$ be a finite-state automaton, where$Q$ is a finite set of states,$\Sigma$ is a finite alphabet,$\delta \subseteq Q \times \Sigm...
2 2 votes
1 1 answer
254
254 views
Suppose you are consulting for a company that manufactures PC equipment and ships it to distributors all over the country. For each of the next $n$ weeks, they have a pro...
0 0 votes
0 0 answers
159
159 views
A plane passing through the Earth's centre separates the Earth into two equal hemispheres. The intersection of such a plane with the Earth's surface is a circle on the Ea...
0 0 votes
1 1 answer
231
231 views
Let $G = (V,E)$ be an undirected connected graph with a cost, $c_e \geq 0$ on each edge e. The costs on the edges may not all be different. A minimum-cost spanning tree o...
0 0 votes
0 0 answers
182
182 views
Let $G = (V,E)$ be an undirected graph with $n$ vertices. Suppose $G$ contains two vertices $s$ and $t$ such that the shortest distance between $s$ and $t$ is strictly gr...
1 1 vote
0 0 answers
154
154 views
On a $2n \times 2n$ chess-board, $2n^2$ rooks are placed, at most one per square, in a way so that there are $n$ rooks in each row and $n$ rooks in each column of the boa...
0 0 votes
0 0 answers
218
218 views
Fix a finite alphabet $\Sigma$. For any two languages $L_1, L_2 \subseteq \Sigma^*$, the extension of $L_2$ with respect to $L_1$, denoted ext($L_1,L_2)$ is the language ...
1 1 vote
2 2 answers
322
322 views
Let $S = \sum_{n\geq1} \dfrac{1}{n^2}$ and $A = \sum_{n\geq1}(-1)^{n+1}\dfrac{1}{n^2}$. Then which of the following statements is true?$S$ converges but $A$ does not conv...
0 0 votes
1 1 answer
276
276 views
Let $a, b$ and $c$ denote regular expressions. Which of the following is an identity$?$None of the choices$a . (b + c) = (b + c) . a$$$c^* . a^* . b^* = c^* . b^* . a^*$$...
1 1 vote
1 1 answer
365
365 views
Let $f(n) := 2^n, g(n) := n$ and $h(n) :=$ $n^{log n}$. Which of the following statements is true$?$log $h(n) = O(g(n))$ and log $h(n) = \Omega$(log $f(n)).$$f(n)= O(g(n)...
3 3 votes
1 1 answer
391
391 views
Consider $n$ points equi-separated on a circle of radius one.Fix one of the points, and consider the product of the lengths of the chord from this point to all the other ...
1 1 vote
1 1 answer
354
354 views
Let $\Sigma =$ {$a,b$}.For a word $w \in \Sigma^*$ and a letter $x \in \Sigma$, let $\#_x(w)$ denote the number of occurrences of $x$ in $w$. For example, for $w = abaab$...
3 3 votes
2 2 answers
347
347 views
Consider the following recurrence: $A_n$ is the sum of $A_{n-1}$ and a number chosen uniformly at random from {$1,...,n$}, starting from $A_0 :=1$. What is the expected v...
2 2 votes
2 2 answers
361
361 views
If $\lambda_1,...,\lambda_k$, where $k \geq 2$, are $k$ distinct eigenvalues of a singular $n \times n$ matrix $A$, with associated eigenvectors $v_1,...,v_k$, then which...
0 0 votes
1 1 answer
189
189 views
Let $X$ be a set of propositional formulas and let $f,g$ be two propositional formulas. An assignment is a function mapping propositional variables to {$true, false$}, an...
0 0 votes
1 1 answer
201
201 views
A cut-edge in a graph is an edge whose removal disconnects the graph. Let $T$ be a tree with $n$ vertices. Consider the following statements. $T$ has no cycles and $n-1$...
3 3 votes
1 1 answer
254
254 views
In how many different ways can you distribute three identical red balls and two identical blue balls into one white bin and one black bin$?$$9$$12$$32$$5$
1 1 vote
1 1 answer
239
239 views
Starting with $x_0 = 0$, suppose you do the following:, at the $n^{th}$ stepyou flip a fair coin: if it is heads then $x_n := x_{n-1} + 1$ and if it is tails then $x_n :=...
0 0 votes
1 1 answer
214
214 views
A graph property (of simple graphs) is said to be $monotone$ $increasing$ if whenever a graph $G = (V,E)$ has the property, then every graph $G' = (V,E')$ with $E \subset...
0 0 votes
0 0 answers
150
150 views
Let $\Sigma =$ {$a,b$}. For a word $w \in \Sigma^*$ and a letter $x \in \Sigma$, let $\#_x(w)$ denote the number of occurrences of $x$ in $w$. For example, for $w = abaab...
2 2 votes
3 3 answers
593
593 views
How many numbers $x \in$ {$1,...,99$} are there such that $x^{\lceil{\sqrt[3]{x}}\rceil}$ is a perfect cube$?$$4$$23$$19$$22$
1 1 vote
1 1 answer
244
244 views
Suppose that we roll a fair six-sided die until either a six comes up or we have rolled it ten times. The expected number of times we roll the die isLess than $5$.$8$More...
0 0 votes
1 1 answer
237
237 views
If $S$ is a set of size $n$, then how many triplets ($A,B,C$) $\subseteq S \times S \times S$ are there such that $A,B$ are disjoint subsets of $C?$$4^n$$3^n$$n^2$$n^n$
2 2 votes
2 2 answers
233
233 views
Suppose we pick two distinct elements uniformly at random from the set {$1,...,n$}. Let $p$ be the probability that one is twice the other. Which of the following stateme...
3 3 votes
1 1 answer
315
315 views
Consider the rational number $a_n$ defined recursively as $a_n$ = $\dfrac{1}{1 + a_{n-1}}$, where $a_0 := 0$. Let $F_n$ denote the $n^{th}$ fibonacci number, where $F_0 :...
0 0 votes
2 2 answers
217
217 views
A team plays in a best-of-three tournament. If they win a match, they are enthused and they win the next match with probability $\frac{3}{4}$. If they lose a match, they ...
1 1 vote
2 2 answers
281
281 views
Given a $4$-regular graph on $n 10$ vertices, the number of $3$-regular induced subgraphs on 5 vertices is $\binom{n}{5}$$n^5$0$n(n-1)...(n-5)$
2 2 votes
3 3 answers
484
484 views
What is the correct asymptotic of $\sum^{n}_{i=1} \dfrac {n}{i^2}?$$\Theta(n)$$\Theta(n$ log $n)$$\Theta(1)$$\Theta(n^2)$