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

Quick Sort

Loading...

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

Uploaded by on Nov 7, 2009

Demonstration of a quick sort with playing cards.

Music:
Heavenly Cows
ZmeiRaduga
http://www.jamendo.com/en/album/28834

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 11 dislikes

Link to this comment:

Share to:

Top Comments

  • @clashina No, it's not irony. Quicksort is a very efficient sorting algorithm that runs in linearithmic time on average. The method that most people use to sort a deck of cards, for example, is very similar to an algorithm called insertion sort, which runs in quadratic time on average. There isn't much of a difference between linearithmic and quadratic sorts with a very small number of items, but as that number grows, linearithmic sorts become noticeably better very quickly.

  • clashina is clearly not a computer scientist

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • nice demonstration, but WTF IS THAT MUSIC

  • @dn3sMusic It's reasonable to stick with one person if you're trying to demonstrate the raw number of comparisons/operations required. Generally, you don't have an infinite number of CPUs/threads available, so while the divide-and-conquer algorithms tend to be very efficient, you can still think of them as doing just one thing at a time.

  • lovin the background music. does it really make sense to demonstrate a recursive algorithm with only one person? cuz the beauty of quicksort is the "divide and conquer" approach if i'm not mistaken. so each time you divide it up, shouldn't a new person enter to handle the new thread created?

  • @siliconsurf the only random "shit" that happens is the moment you choose a pivot.

  • You're vids are awesome, your background songs ...

  • Quicksort is in Theta (n*logn) on average, only in Movements best case it is in Theta(n). Anyway - its fast.

  • It's easy with these playing cards, but my teacher wants it with C++.

  • what kind of random shit is this?

  • this is hard to follow..

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