An Evil question in CLRS

 CLRS 可称作算法圣经。最近在重新温习。看到一个分享习题答案作者的吐槽。笑了。

Show that when all elements are distinct, the best-case running time ofHEAPSORTisΩ(nlgn).

http://clrs.skanev.com/06/04/05.html

This proved to be quite tricky. My initial solution was wrong. Also, heapsort appeared in 1964, but the lower bound was proved by Schaffer and Sedgewick in 1992. It's evil to put this an exercise.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,967评论 0 23
  • 谨以此文献给去世九周年的婆婆: 每过春节我都会想起去世的婆婆,婆婆一生坎坷,性格倔强,吃苦耐劳,她是全村出了名的...
    Doctor秀阅读 1,625评论 16 9
  • 或是天上人挥洒出一点笔墨, 带给了人间一场大雨滂沱。 有人撑起了雨伞, 有人戴上了衣帽, 人海之中形色匆匆, 生怕...
    玄白凉阅读 491评论 0 0