Major algorithms of sorting?

Asked

Viewed 156 times

-3

What are the main sorting algorithms?

If possible with examples in C.

I don’t know when to use one or the other.

  • Did the answer solve your problem? Do you think you can accept it? If you don’t know how, check out the [tour] how to do it. This would help a lot to indicate that the solution was useful to you and help everyone understand that. You can also vote for anything on the entire site (when you have 15 points).

1 answer

2

The question is a little wide and putting their code would be too much, because it would only be an implementation.

The Quicksort is fired the most used because it meets almost all situations well. Others may be better in certain situations.

To Wikipedia has a great comparison of them.

One visual form to understand their workings. Other.

Other questions that may help:

  • Which one is faster?

  • If there were, no one would use others. Each case is a case.But there must be a reason QS is the most used.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.