- 30
- 0
- 约1.98万字
- 约 25页
- 2019-05-05 发布于广东
- 举报
Design and Analysis of Algorithms
Heaps and Heapsort
Reference:
CLRS Chapter 6
Topics:
• Heaps
• Heapsort
• Priority queue
Huo Hongwei 1
Recap and overview
• The story so far . . .
2
– Insertion sort running time of Θ(n ); sorts in place.
– Merge sort running time of Θ(n lg n); needs auxiliary
storage Θ(n).
• Next . . .
– Heapsort running time of Θ(n lg n); sort in place.
– Quicksort running time of Θ(n lg
原创力文档

文档评论(0)