Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged cmi2021
0
votes
0
answers
1
CMI2021-B: 1
Let $\text{A}=\left ( \sqrt{3} +\sqrt{2}\right )^{1000}, \text{B}=\left ( \sqrt{3} -\sqrt{2}\right )^{1000}$. Prove the following statements. $\text{A+B}$ is an integer. The digit immediately after the decimal point in $\text{B}$ is $0$. The digit immediately after the decimal point in $\text{A}$ is $9$. Both $\text{A, B}$ is irrational.
Let $\text{A}=\left ( \sqrt{3} +\sqrt{2}\right )^{1000}, \text{B}=\left ( \sqrt{3} -\sqrt{2}\right )^{1000}$. Prove the following statements.$\text{A+B}$ is an integer.Th...
admin
268
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
2
CMI2021-B: 2
Imagine you are playing a computer game that consists of different types of coins. You have the power to cast two magic spells $s_{1}$ and $s_{2}$. Each spell consumes some number of coins of each type and produces some number of coins of each type. Spell $s_{1}$ ... coins. There is no sequence of spells using only $s_{1}$ and $s_{3}$ that can produce more than $4 n$ total coins.
Imagine you are playing a computer game that consists of different types of coins. You have the power to cast two magic spells $s_{1}$ and $s_{2}$. Each spell consumes so...
admin
173
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
3
CMI2021-B: 3
A cut edge of a connected graph $\text{G}$ is any edge $e=\left \{ u, v \right \}$ of $\text{G}$ such that the graph $\text{G} -e$ obtained by deleting edge $e$ (and not deleting $u$ or $v$ ... have an odd number of vertices. To disprove this statement it suffices to exhibit a graph which contradicts the statement. A proof must take the form of an argument.
A cut edge of a connected graph $\text{G}$ is any edge $e=\left \{ u, v \right \}$ of $\text{G}$ such that the graph $\text{G} -e$ obtained by deleting edge $e$ (and not ...
admin
227
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
4
CMI2021-B: 4
For a language $\text{L}$ over an alphabet $\Sigma$, define $\text{SW(L)}:= \left \{ y \in \Sigma^{\ast} \mid \exists x \in \Sigma^{\ast}\; \text{s.t.}\; xyx \in \text{L} \right \}$ Prove that if $\text{L}$ is regular, $\text{SW(L)}$ is also regular.
For a language $\text{L}$ over an alphabet $\Sigma$, define$$\text{SW(L)}:= \left \{ y \in \Sigma^{\ast} \mid \exists x \in \Sigma^{\ast}\; \text{s.t.}\; xyx \in \text{L}...
admin
171
views
admin
asked
Jul 22, 2022
Others
cmi2021
descriptive
+
–
0
votes
0
answers
5
CMI2021-B: 5
Given a list $\text{A}$ of $\text{N}$ elements and a number $\text{K}$, your task is to output the $\text{N – K + 1}$ values listing the minimum among $\text{A} [i]\cdots \text{A}[i+\text{K}-1]$ for every $1\leq i\leq \text{N – K + 1}$. Provide an algorithm for this task, that runs in time atmost $\mathcal{O}(\text{N} \log \text{K}).$
Given a list $\text{A}$ of $\text{N}$ elements and a number $\text{K}$, your task is to output the $\text{N – K + 1}$ values listing the minimum among $\text{A} [i]\...
admin
175
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
6
CMI2021-B: 6
Let $\text{A = A [1] A[2]} \cdots \text{A [n]}$ be an array of $n$ numbers where $n = 2^{k} - 1$ for some $k > 0$. Consider a binary tree $\text{T}$ built from the array in the following manner. The root of $\text{T}$ ... $\text {A}[i_{1}] \text {A}[i_{2}]\cdots\text {A}[i_{m}]$ consisting only of good indices is sorted.
Let $\text{A = A A } \cdots \text{A [n]}$ be an array of $n$ numbers where $n = 2^{k} – 1$ for some $k 0$. Consider a binary tree $\text{T}$ built from the array in ...
admin
143
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
7
CMI2021-B: 7
Consider the function $\textsf{foo}$ and $\textsf{bar}$ described in pseudocode below, where $/ /$ denotes quotient (integer division) and $\%$ denotes remainder. int foo (int n) { int i = 1; while (bar (i) < n){ i = 2* i; } return (i); } ... $\textsf{bar}$ and made in computation of $\textsf{foo(100)}?$
Consider the function $\textsf{foo}$ and $\textsf{bar}$ described in pseudocode below, where $/ /$ denotes quotient (integer division) and $\%$ denotes remainder.int foo ...
admin
204
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
8
CMI2021-A: 1
If the milkman doesn’t deliver milk or the geyser doesn’t work, then Akash will be late for school and lunch will be cooked late. Suppose lunch was actually cooked on time. Which of the following is definitely true? Akash was late for school Akash reached school in time Geyser worked Milkman did not deliver milk
If the milkman doesn’t deliver milk or the geyser doesn’t work, then Akash will be late for school and lunch will be cooked late. Suppose lunch was actually cooked on...
admin
271
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
9
CMI2021-A: 2
Let $\text{L}$ be the language over $\left \{ a, b \right \}$ that contains the same number of occurrences of $a$ and $b$. Which of the following languages is regular? $\text{L} \cap a^{\ast}b^{\ast}$ $(\text{L} \cap a^{\ast}b^{\ast}) \cup a^{\ast}b^{\ast}$ $\text{L} \cup a^{\ast}b^{\ast}$ $(\text{L} \cap a^{\ast}b^{\ast}) \cup b^{\ast}a^{\ast}$
Let $\text{L}$ be the language over $\left \{ a, b \right \}$ that contains the same number of occurrences of $a$ and $b$. Which of the following languages is regular?$\t...
admin
180
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
10
CMI2021-A: 3
Which of the following regular expressions represents binary strings that are multiples of $3?$ Note that we consider the leftmost bit to be the most significant. $((11)0^{\ast})^{\ast}$ $(10^{\ast})^{\ast}$ $1(01^{\ast})^{\ast}$ $(11+101^{\ast}01+0)^{\ast}$
Which of the following regular expressions represents binary strings that are multiples of $3?$ Note that we consider the leftmost bit to be the most significant.$((11)0^...
admin
171
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
11
CMI2021-A: 4
Consider the following statements about finite simple graphs $\text{G}$ : If each vertex of a graph $\text{G}$ has degree at least $2$ then $\text{G}$ contains a cycle as a subgraph. If the number of edges of a graph $\text{G}$ is at least as large as the number ... . Which of the above two statements holds for all graphs? $(i)$ only $(ii)$ only both $(i)$ and $(ii)$ neither of them
Consider the following statements about finite simple graphs $\text{G}$ :If each vertex of a graph $\text{G}$ has degree at least $2$ then $\text{G}$ contains a cycle as ...
admin
280
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
12
CMI2021-A: 5
One day, Dumbledore assigns Harry Potter the task of obtaining the Philosopher's Stone that lies in an inner chamber surrounded by many rooms. To guide him along, he is given the Marauder's Map which contains the following graph. Harry wishes to color every wall with colors wall ... . $2$ colors for walls and $3$ colors for the rooms. $2$ colors for walls and $5$ colors for the rooms.
One day, Dumbledore assigns Harry Potter the task of obtaining the Philosopher’s Stone that lies in an inner chamber surrounded by many rooms. To guide him along, he is...
admin
180
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
13
CMI2021-A: 6
In the chamber containing the Philosopher’s stone, Harry sees a deck of $5$ cards, each with a distinct number from $1$ to $5$. Harry removes two cards from the deck, one at time. What is the probability that the two cards selected are such that the first card’s number is exactly one more than the number on the second card? $1/5$ $4/25$ $1/4$ $2/5$
In the chamber containing the Philosopher’s stone, Harry sees a deck of $5$ cards, each with a distinct number from $1$ to $5$. Harry removes two cards from the deck, o...
admin
195
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
14
CMI2021-A: 7
You are given a sequence of letters $x_{1}, x_{2} \dots x_{n}$ where each $x_{i} \in \left \{ a, b, c, d, e, f, g, h \right \}$. You can form a new sequence from the given sequence as follows. Start with $x_{1}$. ... $becgdfg?$ $ggebcdf$ $ggfedcb$ $ggecbdf$ $ggfebcd$
You are given a sequence of letters $x_{1}, x_{2} \dots x_{n}$ where each $x_{i} \in \left \{ a, b, c, d, e, f, g, h \right \}$. You can form a new sequence from the give...
admin
279
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
15
CMI2021-A: 8
There is a basket full of apples, oranges, mangoes, pears and pomegranates. You want to pick three fruits from the basket. Multiple pieces of the same fruit can be picked. However, if you pick mangoes, you cannot pick apples. In how many ways can you pick three fruits satisfying this condition? $14$ $40$ $28$ $20$
There is a basket full of apples, oranges, mangoes, pears and pomegranates. You want to pick three fruits from the basket. Multiple pieces of the same fruit can be picked...
admin
268
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
16
CMI2021-A: 9
The procedure operates on three arrays $\text{A} [0 \dots 99], \text{B}[0 \dots 99]$ and $\text{C} [0 \dots 99],$ which are initialized with integer values. procedure mystery () { for (i=0; i<100; i++) {C[i] = A[i];} p=99; for (i=0; i< ... of $\text{A}$ sorted in descending order All values of $\text{B}$ are the same $\text{B}$ contains the elements of $\text{A}$ in reverse order
The procedure operates on three arrays $\text{A} [0 \dots 99], \text{B}[0 \dots 99]$ and $\text{C} [0 \dots 99],$ which are initialized with integer values.procedure myst...
admin
151
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
0
votes
0
answers
17
CMI2021-A: 10
The procedure operates on three arrays $\text{A} [0 \dots 99], \text{B}[0 \dots 99]$ and $\text{C} [0 \dots 99],$ which are initialized with integer values. procedure mystery () { for (i=0; i<100; i++) {C[i] = A[i];} p=99; for (i=0; i< ... It contains the elements of $\text{A}$ sorted in descending order All value are equal to $\text{A}[99]$ All value are equal to $\text{A}[0]$
The procedure operates on three arrays $\text{A} [0 \dots 99], \text{B}[0 \dots 99]$ and $\text{C} [0 \dots 99],$ which are initialized with integer values.procedure myst...
admin
198
views
admin
asked
Jul 22, 2022
Others
cmi2021
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register