正在加载图片...
Sorting Quicksort Quicksort:Time Complexity Impression Intuition: Quick sort performs quite well in practice. We usually obtain an O(nlg n)execution in most cases,rather than the worst case. WHY? PARTITION produces a mix of "good"and "bad"splits. (n-1)/2 (n-1)2 (m-12-1 (m-1)2 (a) (b) T(n)=O(nlgn) MA Jun (Institute of Computer Software) Problem Solving Api23.2020 9/40Sorting Quicksort Quicksort: Time Complexity Impression & Intuition: Quick sort performs quite well in practice. We usually obtain an O(n lg n) execution in most cases, rather than the worst case. WHY? Partition produces a mix of “good” and “bad” splits. T(n) = O(n lg n) MA Jun (Institute of Computer Software) Problem Solving April 23, 2020 9 / 40
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有