TheAlgorithms/C

Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.

Open original source ↗

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

[](https://gitpod.io/#https://github.com/TheAlgorithms/C) [](https://github.com/TheAlgorithms/C/actions/workflows/codeqlanalysis.yml) [](https://gitter.im/TheAlgorithms) [](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md) [](https://TheAlgorithms.github.io/C) [](https://github.com/TheAlgorithms/C/actions?query=workflow%3A%22Awesome+CI+Workflow%22) [](https://liberapay.com/TheAlgorithms) [](https://the-algorithms.com/discord/) [](https://liberapay.com/TheAlgorithms/donate) The repository is a collection of open-source implementations of a variety of algorithms implemented in C and licensed under GPLv3 License. The algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The implementations and their associated documentations are meant to provide a learning resource for educators and students. Hence, one may find more than one implementation for the same objective but using different algorithm strategies and optimizations. Online Documentation is generated from the repository source codes directly. The documentation contains all resources including source…

TheAlgorithms/C on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-27T09:16:21.492Z

Inside the original README — Document outline
  1. The Algorithms - C # {#mainpage}
  2. Overview
  3. Features
  4. Documentation
  5. Contributions

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: GPL-3.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.

Repository facts

Owner
TheAlgorithms
Primary language
C
Stars
22,586
Forks
4,789
Open issues + pull requests
25
License
GPL-3.0
Archived
No
Default branch
master
Created
2016-07-16T10:17:03.000Z
Last push
2024-08-07T21:56:16.000Z

Topics and intended use

Owner-supplied topics: algorithm-challenges, algorithm-competitions, algorithms, c, community-driven, computer-science, data-structures, datastructures, education, educational, hacktoberfest, interview, interview-questions, learn-to-code, machine-learning, machine-learning-algorithms, mathematics, search, sort

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-11-01T12:19:42.808Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

torvalds/linux

Genymobile/scrcpy

microsoft/PowerToys

colbymchenry/codegraph

git/git

DeusData/codebase-memory-mcp