Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
GNU General Public License v3.0
14497
509
3621

The Algorithms - C # {#mainpage}

Gitpod Ready-to-Code Language grade: C/C++ CodeQL CI Gitter chat contributions welcome GitHub repo size Doxygen CI Awesome CI Income Discord chat Donate

Overview

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.

Features

  • 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 three major operating systems viz., Windows, MacOS and Ubuntu (Linux) using MSVC 16 2019, AppleClang 11.0 and GNU 7.5.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.

Documentation

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

Contributions

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

Contributors

kvedala
christianbender
danghai
ashwek
StepfenShawn
AnupKumarPanwar
DhruvPasricha
Panquesito7
dynamitechetan
duyuanch
CarlosZoft
ayaankhan98
yanglbme
shubhamsah
cclauss
theycallmemac
northernSage
harshildarji
SaurusXI
deadshotsb
ketan-lambat
koseokkyu
amitha-nayak
rachitbhalla
r0hit-gupta
sachinarora707
arjunmann73
alaouimehdi1995
Nairit11
sh-ubh
hrishikeshSuresh
shashikedissanayake
malnuxstarck
Aruj-Sharma
sp0oks
gbrunofranco
PalAditya
Rupeshiya
arpanjain97
ashish4321
straight-into-the-wall
sungbin
viditkulshreshtha
popoapp
chatn0ir07
evandronmota
harshcut
kaustavbhattacharya07
thechubbypanda
NVombat
0oo0
wesllhey
agnimish
ashishdhiman2000
ayanzunaid
batyil
akshaykumar2505
andre143
Frostbite22
GabrielMotaBLima
kumaryash18
Lakhan-Nad
IKuuhakuI
3ZadeSSG
aggarwalmayank
nvdsalehi
nicola-masarone
pankajc007
TheShubham99
Saumay-Agrawal
sauravkdubey
sessihers
Shwetik
shubhamdp
Sudeepam97
Suraj-Patro
tanyapohn
haunt98
erx-manaois
anujms1999
harshraj22
AafilUmar
neelneelpurk
imba-tjd
AmanRaj1608
Paul-Fugmann
jucollet972
akash19jain
Abhijitpatil19
Aditibansal2603
faridevnz
HiSunzhenliang
siriak
ankitrgadiya
Ankita19ms0010
Archana550
aromalanil
arpitv424
ashusrma
atishaya11