# TheAlgorithms/C

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

Repository: https://github.com/TheAlgorithms/C
Canonical: https://ross.abutalabs.com/products/c
Homepage: https://thealgorithms.github.io/C
Language: C
License: GPL-3.0
License Family: copyleft
Topics: algorithms, data-structures, datastructures, c, algorithm-challenges, algorithm-competitions, education, learn-to-code, interview-questions, interview, community-driven, mathematics, sort, educational, machine-learning-algorithms, machine-learning, computer-science, search, hacktoberfest
Last push: 2024-08-07T21:56:16+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3700, "days_push": 756, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22349, forks 4770 (observed 2026-08-28T04:11:32.562711+00:00)

## What it is
A community-driven collection of algorithm and data structure implementations in C, covering computer science, mathematics, statistics, and machine learning. It is designed as an educational resource with well-documented, dependency-free C11 code for students and educators.

## Use cases
- learn algorithms in c
- prepare for coding interviews
- study data structures with example code
- find reference implementations of sorting and searching algorithms
- teach computer science with documented examples
- understand algorithm implementations without external dependencies

## When to choose
- you want readable, well-documented C implementations of classic algorithms for learning or teaching
- you need dependency-free code that compiles with only the C standard library
- you are preparing for technical interviews and want to study multiple strategies for the same problem

## When to avoid
- you need production-grade, performance-optimized algorithm libraries for a real application
- you want algorithms in a language other than C
- you need maintained, versioned packages with API stability guarantees

## Facets
- artifact type: learning-resource
- maturity: active
- function: math, machine-learning, developer-tools
- domain: education, tutorials
- platform: cross-platform, c
- tags: algorithms, data-structures, educational, c, interview-preparation

## Member repositories
- TheAlgorithms/C (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.562711+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:57:20.927698+00:00, confidence not recorded.
  - readme: https://github.com/TheAlgorithms/C (fetched 2026-08-28T04:11:32.562711+00:00, sha c9e8783e7e7f)
  - homepage: https://thealgorithms.github.io/C (fetched 2026-08-29T07:55:34.797893+00:00, sha 0b012d3d82ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
