作者ie925155 (天佑台湾!)
看板Grad-ProbAsk
标题[理工] [DS]98-中山资工
时间Mon Mar 22 21:10:57 2010
Analyze the behavior of QUICKSORT in the case where a schizophrenic adversary
picks the best possible splitter (partitioning element) instead of the worst
,every other time (ie, he alternates between best and worest). What running
time is induced by this "adversary"?
题目不懂在问什麽? 还有请问如何解?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.4.6
※ 编辑: ie925155 来自: 59.115.4.6 (03/22 21:11)
1F:→ keepoo:阿就问你最佳解怎麽来的及时间复杂度吧? 03/22 21:13
2F:推 assassin88:请问你知道middle of three吗? 03/22 21:14
3F:→ ie925155:知道 解决QSORT worst case的方法 03/22 21:18
4F:推 AIdrifter:alternates? 我还以为是一下worst 一下best 交替计算> < 03/22 22:02
5F:推 haha31:楼上正解 03/22 22:30