摘要:
习题9.1-1 Show that the second smallest of n elements can be found with n + ⌈lg n⌉ - 2 comparisons in the worst case. (Hint: Also find the smallest element.) 卡了2个小时,其实看到lg n 已经往heap那里想了,但总是想当然的以为T(n)是O(... 阅读全文
posted @ 2009-02-18 03:07 kethin 阅读(314) 评论(0) 推荐(0)
浙公网安备 33010602011771号