Misc,

Analysis of Quicksort

.
(1997)

Abstract

mallest value. Then, S 1 is empty and S 2 has n \Gamma 1 values, and so TW (n) = ( 0 if n 1 TW (n \Gamma 1) + n \Gamma 1 otherwise. Author's address: Dept. of Computer Sciences, Univ. of North Texas, P.O. Box 13886, Denton, TX 76203--3886, U.S.A. Email: ian@ponder.csci.unt.edu. URL: http://hercule.csci.unt.edu/ian. The solution to this recurrence is easily obtained by repeated substitution: TW (n) = TW (n \Gamma 1) + n \Gamma 1 = TW (n \Gamma 2) + (n \Gamma 2) + (n \Gamma 1) = TW<F3

Tags

Users

  • @lenz

Comments and Reviews