阿摩線上測驗 登入

試題詳解

試卷:104年 - 104 國立交通大學_碩士班考試入學試題_資訊聯招:資料結構與演算法#113199 | 科目:研究所、轉學考(插大)◆資料結構與演算法

試卷資訊

試卷名稱:104年 - 104 國立交通大學_碩士班考試入學試題_資訊聯招:資料結構與演算法#113199

年份:104年

科目:研究所、轉學考(插大)◆資料結構與演算法

38. Professor Chen uses the following algorithm for merging k sorted lists, each having n/k elements. He takes the first list and merges it with the second list using a linear-time algorithm for merging two sorted lists, such as the merging algorithm used in merge sort. Then, he merges the resulting list of 2n/k elements with the third list, merges the list of 3n/k elements that results with the fourth list, and so forth, until she ends up with a single sorted list of all elements. What is the worst-case running time of the professor Chen's algorithm in terms of n and k.
(A)θ(log(nk))
(B)θ(nk)
(C)θ(nlogk)
(D)θ(lognlogk)
(E)θ(n)

正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#7102364
未解鎖
1. 題目解析 此題目要求我們分析陳教授...
(共 1139 字,隱藏中)
前往觀看
0
0