Comparison of bubble sort and quicksort algorithms. VTK Python programming example

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,115
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 6, 2010

Comparison of bubble sort (up) and quicksort algorithms (down) for sorting 30 items. The color represents the value of the item, so that once they are ordered they should be ranging from blue to red. Both algorithms are studied in basic computer science courses, here they are presented ather as an example of programming with Python-VTK. More information here http://venus.ceride.gov.ar/twiki/bin/view/Cimec/SomeVTKExamples#Comparison_of...

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (mariostorti)

  • You do an excellent job of displaying the disparity in swaps between the two sorts.

    In most cases quick sort is better than bubble sort. But this artificially inflates quick sort. You fail to display the comparisons that each does. In a perfectly ordered array, bubble sort will always finish first. In your video it would display them both finishing on the same step.

  • @Ishakaru I don't agree with you, this case doesn't "artificially inflate" the gain of quick-sort. In fact statisttically this is the most typical case. The case were the array is initially ordered is statistically insignificant. On the other hand, the purpose of this video is to show an example of VTK-Python programming, rather to focus on the sorting algorithms.

  • What is the name of the song in this video?

  • @jon1579193 I don know! I choose it from the AudioSwap feature, but now I don't remember which one, sorry...

  • @jon1579193 I finally found which is the cong. It is Polonaise No. 16 in G sharp minor Polonaise. The Artist it Sandor Falvay. I took it from YouTube's AudioSwap service.

  • @jon1579193 I finally found which is the cong. It is Polonaise No. 16 in G sharp minor Polonaise. The Artist it Sandor Falvay. I took it from YouTube's AudioSwap service.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • want to know composer too...

  • What is the name of the piano piece? Who is the composer? Thank you for your answer

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