uiz Space

May 2025 term · Algorithmic Thinking in Bioinformatics · BSBT4001

Algorithmic Thinking in Bioinformatics Quiz 2: 3 August 2025 (May 2025 term)

The IIT Madras BS Algorithmic Thinking in Bioinformatics (Algorithmic Thinking in Bioinformatics) Quiz 2 paper sat on 3 Aug 2025, in the May 2025 term: 18 questions for 53 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
18
Marks
53
Duration
120 min
MCQ
11
MSQ
1
Numerical
6

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIA2 03 Aug 2025 · No negative marking.

Question 1

+5 marksOne correct option

Given below are three algorithms for the motif finding problem. Identify which figure belongs to which algorithm.

text
████████
randomly select k-mers Motifs = (Motif_1, ..., Motif_t) in each string from Dna
BestMotifs ← Motifs
for j ← 1 to N
i ← RANDOM(t)
Profile ← profile matrix formed from all strings in Motifs except for Motif_i
Motif_i ← Profile-randomly generated k-mer in the i-th sequence
if SCORE(Motifs) < SCORE(BestMotifs)
BestMotifs ← Motifs
return BestMotifs

(a) Figure I

text
████████
BestMotifs ← motif matrix formed by first k-mers in each string from Dna
for each k-mer Motif in the first string from Dna
Motif_1 ← Motif
for i = 2 to t
form Profile from motifs Motif_1, ..., Motif_{i-1}
Motif_i ← Profile-most probable k-mer in the i-th string in Dna
Motifs ← (Motif_1, ..., Motif_t)
if SCORE(Motifs) < SCORE(BestMotifs)
BestMotifs ← Motifs
return BestMotifs

(b) Figure II

text
████████
randomly select k-mers Motifs = (Motif_1, ..., Motif_t) in each string from Dna
BestMotifs ← Motifs
while forever
Profile ← PROFILE(Motifs)
Motifs ← MOTIFS(Profile, Dna)
if SCORE(Motifs) < SCORE(BestMotifs)
BestMotifs ← Motifs
else
return BestMotifs

(c) Figure III

  1. A

    Figure I: Gibbs Sampling; Figure II: Randomized Motif Search; Figure III: Greedy Motif Search

  2. B

    Figure I: Gibbs Sampling; Figure II: Greedy Motif Search; Figure III: Randomized Motif Search

  3. C

    Figure I: Greedy Motif Search; Figure II: Randomized Motif Search; Figure III: Gibbs Sampling

  4. D

    Figure I: Randomized Motif Search; Figure II: Gibbs Sampling; Figure III: Greedy Motif Search

Show answer

Correct answer

  • B

    Figure I: Gibbs Sampling; Figure II: Greedy Motif Search; Figure III: Randomized Motif Search

Question 2

+3 marksOne correct option

A dataset is clustered into two groups using soft K-means. The distance of a data point from the two cluster centroids is d1=7.0d_1 = 7.0 and d2=2.0d_2 = 2.0, respectively. Using the soft K-means formula with β=0.3\beta = 0.3, compute the probabilities of the data point belonging to each cluster. The probability formula is:

P(Ck∣x)=e−βdk∑j=1Ke−βdjP(C_k \mid x) = \frac{e^{-\beta d_k}}{\sum_{j=1}^{K} e^{-\beta d_j}}

What are the probabilities P(C1)P(C_1) and P(C2)P(C_2)?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 3

+3 marksOne correct option

In a Gaussian Mixture Model (GMM) with two components, the parameters are as follows:

  • Component 1: Mean (μ1)=2(\mu_1) = 2, Variance (σ12)=1(\sigma_1^2) = 1, Mixture Proportion (π1)=0.6(\pi_1) = 0.6
  • Component 2: Mean (μ2)=5(\mu_2) = 5, Variance (σ22)=2(\sigma_2^2) = 2, Mixture Proportion (π2)=0.4(\pi_2) = 0.4

Given a data point x=3x = 3, calculate the responsibilities (posterior probabilities) for each component. Hint:

N(x∣μ,σ2)=12πσ2exp⁡(−(x−μ)22σ2)\mathcal{N}(x \mid \mu, \sigma^2) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right)

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 4

+2 marksOne correct option

Consider a univariate Gaussian Mixture Model (GMM) with 3 components. Suppose for component 2 you are given the following data points and corresponding responsibilities:

xix_iri,2r_{i,2}
30.7
20.5
50.5

Compute the updated mean μ2\mu_2 for component 2. Which of the following options correctly represents the updated mean μ2\mu_2?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 5

+2 marksOne correct option

In a soft K-means clustering model, each data point is DD-dimensional and there are KK clusters. The model learns:

  • A mean vector of dimension DD for each cluster,
  • A separate variance (scalar) for each dimension in each cluster,
  • A cluster proportion (prior probability) for each cluster (which must sum to 1).

How many independent parameters are there in total?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 6

+3 marksOne or more correct options

Which of the following statements about additive distance matrices are true?

Select all that apply.

  1. A

    Every 3 x 3 distance matrix is additive.

  2. B

    Every 4 x 4 distance matrix is additive.

  3. C

    There exists a 3 x 3 distance matrix that is not additive.

  4. D

    There exists a 4 x 4 distance matrix that is not additive.

  5. E

    For every additive distance matrix, there exists a simple tree fitting the matrix.

Show answer

Correct answers

  • A

    Every 3 x 3 distance matrix is additive.

  • D

    There exists a 4 x 4 distance matrix that is not additive.

  • E

    For every additive distance matrix, there exists a simple tree fitting the matrix.

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 16

Question 8

+4 marksNumerical answer
Show answer

Correct answer: 3

Question 9

+3 marksNumerical answer

What is the number of edges in the corresponding suffix trie? Enter the value as a single integer.

Show answer

Correct answer: 32

Question 10

+2 marksNumerical answer

What is the length of the reference sequence from which this suffix tree has been constructed? Include $ in the calculation of length. Enter the value as a single integer.

Show answer

Correct answer: 8

Question 11

+3 marksOne correct option

Use the given suffix tree to determine which of the following is the suffix array for the reference sequence ? Assume $ comes first in the alphabet.

  1. A

    [7, 6, 5, 3, 1, 4, 2, 0]

  2. B

    [7, 6, 5, 3, 1, 4, 0, 2]

  3. C

    [7, 5, 3, 1, 6, 4, 2, 0]

  4. D

    [7, 5, 3, 1, 6, 4, 0, 2]

  5. E

    None of these

Show answer

Correct answer

  • C

    [7, 5, 3, 1, 6, 4, 2, 0]

Question 12

+2 marksOne correct option

Given below in Table 2 is the profile matrix derived from a set of 10 motifs Motifs\mathit{Motifs}. Answer the given subquestions with respect to the same.

Table 2: Profile Matrix Profile(Motifs)=\mathit{Profile}(\mathit{Motifs}) =

A:0.20100.50.7
C:0.10.6000.20.3
G:0.10.4000.30
T:0.600100

Find the consensus of the motifs?

  1. A

    TCATGA

  2. B

    AACCGT

  3. C

    TCTAAA

  4. D

    TCATAA

Show answer

Correct answer

  • D

    TCATAA

Question 13

+2 marksNumerical answer

Given below in Table 2 is the profile matrix derived from a set of 10 motifs Motifs\mathit{Motifs}. Answer the given subquestions with respect to the same.

Table 2: Profile Matrix Profile(Motifs)=\mathit{Profile}(\mathit{Motifs}) =

A:0.20100.50.7
C:0.10.6000.20.3
G:0.10.4000.30
T:0.600100
Show answer

Correct answer: 16

Question 14

+4 marksNumerical answer

Given below in Table 2 is the profile matrix derived from a set of 10 motifs Motifs\mathit{Motifs}. Answer the given subquestions with respect to the same.

Table 2: Profile Matrix Profile(Motifs)=\mathit{Profile}(\mathit{Motifs}) =

A:0.20100.50.7
C:0.10.6000.20.3
G:0.10.4000.30
T:0.600100

Calculate the entropy of the first column. Round up the answer to 3 decimal places.

Show answer

Correct answer: 1.575 (accepted within ±0.005)

Question 15

+5 marksOne correct option

You are applying the Neighbor-Joining algorithm on some distance matrix. The D⋆D^\star matrix obtained during some iteration is given in Table 1. Answer the given subquestions with respect to the same.

Table 1: D⋆D^\star matrix

ABCDE
A0-12-16-11-15
B0-10-20-12
C0-12-16
D0-11
E0
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 16

+4 marksOne correct option

You are applying the Neighbor-Joining algorithm on some distance matrix. The D⋆D^\star matrix obtained during some iteration is given in Table 1. Answer the given subquestions with respect to the same.

Table 1: D⋆D^\star matrix

ABCDE
A0-12-16-11-15
B0-10-20-12
C0-12-16
D0-11
E0

Which of the following represents the distance matrix for the next iteration?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 17

+2 marksOne correct option

You are given the Burrows-Wheeler Transform BWT\mathit{BWT} of a nn-length string Text\mathit{Text}. Assume that the $ symbol is included at the end of Text\mathit{Text}. Let First\mathit{First} represent the string obtained by sorting the characters of BWT\mathit{BWT}. Assume that every occurrence of a repeated character is considered as an unique character (both in BWT\mathit{BWT} and First\mathit{First}) and is sequentially numbered.

Let Text[i]\mathit{Text}[i], BWT[i]\mathit{BWT}[i] and First[i]\mathit{First}[i] represent the ithi^{\text{th}} character in Text\mathit{Text}, BWT\mathit{BWT} and First\mathit{First} respectively.

We use these three strings to construct a directed graph G=(V,E)G = (V, E) as follows. Every character in Text\mathit{Text} including the repeated characters forms a node in GG, so that there are nn nodes in the graph. Hence, for every 1≤i≤n1 \le i \le n, Text[i]\mathit{Text}[i] is a node in GG.

For example, consider the string NGNNING\$$. There are 4 occurrences of N,2occurrencesof, 2 occurrences of Gand1occurrencesofbothand 1 occurrences of bothI and \. So, the vertex set VV of the graph GG is \{N_1,\ N_2,\ N_3,\ N_4,\ G_1,\ G_2,\ I,\ \}$.

Now, we add edges to GG as follows: For every location 1≤i≤n1 \le i \le n, we add a directed edge from First[i]\mathit{First}[i] to BWT[i]\mathit{BWT}[i]. Answer the given subquestions with respect to this graph GG.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 18

+1 markOne correct option

You are given the Burrows-Wheeler Transform BWT\mathit{BWT} of a nn-length string Text\mathit{Text}. Assume that the $ symbol is included at the end of Text\mathit{Text}. Let First\mathit{First} represent the string obtained by sorting the characters of BWT\mathit{BWT}. Assume that every occurrence of a repeated character is considered as an unique character (both in BWT\mathit{BWT} and First\mathit{First}) and is sequentially numbered.

Let Text[i]\mathit{Text}[i], BWT[i]\mathit{BWT}[i] and First[i]\mathit{First}[i] represent the ithi^{\text{th}} character in Text\mathit{Text}, BWT\mathit{BWT} and First\mathit{First} respectively.

We use these three strings to construct a directed graph G=(V,E)G = (V, E) as follows. Every character in Text\mathit{Text} including the repeated characters forms a node in GG, so that there are nn nodes in the graph. Hence, for every 1≤i≤n1 \le i \le n, Text[i]\mathit{Text}[i] is a node in GG.

For example, consider the string NGNNING\$$. There are 4 occurrences of N,2occurrencesof, 2 occurrences of Gand1occurrencesofbothand 1 occurrences of bothI and \. So, the vertex set VV of the graph GG is \{N_1,\ N_2,\ N_3,\ N_4,\ G_1,\ G_2,\ I,\ \}$.

Now, we add edges to GG as follows: For every location 1≤i≤n1 \le i \le n, we add a directed edge from First[i]\mathit{First}[i] to BWT[i]\mathit{BWT}[i]. Answer the given subquestions with respect to this graph GG.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • C