Skip to content

Instantly share code, notes, and snippets.

@sekharp
Forked from stevekinney/gist:9e9cfeb225c8133fda73
Last active February 12, 2016 14:27
Show Gist options
  • Save sekharp/08ac1ab2d05f77f2051c to your computer and use it in GitHub Desktop.
Save sekharp/08ac1ab2d05f77f2051c to your computer and use it in GitHub Desktop.
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
-It all depends on what type of data you're sorting and whether you're trying to optimize for use of memory/computing power
-Bubble sort is useful to study but generally not useful in real world application. They're slow and take a lot of memory
-Insertion sorts are better in that they're more stable, but for application on large datasets are still bad
-Merge sort is all around the best, but highly data intensive. Definitely the best option with a lot of computing power.
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment