Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes. https://thealgorithms.github.io/C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Yannick Brenning d017c3ef77
fix: update value at index and return `SUCCESS` (#932) (#933)
4 days ago
.github feat: Add contact links in the issue template configuration 2 months ago
.vscode fix newline character 2 years ago
audio feat: add G.711 a-law algorithm (#858) 4 months ago
client_server Remote Command Execution Using UDP Client Server Model (& Merging Branch Locally) (#930) 1 week ago
conversions feat: add infix to postfix converter algorithm (#869) 3 months ago
data_structures fix: update value at index and return `SUCCESS` (#932) (#933) 4 days ago
developer_tools feat: printf statement written in c (as minprintf) without using stdio.h li… (#820) 10 months ago
exercism formatting source-code for 5bba04b6713550bdb24c57f765dca427cea2a17f 2 years ago
games docs: remove redundant space before comma (#920) 2 months ago
geometry tests: added `get_angle` test function in geometry/vector3d (#838) 6 months ago
graphics Revert "test commit" 2 years ago
greedy_approach feat: Prims algorithm (#815) 10 months ago
hash test: removed commented code (#885) 3 months ago
leetcode fix: typo in comments of leetcode-3 (#931) 1 week ago
machine_learning feat: Add endlines in `machine_learning/adaline_learning.c` (#846) 5 months ago
misc feat: add postfix evaluation algorithm (#890) 3 months ago
numerical_methods fix: possible segmentation faults in `numerical_methods/mean.c` (#805) 11 months ago
project_euler fix: Revert "fix: LGTM warnings/alerts" commit 9 months ago
searching Sentinel search: Remove bounds check (fixes #887) (#888) 3 months ago
sorting fix: fixed index of parent in sorting/heap_sort_2.c (#914) 1 week ago
.clang-format [bug fix] fix code formatting during CI (#597) 1 year ago
.clang-tidy [enhancement] formatted and added `Hash` directory to cmake (#580) 1 year ago
.gitignore ignore files in .vscode unless specifically added 2 years ago
.gitpod.dockerfile [enhancement] New Graphics implementation with algorithm for spirograph (#557) 2 years ago
.gitpod.yml Update .gitpod.yml 2 months ago
CMakeLists.txt feat: add G.711 a-law algorithm (#858) 4 months ago
CODE_OF_CONDUCT.md fix: Update the CoC to match the `.github` repository (#913) 3 months ago
CONTRIBUTING.md [feat/fix]: Improve the contributing guidelines (#839) 7 months ago
CodingGuidelines.md added code style conventions 4 years ago
DIRECTORY.md Remote Command Execution Using UDP Client Server Model (& Merging Branch Locally) (#930) 1 week ago
Doxyfile added doxygen documentation 2 years ago
LICENSE fix: Update the copyright year to 2021 (#780) 1 year ago
README.md fix: Discord logo's color 1 month ago
REVIEWER_CODE.md feat: guidelines for reviewers (#671) 1 year ago

README.md

The Algorithms - C

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.