aglasem.com
Schools Admission Mock Test Playground
ClassChoose class
StateSelect state

CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science

Download the CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science PDF for free at AglaSem. Solving this previous year question paper helps you understand the real CMI Entrance Exam exam pattern, question types, difficulty level and marking scheme, and reveals important repeated topics — practise it to build speed, accuracy and exam confidence. More Detail
CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science - Page 1 of 5

About CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science

CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science is available here for free download. Published by Default for CMI Entrance Exam, this question paper can be viewed online or downloaded as a PDF (5 pages). Candidates preparing for CMI Entrance Exam can use CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science to understand the exam pattern, the type of questions asked, and the overall difficulty level.

Frequently Asked Questions

How can I download CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science?

Open this page and click the Download button to save CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science as a PDF. It is completely free on AglaSem Docs.

Is CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science free to download?

Yes. CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science can be viewed online and downloaded as a PDF free of cost on AglaSem Docs.

How many pages does CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science have?

CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science contains 5 pages, which you can read online or download together as a single PDF.

Where can I find more CMI Entrance Exam study material?

You can find more CMI Entrance Exam question papers, sample papers, syllabus, and answer keys on AglaSem Docs.

CMI Entrance Exam 2023 Question Paper M.Sc PhD Computer Science – Text

Read the full text of this question paper below — useful to quickly search, copy and reference the content online without downloading the PDF.

📄 View text version (5 pages)

Page 1

CHENNAI MATHEMATICAL INSTITUTE
M.Sc. / Ph.D. Programme in Computer Science
Entrance Examination, 2023

Part A has 10 questions of 3 marks each. Each question in Part A has four choices, of which
exactly one is correct. Part B has 7 questions of 10 marks each. The total marks are 100.
Answers to Part A must be entered directly on the computer.
In all questions related to graphs, unless otherwise specified, we use the word “graph”
to mean an undirected graph with no self-loops, and at most one edge between any pair of
vertices.

Part A
1. A candy factory uses 5 fruit flavours {A, B, C, D, E}. Each candy is made using one or
more of these flavours. The taste of a candy depends on which flavours are included.
A kid may prefer some combination of flavours more than others. For example, the
kid may prefer the combination {A, B, C} over {B, C}. The preference order of a kid
is a total ordering of all the combinations, the ones occurring earlier being preferred
more.
Suppose you want to throw a party and do not want more than one kid with the same
preference order. What is the maximum number of kids that can attend such a party?

(a) (2(5!) ) − 1
(b) ((25 ) − 1)!
(c) ((5 ∗ 4)/2) − 1
(d) 5 ∗ 5

2. How many elements are in the following set?

{(A, B) | A ⊆ B ⊆ {1, 2, 3, . . . , n}}

(a) 2n−1
(b) 3n
(c) 2n+1
(d) 22n

3. At a kindergarten, 2024 kids sit in a circle. Suddenly, each kid randomly pokes either
the kid to their left or the one to their right with equal probability. What is the
expected number of unpoked kids?

(a) 1
(b) 253
(c) 506
(d) 1012

1

Page 2

4. A graph is k-regular if all the vertices have degree exactly k. What is the minimum
number of vertices in a k-regular graph that has no 3-length cycles?

(a) k
(b) k + 1
(c) 2k
(d) 2k + 1

5. In a connected graph, any two paths of maximum length:

(a) have at least one vertex in common, but not necessarily an edge in common
(b) have at least one edge in common
(c) have at least two common vertices, but not necessarily an edge in common
(d) have at least two edges in common

6. Consider the automaton over the alphabet {a, b, c} shown in Figure 1. The initial
state is the leftmost state. States with a double circle are accepting states.

a, b
a, b
b, c
b, c

c, a
c, a

Figure 1: Automaton for Question 6

What is the complement of the language accepted by this automaton?

(a) {}
(b) c∗ + a∗ + b∗
(c) (a + b)∗ + (b + c)∗ + (c + a)∗
(d) None of the above

7. Let L be a regular language, and let n = 10. Which of the following statements is
true?

(a) L ∪ {an bn } is regular
(b) L ∪ {an bn } is context-free, but not regular
(c) L ∪ {an bn } is regular, but not context-free
(d) L ∪ {an bn } is not context-free

2

Page 3

8. Let f : N → N and g : N → N be functions over the set N of natural numbers. We
will say:

• f (n) = O(g(n)) if there exist natural numbers c and x0 such that f (n) ≤ c g(n)
for all n ≥ x0
• f (n) = 2O(g(n)) if there exist natural numbers c and x0 such that f (n) ≤ 2(c g(n))
for all n ≥ x0 .

Consider the following statements

(I) 3n = O(2n ) (II) 3n = 2O(n)

(a) Both (I) and (II) are true
(b) (I) is true and (II) is false
(c) (I) is false and (II) is true
(d) Both (I) and (II) are false

Questions 9 and 10 refer to the following two functions. We assume that all the arguments
are non-negative integers. The operation x div 2 divides x by 2 and returns an integer,
discarding the fractional part.

int f(int x, int i) { int g(int x) {
if (i == 0) { if (x <= 2)
if (even x) return 1;
return 0; else
else return 1 + g(x div 3);
return 1; }
} else {
return f(x div 2, i-1);
}
}
9. For how many values of i will f(1000,i) return 1?

(a) 2
(b) 5
(c) 6
(d) 10

10. What is the value of g(10000)?

(a) 3
(b) 9
(c) 12
(d) 15

3

Page 4

Part B
1. Let Σ = {a, b} be an alphabet. A palindrome is a word which reads the same when
read from left-to-right, or from right-to-left. For example, the words abba, aba and aa
are palindromes, whereas aabb and ab are not. A palindrome is said to be non-trivial
if it has length at least 2.
Let L be the set of all words that contain a non-trivial palindrome as a prefix, that is,

L = {w ∈ (a + b)∗ | w = uv for some non-trivial palindrome u and some v ∈ (a + b)∗ }

(a) Give an example of a word in L, which is not a palindrome.
(b) Give three examples of words not in L.
/ L for some x ∈ Σ∗ . What can you say about x?
(c) Suppose ax ∈
(d) Show that L is regular.

2. A non-empty collection S of subsets of a set U is a scattering of U if it satisfies the
following condition:

for all A, B ∈ S, A is not a proper subset of B.

(a) Let U = {1, 2, 3, 4, 5}. Give an example of a scattering of U .
(b) Is the following statement true? Justify your answer with a proof or a counterex-
ample.
• F is a scattering of U if and only if {U \ A | A ∈ F} is a scattering of U ,
where U \ A denotes the complement of A with respect to U .

3. Let a1 , . . . , an be integers. Show that for some k, m such that 1 ≤ k ≤ m ≤ n, the
sum ak + ak+1 + · · · + am is divisible by n. (Hint: Consider the sums a1 + · · · + ai
modulo n, for 1 ≤ i ≤ n.)

4. On the island of Knights, Knaves, and Normals, Knights always tell the truth, Knaves
always lie, and Normals sometimes tell the truth and lie sometimes.
One day Professor Raymond visited this island and met two inhabitants, A and B.
He already knew that one of them was a Knight and the other was a Normal, but
he didn’t know which was which. He asked A whether B was normal, and received
a Yes-or-No answer. Professor Raymond was then able to figure out who the Knight
was.
Who was the Knight – A or B?

4

Page 5

5. You are starting a new bus service. You are hiring drivers and conductors. A driver
and a conductor can run a bus only if they can speak a common language. There
are n drivers and m conductors who have applied for a job. Their CV has a list of
languages they speak.

(a) Given the CVs of the drivers and conductors, we want to calculate the maximum
number of buses that can be run. Show how to use graph matching to solve this
problem. (Note: You do not need to solve graph matching itself. Just demonstrate
how to use it for this problem.)
(b) You are in a hurry to get the bus service running. Whenever you get a new
application from a driver (or a conductor), you check if you can team this new
candidate with an existing conductor (or driver) who is free. If yes, you assign the
pair of them to a bus. If no, then the new candidate is added to the list of free
driver (or conductors).
Provide an example scenario where the above procedure does not compute the
maximum number of buses that can be run.

6. The input to the problem consists of (i) an array A[1, 2, . . . , n] of n positive integers
and (ii) a positive integer T . We are given the guarantee that at least one element
of the array is less than or equal to T . The task is to find the maximum sum of a
non-empty sub-collection of the integers from A which is less than or equal to T .
Describe an algorithm that solves this problem in O(nT ) time. The algorithm should
take an array A[1, 2, . . . , n] and an integer T as described above, and should output
a number T 0 ≤ T that is closest to T and can be realized as the sum of some sub-
collection of A. It is not required that the algorithm find the subset of indices which
forms the sum T 0 .

7. Consider the following code which computes a function f. The input to f is an array
A[1..m] which represents a number N in ternary. For example, A = [1, 2, 0] repre-
sents the number 15 since 15 = 1 ∗ 32 + 2 ∗ 31 + 0 ∗ 30 ; and A = [1,0,0,0] represents
the number 27. Function f uses the function pow(x,y) that returns xy . You may
assume that the first element in the array is not zero.

int f(A[1..m]) {
x = 1;
for j = 1 to m {
x = pow(x, 3);
y = pow(3, A[j]);
x = x * y;
}
return x;
}

(a) What are f([1,2]), f([1,2,0]) and f([1,2,2])?
(b) Suppose array A represents the number N. What is f(A) in terms of N?

5

Document Details

Board / OrgDefault
ExamCMI Entrance Exam
TypeQuestion Paper
Pages5
Updated22 Jul 2026

More for CMI Entrance Exam

📄Brochure 📄Question Paper 📄Solution