r/compsci • • Aug 14 '13

Algorithims Everyone Should Know?

What are some of you're favourite algoritms or concepts that you think everyone should know, whether they solve problems that crop up frequently, or are just beautiful in their construction?

378 Upvotes

118 comments sorted by

View all comments

Show parent comment

4

u/oligocordicul Aug 15 '13

Don't think anyone mentioned, but mergesort is also a stable sort, quicksort isn't. And there are times when this is important.