# PacktPublishing/40-Algorithms-Every-Programmer-Should-Know

40 Algorithms Every Programmer Should Know, published by Packt

Repository: https://github.com/PacktPublishing/40-Algorithms-Every-Programmer-Should-Know
Canonical: https://ross.abutalabs.com/products/40-algorithms-every-programmer-should-know
Language: Python
License Family: other
Last push: 2026-03-02T10:28:46+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 35, longevity 100
- inputs: {"age_days": 2676, "days_push": 184, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1033, forks 381 (observed 2026-08-28T04:03:18.497672+00:00)

## What it is
The companion code repository for the Packt book '40 Algorithms Every Programmer Should Know', containing Python implementations of algorithms covered in the book. It includes examples spanning data structures, graph algorithms, machine learning, neural networks, and cryptography.

## Use cases
- learn classic algorithms with python examples
- implement graph algorithms for fraud detection
- cluster tweets with machine learning
- build a movie recommendation engine
- practice supervised learning for weather prediction
- study symmetric and asymmetric encryption examples

## When to choose
- you are reading the book and want runnable code for its chapters
- you want hands-on Python examples of algorithms from sorting to neural networks
- you are a beginner looking for guided algorithm tutorials

## When to avoid
- you need a production-ready algorithm library
- you want maintained, tested software with a license
- you need algorithms in a language other than Python

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: machine-learning, cryptography, data-science
- domain: education, tutorials, machine-learning, data-science
- platform: python, cross-platform
- tags: book-code, packt, algorithms, python-examples, graph-algorithms, neural-networks, recommendation-engine

## Member repositories
- PacktPublishing/40-Algorithms-Every-Programmer-Should-Know (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:18.497672+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-30T07:06:38.130700+00:00, confidence not recorded.
  - readme: https://github.com/PacktPublishing/40-Algorithms-Every-Programmer-Should-Know (fetched 2026-08-28T04:03:18.497672+00:00, sha da7b5f4f900c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
