Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

March 6, 2012

Computer Algorithms: Merge Sort

Filed under: Algorithms,Merge Sort — Patrick Durusau @ 8:10 pm

Computer Algorithms: Merge Sort

From the post:

Basically sorting algorithms can be divided into two main groups. Such based on comparisons and such that are not. I already posted about some of the algorithms of the first group. Insertion sort, bubble sort and Shell sort are based on the comparison model. The problem with these three algorithms is that their complexity is O(n2) so they are very slow.

So is it possible to sort a list of items by comparing their items faster than O(n2)? The answer is yes and here’s how we can do it.

Nice illustrations!

I suspect that algorithms and graph algorithms in particular are going to become fairly common here. Suggestions of work or posts that I should cover most welcome!

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress