LN13 Space-efficient sequence alignment, Union-and-Find Flashcards

1
Q

What is the space-efficient method for sequence alignment in dynamic programming?

A

By storing only the current and previous rows of the DP matrix, we reduce space complexity to O(m) for scores, but we use divide-and-conquer with midpoint identification to trace the optimal path efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does divide-and-conquer help in space-efficient sequence alignment?

A

By finding the middle point on the optimal path and recursively solving subproblems, we reduce the memory requirement while retaining the optimal solution structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the time complexity of the space-efficient sequence alignment algorithm?

A

The time complexity is O(nm) due to the recursive structure and midpoint computation, but it achieves a space complexity of O(n) due to the divide-and-conquer approach.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define clustering with maximum spacing.

A

It is a clustering problem where points are partitioned into k clusters such that the minimum distance between points in different clusters (spacing) is maximized.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can the clustering with maximum spacing problem be solved using Kruskal’s MST algorithm?

A

Run Kruskal’s algorithm until n - k edges are included. The resulting clusters (disconnected components) maximize the spacing between any two clusters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why does Kruskal’s MST algorithm yield optimal spacing for clustering?

A

Any partition into k clusters must have a minimum inter-cluster edge cost greater than or equal to the largest edge removed, ensuring maximum spacing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the significance of spacing in clustering problems?

A

Spacing measures the minimum distance between any two points in different clusters, ensuring clusters are well-separated and increasing clarity in classification tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the midpoint approach in sequence alignment work to find the optimal alignment?

A

By calculating the score at the midpoint of one sequence and summing scores from both ends, the algorithm identifies the best cut point, dividing the problem into smaller, solvable subproblems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the recurrence relation for the space-efficient sequence alignment algorithm?

A

The recurrence is T(n, m) = 2T(n, m/2) + O(nm), yielding an O(nm log m) bound, simplified to O(nm) in time and O(n) in space after optimization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the role of Kruskal’s algorithm in clustering problems, specifically with maximum spacing?

A

Kruskal’s MST construction clusters data by stopping after enough edges are selected to form the desired number of clusters, ensuring maximum spacing between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly