Awesome Algorithms
A curated list of awesome places to learn and/or practice algorithms. Inspired by awesome-awesomeness and all the other awesome Awesome libraries.
If you want to contribute, please read the [contribution guidelines] (https://github.com/tayllan/awesome-algorithms/blob/master/CONTRIBUTING.md).
Websites
Websites you should use to learn classic algorithms
- A Visual Guide to Graph Traversal Algorithms - Interactive visualisations for learning how graph traversal algorithms work
- Algomation - A didactic, animated, exposition of algorithms.
- Algorithm Visualizer - Dozens of animated algorithms (with code), and you can also create your own.
- Algorithms Visualization - A dense article on Algorithms Visualization.
- Big-O Cheat Sheet - Big-O complexities of common algorithms used in Computer Science.
- Data Structure Visualizations - Visualize the behavior of Data Structures and play with its operations.
- Geeks for Geeks - Lots and lots of well explained and implemented algorithms.
- Learn Algorithms - A website that explains some algorithms very well and simply, even for the most novice of programmers.
- Rosetta Code - A programming chrestomathy site which aims to present implementations of many algorithms and data structures in different programming languages.
- Sorting Algorithms - Nice and simple animations of sorting algorithms. With short codes and discussions.
- Stoimen's web log - Some algorithms nicely explained.
- VisuAlgo - Visualising data structures and algorithms through animation.
- Wikipedia - Algorithms - Of course!!
- Wikipedia - Data Structures - and why not ?!!
Online Courses
Free and High Quality Courses Online
- Algorithms: Design and Analysis, Part 1 - Course mainly based on the book "Introduction to Algorithm".
- Algorithms: Design and Analysis, Part 2 - Second part, focusing on Greedy and Dynamic paradigms, and NP-Complete problems.
- Khan Academy Algorithms - Algorithm course ministred by Tomas Cormen and Devin Balkcom.
- MIT - 6-006 - Well explained algorithms.
- MIT - 6-046j - Similar to the previous one, but with different algorithms.
- MIT - 6-00sc - An easy and well explained introduction to algorithms.
- Udacity Intro to Algorithms - Python-based Algorithms course.
- YogiBearian YouTube Channel - Lots of well explained vidoes on various computer science subjects.
Books
The most highly regarded books to learn algorithms
- Algorithm Design - Pretty straight-forward.
- Algorithms - Problems explained with Java, OO good practices, visualizations, and free online resources.
- Data Structures Using C - The basic concepts and usages of data structures.
- Elementary Algorithms - An awesome book about algorithms and data structures.
- Grokking Algorithms - An illustrated book on algorithms with practical examples.
- Introduction to Algorithms - Essential!
- Swift Algorithms & Data Structures - A practical guide to concepts, theory and code.
- The Algorithm Design Manual - Easy to read and full of real world examples.
- The Art of Computer Programming - The Book.
Github Libraries
Implementations of the most classic algorithms in a wide variety of programming languages
- C
- CoffeeScript
- C#
- C++
- Erlang
- Go
- Java
- JavaScript
- Objective-C
- Python
- Ruby
- [by @kanwei] (https://github.com/kanwei/algorithms)
- [by @sagivo] (https://github.com/sagivo/algorithms)
- [by @kumar91gopi] (https://github.com/kumar91gopi/Algorithms-and-Data-Structures-in-Ruby)
- Scala
- Swift
- [by @kingreza] (https://github.com/kingreza/Swift-Algorithms-Strings-)
- [by @waynewbishop] (https://github.com/waynewbishop/SwiftStructures)
- by @hollance
- Language agnostic
Online Judges
Online Judges to practice what you learned above
- ACM-ICPC Live Archive - Hundreds of problems from previous ACM-ICPC Regionals and World Finals.
- AIZU ONLINE JUDGE - Japanese Online Judge.
- CodeChef - More problems and monthly online contests.
- Codeforces - The only programming contests Web 2.0 platform
- CodeMarshal - Real world contests online!
- CoderByte - A decent website with algorithm challenges from beginner to advanced levels. Supports most of the popular languages like C++, python, javascript, ruby.
- HackerEarth - Practice alogrithmic problems & challenges and participate in hiring challenges.
- HackerRank - Featured algorithm and functional programming online judges
- Infoarena - Romanian Online Judge. 1500+ algorithmic problems
- LavidaOnlineJudge - Korean Online Judge(Half English). 1300+ problems.
- Learneroo Algorithms Tutorials - Learn and practice algorithms by solving challenges online.
- LeetCode - Learn algorithms and prepare for interviews.
- PKU JudgeOnline - Chinese Online Judge.
- ProjectEuler - Mathematical problems that can be solved using algorithms (or just a pencil, depends on how much you already know).
- Rosalind - A platform for learning bioinformatics and programming through problem solving.
- ShareCode.io - Online Judge and contest host with a lot of algorithmic problems in the archive to practice.
- SPOJ - More problems.
- TopCoder - Lots of problems and real world/money worthy problems in Graphic Design, Data Science and Development.
- Toph - Sport programming platform for online contests. It also has a growing problem archive.
- URI - Brazilian Online Judge. Not so much problems, but it's growing and it has online contests.
- UVA - Hundreds of problems (from previous ACM-ICPC Regionals, World Finals and others).
Tools
Some tools that can help you in the learning of algorithms
- flow-chart.js - A tool that allows you to create flowcharts that can simulate real algorithms.
- interactive-coding-challenges - Interactive, test-driven coding challenges (algorithms and data structures).
License
And for the sake of copyleft, here's our license:
This work is licensed under a Creative Commons Attribution 4.0 International License.