kanwei/algorithms
Ruby algorithms and data structures. C extensions observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 69
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6628
- days_rel: n/a
- days_push: 186
- n_releases_24m: 0
Adoption not part of the score
2697 stars · 342 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby library providing common algorithms and data structures such as heaps, red-black trees, tries, suffix arrays, sorting, and searching routines. Optional C extensions deliver significant performance improvements where available.
Use cases
- use a red-black tree or splay tree in Ruby
- sort collections with quicksort or mergesort in Ruby
- implement a priority queue in Ruby
- perform binary search or KMP string search in Ruby
- use heaps, deques, stacks, and queues in Ruby
- benchmark data structure performance in Ruby
When to choose
- you need efficient data structures not in Ruby's standard library
- you want documented guidance on which structure or algorithm to use
- you can use C extensions for performance-critical Ruby code
When to avoid
- you need algorithms in a language other than Ruby
- you only need structures already provided by Ruby's core library
- you need actively developed cutting-edge algorithm implementations
Facets
library · maturity maintenance
developer-tools developer-tools ruby jvm cross-platform data-structures sorting searching c-extensions containers algorithms
2 sources
- readme: https://github.com/kanwei/algorithms · fetched 2026-08-28 · b4b656d8b7f9
- homepage: http://kanwei.github.io/algorithms/ · fetched 2026-08-29 · 4f5f497817e3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kanwei/algorithms | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="kanwei/algorithms")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem