資料結構›Ch7 搜尋與排序第 43 題/共 76 題
43. Selection Algorithm、Median of Medians
#DS-07-043中Selection AlgorithmMedian of Medians
- Linear time algorithm for the Selection problem, (the computational problem to find the kth largest number among n numbers):
(a) Typical implementation is to divide the n numbers into groups. We then find the medians of the groups, and then find the median of those medians. After time, we can drop a set S of numbers because S does not contain the answer. Show that where |S| is the size of S. (4%).
(b) Can we divide the n numbers into groups instead of groups? Why or why not? (5%).
📄 交大112
▤完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序