----------------------------------------------------------------------------- COMP 731 - Data Struc & Algorithms - Lecture 9 - Tuesday, July 11, 2000 ----------------------------------------------------------------------------- Today: o Quicksort analysis * Analyze quicksort under the assumption that one gets an n/10 - 9n/10 split every time: T(n) = T(n/10) + T(9n/10) + n Use a recursion tree to find that T(n) \le n log_{10/9} n \in O(n\lg n) * Now use the method from the Motwani/Raghavan book to analyze the expected-case behavior of Quicksort, getting the recurrence relation 2 T(n) = sum -------- 1<= i