Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
Alternatives To C
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
9 days ago20gpl-3.0C
Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
2 months agounlicenseC#
A collection of some of the neat math and physics tricks that I've collected over the last few years.
Root2,3552010 hours ago16October 24, 2022864otherC++
The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
Computer Science Resources2,227
4 months ago9
A list of resources in different fields of Computer Science
Awesome Scientific Computing1,125
4 months ago4cc0-1.0Python
:sunglasses: Curated list of awesome software for numerical analysis and scientific computing
2 days ago2bsl-1.0C++
A collection of source code for computing in the fields of mathematics, geometry, graphics, image analysis and physics.
25 days ago10otherJulia
Award winning software library for nonlinear dynamics and nonlinear timeseries analysis
Quaternion57517532 months ago188December 01, 20234mitPython
Add built-in support for quaternions to numpy
Optimesh54911a month ago45March 05, 20232
:spider_web: Mesh optimization, mesh smoothing.
2 years ago10May 23, 2022mitPython
Pynamical is a Python package for modeling and visualizing discrete nonlinear dynamical systems, chaos, and fractals.
Alternatives To C
Select To Compare

Alternative Project Comparisons

The Algorithms - C # {#mainpage}

Gitpod Ready-to-Code CodeQL CI Gitter chat contributions welcome GitHub repo size Doxygen CI Awesome CI Income Discord chat 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.


  • The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - C.
  • Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
  • Each source code is atomic using standard C library libc and no external libraries are required for their compilation and execution. Thus the fundamentals of the algorithms can be studied in much depth.
  • Source codes are compiled and tested for every commit on the latest versions of two major operating systems viz., MacOS and Ubuntu (Linux) using AppleClang 14.0.0 and GNU 11.3.0 respectively.
  • Strict adherence to C11 standard ensures portability of code to embedded systems as well like ESP32, ARM Cortex, etc. with little to no changes.
  • Self-checks within programs ensure correct implementations with confidence.
  • Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other applications.


Online Documentation is generated from the repository source codes directly. The documentation contains all resources including source code snippets, details on execution of the programs, diagrammatic representation of program flow, and links to external resources where necessary. Click on Files menu to see the list of all the files documented with the code.

Documentation of Algorithms in C by The Algorithms Contributors is licensed under CC BY-SA 4.0
Creative Commons LicenseCredit must be given to the creatorAdaptations must be shared under the same terms


As a community developed and maintained repository, we welcome new un-plagiarized quality contributions. Please read our Contribution Guidelines.

Popular Physics Projects
Popular Mathematics Projects
Popular Science Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Machine Learning
Data Structures
Computer Science
Machine Learning Algorithms
Interview Questions
Algorithm Challenges
Community Driven
Algorithm Competitions