The Algorithms logo
The Algorithms
AboutDonate

Hello, algorithms!

Welcome to GitHub's largest open-source algorithm library

Top algorithms

Binary Search

+12

More

Quick Sort

+17

More

Fibonacci Numbers

What is an Algorithm?

An algorithm is a set of rules that takes in one or more inputs, then performs inner calculations and data manipulations and returns an output or a set of outputs. In short, algorithms make life easy. From complex data manipulations and hashes, to simple arithmetic, algorithms follow a set of steps to produce a useful result. One example of an algorithm would be a simple function that takes two input values, adds them together, and returns their sum.

About Us

We are a group of programmers helping each other build new things, whether it be writing complex encryption programs, or simple ciphers. Our goal is to work together to document and model beautiful, helpful and interesting algorithms using code. We are an open-source community - anyone can contribute. We check each other's work, communicate and collaborate to solve problems. We strive to be welcoming, respectful, yet make sure that our code follows the latest programming guidelines.

Featured algorithms

Logistic Regression

Caesar Cipher

A-Simple-GAN

Bellman Ford

Bogo Sort

Programming Languages

We support many programming languages. Each language has its own GitHub repository where all the code for the algorithms is stored. Here is a list of the current programming languages:

Contribute
We encourage you to contribute to these repositories. If you have an algorithm that you want to add, a change you want to make, or a bug you want to fix, please do so. But before you do, make sure you have read the contributing guidelines found in CONTRIBUTING.md in the repository. Make sure that you are respectful, helpful, and using the latest version of the language. After reading the contribution guidelines, please fork the repository, work on your changes and then submit them as a pull request. You can also help us translate the website using Weblate. If you have any other languages you want to add, or any strings you want to fix, you're welcome to contribute.
GitHubWeblate
Another way you can support us is to make a donation via Liberapay. Even a small donation is much appreciated. By donating, it means that you appreciate and like our work. If you don't like our work, there's no need to donate. If you donate, top members will be able to contribute further to The Algorithms projects. We appreciate donations from everyone, from everywhere, no matter the amount.
Donate

Connect with us