Skip to content
Discussion options

You must be logged in to vote

Well, there is no "one best" sorting algorithm. Different ones may be best suited for different purposes and different languages. For very small data files, even a Bubble Sort may be best, as it has very little overhead. Quicksort is a classic, but have fun doing it in a language such as Fortran, with no recursion. Some sorts perform very well on almost-sorted data (such as adding one record to an already-sorted list), while doing horribly on a completely reverse-sorted input. It all depends.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@CoYildiz
Comment options

Answer selected by rerrcatch
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PhilterPaper
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
5 participants