卷別
資料結構與演算法
選擇國立臺灣大學 2025 · 考試 · 第 4 題
考科演算法
(5 points) Consider two protein sequences and of lengths and respectively. You are tasked with implementing a dynamic programming algorithm to find the optimal global alignment between those sequences. Given the following definitions:
- A match score of for identical amino acids.
- A mismatch penalty of for different amino acids.
- A gap penalty of for each gap introduced.
Which of the following statements is correct regarding the dynamic programming solution to this alignment problem?
- (A)The time complexity of the algorithm is .
- (B)The space complexity of the algorithm is .
- (C)The recurrence relation for the optimal alignment score at position in the dynamic programming matrix is: .
- (D)The traceback procedure to reconstruct the optimal alignment always starts from the top-left corner of the dynamic programming matrix.
- (E)The algorithm guarantees finding all possible optimal alignments between the two sequences.