卷別
資料結構與演算法
選擇國立臺灣大學 2025 · 考試 · 第 3 題
考科演算法
(5 points) Consider the following five DNA sequences:
a) ATCGTA
b) ATCGTT
c) GCATAG
d) GCATAC
e) TTAAGG
Which of the following statements is correct regarding the application of a -means clustering algorithm to these sequences ()?
- (A)The algorithm will always halt with exactly three optimal clusters regardless of the cluster size distance metric.
- (B)Using Hamming distance as the similarity measure, sequences a and b will always be in the same cluster.
- (C)The algorithm guarantees finding the globally optimal clustering solution for these sequences.
- (D)Using -mer frequency vectors () as features, sequence c and d will never be in the same cluster.
- (E)The time complexity of the -means algorithm for clustering these sequences is , where is the number of sequences.