資料結構›Ch7 搜尋與排序
第 51 題/共 76 題
◀ DS 51/76
51. Selection Algorithm、Median of Medians
#DS-07-051易Selection AlgorithmMedian of Medians
  1. Given n integers, the problem of searching for the k'th largest integer among the n integers is called "selection problem". Selection problems can be solved in linear time. Typical implementation starts with partitioning the n integers into ⌈n/5⌉\lceil n/5\rceil groups. Then we solve a sequence of median finding (selection problem again) from integers of smaller problem size. Finally we can drop out more than a quarter of the n integers. The next iteration is to deal with a selection problem of size less than (3/4)n(3/4)n. Thus linear time is achieved. Which of the following statement(s) is(are) correct?
📄 交大110
跳轉到第題
▤完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序
本章題號 · 41–60 / 76