Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Advanced Algorithms
Inclusion-exclusion counting
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
End Term · 31 Aug 2025 (FN)End Term
Read the passage below, then answer Q1–Q5

Based on the above data, answer the given subquestions.
Q1MCQ2 Marks·Choose one option
- A3^n
- B2^n
- Cn^3
- Dn^2
- Q2MCQ2 Marks·Choose one option

- A2^n
- Bn
- C1
- D0
- Q3MCQ2 Marks·Choose one option

- A3^n
- B2^n
- C1
- D0
- Q4NAT2 Marks·Write the number
For n = 4, calculate the number of sequences of length 4 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer: - Q5NAT2 Marks·Write the number
For n = 5, calculate the number of sequences of length 5 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer:
End Term · 31 Aug 2025 (AN)End Term
Read the passage below, then answer Q6–Q10

Based on the above data, answer the given subquestions.
Q6MCQ2 Marks·Choose one option
- A3^n
- B2^n
- Cn^3
- Dn^2
- Q7MCQ2 Marks·Choose one option

- A2^n
- Bn
- C1
- D0
- Q8MCQ2 Marks·Choose one option

- A3^n
- B2^n
- C1
- D0
- Q9NAT2 Marks·Write the number
For n = 4, calculate the number of sequences of length 3 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer: - Q10NAT2 Marks·Write the number
For n = 6, calculate the number of sequences of length 5 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer:
Quiz 2 · 3 Aug 2025 (AN)Quiz 2
Read the passage below, then answer Q11–Q15

Based on the above data, answer the given subquestions.
Q11MCQ1 Mark·Choose one option
- A

- B

- C

- D

- A
- Q12MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q13MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q14NAT2 Marks·Write the number
For n= 4, calculate the number of sequences of length 4 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer: - Q15NAT2 Marks·Write the number
For n = 5, calculate the number of sequences of length 5 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Your answer: