Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Quicksort (n = 500)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
31,600
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 23, 2010

No description available.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • defragmentation complete...

  • @bhexric the pivots are most definitely random, look at where the first pivot is... its like 80% of the way to the right hand side. You CAN write quicksort to chose the median for the pivot, but this one doesn't.

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • @rolfsaurusa What? How do you find the median of an unsorted list of numbers without sorting it?

  • its quick, but the hungarian dance one is much funnier.)

  • @teeds88 fuck you

  • @spechtbert what? a random number generator is not deterministic. the degree of randomness of those can be subject of discussion, true, but they are sufficient for the best performance pivot. and if you believe truly random events don't exist, you're wrong.

  • @teeds88 threre is no random pivot, the choice is always deterministic.

  • random pivot has the best run time.

    now, do this threaded! ;)

  • @Z4KJ0N3S little schoolboys and girl just exchange links these days, not minding the content.

  • @dachevashe true. Although I still think I responded to what he meant, you are technically correct.

  • @rolfsaurusa You're not correct neither. It can very well just select x[(l + r)/2] as a pivot, as the initial array is permuted randomly, this is essentially a random pivot. bhexric was not saying about median, but about x[(l+r)/2] rather, where l and r are left and right boundaries of subarray.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more