Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged cmi2014
3
votes
2
answers
1
CMI2014-B-07c
Consider the code below, defining the function $A$: A(m, n, p) { if (p == 0) return m+n; else if (n == 0 && p == 1) return 0; else if (n == 0 && p == 2) return 1; else if (n == 0) return m; else return A(m, A(m,n-1,p), p-1); } Compute $A(2, 2, 3)$ and $A(2, 3, 3)$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
619
views
cmi2014
descriptive
algorithms
identify-function
3
votes
2
answers
2
CMI2014-B-07b
Consider the code below, defining the function $A$: A(m, n, p) { if (p == 0) return m+n; else if (n == 0 && p == 1) return 0; else if (n == 0 && p == 2) return 1; else if (n == 0) return m; else return A(m, A(m,n-1,p), p-1); } Express $A(m, n, 2)$ as a function of $m$ and $n$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
646
views
cmi2014
descriptive
algorithms
identify-function
3
votes
2
answers
3
CMI2014-B-07a
Consider the code below, defining the function $A$: A(m, n, p) { if (p == 0) return m+n; else if (n == 0 && p == 1) return 0; else if (n == 0 && p == 2) return 1; else if (n == 0) return m; else return A(m, A(m,n-1,p), p-1); } Express $A(m, n, 1)$ as a function of $m$ and $n$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
651
views
cmi2014
descriptive
algorithms
identify-function
2
votes
2
answers
4
CMI2014-B-06b
Let $A$ be array of $n$ integers that is not assumed to be sorted. You are given a number $x$. The aim is to find out if there are indices $k,\: l$ and $m$ such that $A[k] + A[l] + A[m] = x$. Design an algorithm for this problem that works in time $O(n^2)$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
433
views
cmi2014
descriptive
algorithms
algorithm-design
2
votes
1
answer
5
CMI2014-B-06a
Let $A$ be an array of $n$ integers, sorted so that $A[1] \leq A[2] \leq \dots \leq A[n]$. You are given a number $x$x. The aim is to find out if there are indices $k$ and $l$ such that $A[k] + A[l] = x$. Design an algorithm for this problem that works in time $O(n)$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
421
views
cmi2014
descriptive
algorithms
algorithm-design
2
votes
1
answer
6
CMI2014-B-05
At the end of its fifth successful season, the Siruseri Premier League is planning to give an award to the Most Improved Batsman over the five years. For this, an Improvement Index will be computed for each batsman. This is defined as the longest ... to compute the Improvement Index for a batsman with an overall sequence of $n$ scores. Analyze the complexity of your algorithm.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
520
views
cmi2014
algorithms
dynamic-programming
1
vote
2
answers
7
CMI2014-B-04
The frequency of a number in an array is the number of times it appears in the array. Describe an algorithm that finds the most frequent number in an array of $n$ numbers. If there are multiple numbers with highest frequency then list them all. Analyze the complexity of your algorithm.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
446
views
cmi2014
descriptive
algorithms
algorithm-design
1
vote
1
answer
8
CMI2014-B-03
$\text{Air CMI }$operates direct flights between different cities. For any pair of cities $A$ and $B$, there is at most one flight in a day from $A$ to $B$. The online site $FakeTrip$ is tryingto compile a list of all routes available ... list all pairs of cities connected by a route on which all connections are feasible within the same day. Analyze the complexity of your algorithm.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
469
views
cmi2014
descriptive
algorithms
algorithm-design
1
vote
1
answer
9
CMI2014-B-02
There are $n$ students in a class. The students have formed $k$ committees. Each committee consists of more than half of the students. Show that there is at least one student who is a member of more than half of the committees.
go_editor
asked
in
Quantitative Aptitude
May 27, 2016
by
go_editor
557
views
cmi2014
descriptive
quantitative-aptitude
pigeonhole-principle
1
vote
2
answers
10
CMI2014-B-01
Let $A$ be a regular language. Consider the following operations on $A$: $2A:=\{xy \mid x, \: y \in A \text{ and } x=y\}$ $A^2 :=\{xy \mid x, \: y \in A\}$ One of these operations necessarily leads to a regular language and the ... that it is regular. For the non-regular operation, give an example of an $A$ such that applying the operation on it results in a non-regular language.
go_editor
asked
in
Theory of Computation
May 27, 2016
by
go_editor
818
views
cmi2014
theory-of-computation
regular-language
descriptive
2
votes
3
answers
11
CMI2014-A-10
Avinash is taller than Abhay. Bharat is taller than Vinu and Vinay is taller than Bharat. Which of the following is a minimal set of additional information that can determine the tallest person? Vinay is taller than Avinash and Abhay is taller than Bharat. Avinash is taller than Vinay. Abhay is shorter than Vinay. None of the above.
go_editor
asked
in
Analytical Aptitude
May 27, 2016
by
go_editor
733
views
cmi2014
logical-reasoning
2
votes
2
answers
12
CMI2014-A-09
A company is due to send a shipment to a client and the CEO has resigned. To select a new CEO, some candidates have been interviewed. One of them will be chosen through a vote. If the workers union resort to a strike and the candidates have to be ... B). If the workers union resorted to a strike, then the number of voters was greater than or equal to the number of abstainers.
go_editor
asked
in
Analytical Aptitude
May 27, 2016
by
go_editor
556
views
cmi2014
logical-reasoning
1
vote
1
answer
13
CMI2014-A-08
What are the possible values of $gcd(7p + 94,\: 7p^2 + 97p + 47)$, where $p$ is an arbitrary integer? Either $1$ or $94$ Either $94$ or $47$ Either $1$ or $47$ None of these
go_editor
asked
in
Quantitative Aptitude
May 27, 2016
by
go_editor
526
views
cmi2014
quantitative-aptitude
1
vote
1
answer
14
CMI2014-A-07
Let $M$ be the maximum number of unit disks (disks of radius $1$) that can be placed inside a disk of radius $10$ so that each unit disk lies entirely within the larger disk and no two unit disks overlap. Then: $M < 25$ $25 \leq M < 40$ $40 \leq M < 55$ $M \geq 55$
go_editor
asked
in
Quantitative Aptitude
May 27, 2016
by
go_editor
576
views
cmi2014
quantitative-aptitude
geometry
6
votes
1
answer
15
CMI2014-A-06
Suppose we are working with a programming language that supports automatic garbage collection. This means that: Uninitialized variables are assigned null values. Unreferenced dynamically allocated memory is added back to free space. Unreachable $\text{if – then – else}$ branches are pruned. Expressions where array indices exceed array bounds are flagged.
go_editor
asked
in
Compiler Design
May 27, 2016
by
go_editor
802
views
cmi2014
compiler-design
runtime-environment
2
votes
2
answers
16
CMI2014-A-05
Let $\Sigma = \{a, b\}$. For a word $w \: \: \in \Sigma^*$ let $n_a(x)$ denote the number of $a$'s in $w$ and let $n_b(x)$ denote the number of $b$'s in $w$ ... $L$? $L$ is regular, but not context-free $L$ is context-free, but not regular $L$ is $\Sigma^*$ None of these
go_editor
asked
in
Theory of Computation
May 27, 2016
by
go_editor
644
views
cmi2014
theory-of-computation
identify-class-language
1
vote
1
answer
17
CMI2014-A-04
Alan's task is to design an algorithm for a decision problem $P$. He knows that there is an algorithm $A$ that transforms instances of $P$ to instances of the Halting Problem such that $\text{yes}$ instances of $P$ map to $\text{yes}$ instances of the ... $A$ says nothing about whether there is an algorithm for $P$. The Halting Problem can be solved using $A$.
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
655
views
cmi2014
algorithms
reduction
3
votes
3
answers
18
CMI2014-A-03
In the code fragment on the right, start and end are integer values and $\text{prime}(x)$ is a function that returns true if $x$ is a prime number and $\text{false}$ otherwise. At the end of the loop: i := 0; j := 0; k := 0; for (m := start; m <= end; m := m+1){ k := k + m ... + m; }else{ j := j + m; } } $k < i+j$ $k = i+j$ $k > i+j$ Depends on $\text{start}$ and $\text{end}$
go_editor
asked
in
Algorithms
May 27, 2016
by
go_editor
889
views
cmi2014
algorithms
identify-function
12
votes
3
answers
19
CMI2014-A-02
The $12$ houses on one side of a street are numbered with even numbers starting at $2$ and going up to $24$. A free newspaper is delivered on Monday to $3$ different houses chosen at random from these $12$. Find the probability that at least $2$ of these newspapers are delivered to ... with numbers strictly greater than $14$. $\frac{7}{11}$ $\frac{5}{12}$ $\frac{4}{11}$ $\frac{5}{22}$
go_editor
asked
in
Probability
May 27, 2016
by
go_editor
2.1k
views
cmi2014
probability
20
votes
4
answers
20
CMI2014-A-01
For the inter-hostel six-a-side football tournament, a team of $6$ players is to be chosen from $11$ players consisting of $5$ forwards, $4$ defenders and $2$ goalkeepers. The team must include at least $2$ forwards, at least $2$ defenders and at least $1$ goalkeeper. Find the number of different ways in which the team can be chosen. $260$ $340$ $720$ $440$
go_editor
asked
in
Combinatory
May 27, 2016
by
go_editor
2.3k
views
cmi2014
combinatory
discrete-mathematics
normal
To see more, click for the
full list of questions
or
popular tags
.
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged cmi2014
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...