×

udiprod's video: Visualization of Quick sort

@Visualization of Quick sort
See a new version of this video: http://www.youtube.com/watch?v=aXXWXz5rF64 (HD + narration) A demonstration of the Quick Sort sorting algorithm. Visit my homepage, https://www.udiprod.com/, or read about my latest book http://www.zutopedia.com It demonstrates two comparison sorting algorithms: Bubble sort and Quick sort. Comparison sorting algorithms are only allowed to 'see' the data through a sequence of pair-wise comparisons, therefore they are applicable to any type of comparable objects: numbers, strings, colored balls, etc Bubble sort is very simple but has poor performance. A comparison sorting algorithm's performance is usually measured by the number of comparisons it makes. Bubble sort performs on the order of n^2 comparisons to sort n elements. Quick sort is only slightly more complicated but usually performs much better (as demonstrated in the video). It performs on average an order of n log(n) comparisons to sort n elements. This is much lower than n^2 for large values of n. However, if the algorithm makes some 'unlucky' choices it might require n^2 comparisons after all. Other algorithms exist that guarantee the number of comparisons will not exceed n log(n), however, in practice Quick sort usually out-performs all other comparison sorting algorithms due to its simplicity. If other operations other than pair-wise comparisons are allowed, then a broader range of algorithms can be used. Some of them can perform much faster than Quick sort, but they are limited to a particular type of elements, e.g., numbers is a certain range.

3.5K

193
udiprod
Subscribers
133K
Total Post
31
Total Views
12.4M
Avg. Views
401.3K
View Profile
This video was published on 2009-02-21 23:21:22 GMT by @udiprod on Youtube. udiprod has total 133K subscribers on Youtube and has a total of 31 video.This video has received 3.5K Likes which are lower than the average likes that udiprod gets . @udiprod receives an average views of 401.3K per video on Youtube.This video has received 193 comments which are lower than the average comments that udiprod gets . Overall the views for this video was lower than the average for the profile.

Other post by @udiprod