# cp-algorithms/cp-algorithms

Algorithm and data structure articles for https://cp-algorithms.com (based on http://e-maxx.ru)

Repository: https://github.com/cp-algorithms/cp-algorithms
Canonical: https://ross.abutalabs.com/products/cp-algorithms
Homepage: https://cp-algorithms.com/
Language: C++
License: CC-BY-SA-4.0
License Family: other
Topics: algorithms, translation, algorithm-competitions, algorithms-and-data-structures, data-structures, competitive-programming, competitive-programming-contests, learning-materials, programming-contests, programming-competitions, hacktoberfest, hacktoberfest-accepted
Last push: 2026-08-26T17:07:12+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4423, "days_push": 7, "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 11108, forks 2140 (observed 2026-08-28T04:10:46.116252+00:00)

## What it is
A community-maintained collection of articles on algorithms and data structures for competitive programming, translated and extended from the Russian e-maxx.ru resource. The compiled articles are published at cp-algorithms.com with C++ example code.

## Use cases
- learn algorithms for competitive programming contests
- find reference implementations of graph algorithms in C++
- study data structures like segment trees and Fenwick trees
- prepare for ICPC or Codeforces competitions
- look up number theory algorithms like modular arithmetic and primality tests
- translate or contribute algorithm articles

## When to choose
- you need clear explanations of classic competitive programming algorithms with C++ snippets
- you are preparing for programming contests and want a free, ad-free reference
- you want a well-maintained, community-reviewed algorithm resource

## When to avoid
- you need a production-ready algorithm library rather than educational articles
- you need algorithms for a language other than C++
- you need machine-learning or non-competitive-programming algorithm coverage

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: education, tutorials, programming-languages
- platform: cpp
- tags: competitive-programming, data-structures, algorithms, e-maxx-translation, open-educational-resources, web-server

## Member repositories
- cp-algorithms/cp-algorithms (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:46.116252+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-29T17:16:47.422825+00:00, confidence not recorded.
  - readme: https://github.com/cp-algorithms/cp-algorithms (fetched 2026-08-28T04:10:46.116252+00:00, sha 552a8dda6e20)
  - homepage: https://cp-algorithms.com/ (fetched 2026-08-29T08:15:22.755495+00:00, sha 9d08e827ac1c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
