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

How to Program Merge 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.
6,018
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 6, 2010

Note: To be able to actually read whats on screen, please switch to 480p resolution.

A short tutorial on how to program the merge sort algorithm. This is based on Java, using Eclipse as our IDE and arrays as our data structure.
Level: Beginner
Topics: Recursion and merge sort.

Code will be provided if you leave me a message and let me know why you need/want the source.

Thanks, and enjoy.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • This is a big help. Thanks for taking the time to do this.

  • Yo what would need to be used inorder to properly use this for string and not integers?

  • great great tutorial, much clearer than my professor in class who spend over an hour trying to go over it

  • @Rusmanpatsan Ask the user to input the length of the array. And that input can be used for comparing length. Remember to change it in your for loop as well.

  • Good explanation. Wouldn't it be simpler to fill the right side with right [ j - midpoint ] instead of keeping track of a whole new variable?

  • i want to source you in my javadoc...can i have your name

    i used your implementation of merge sort in my program that i am making for a class

  • thank u buddy. you have explained merge sort really well. you have a very clear thinking to write this algorithm so elegantly. we surely have a lot to learn from you...:) :)

    from today my motto is think simple... code simple!

  • your explanation was very goor. Thank u very much...

  • thank you so much for helping us without expecting pay. need more ppl like you

  • Dude..... you are the smartest man alive

    .

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