Quicksort Analysis, Start Linear Time Search




CS146

Chris Pollett

Mar 5, 2014

Outline

Introduction

Balanced Splits

Intuitions on Quicksort

Combining good and bad splits

Randomized Quicksort

Probability

Expected Run-time of RANDOMIZED-QUICKSORT

More Analysis

When are two items not compared?

`Pr{z_i \text( is compared to )z_j}`

`E[X]` and Expected Run-time of QUICKSORT

Sorting in Linear Time