MCPcopy Index your code
hub / github.com/algorithm-archivists/algorithm-archive

github.com/algorithm-archivists/algorithm-archive @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
928 symbols 1,858 edges 163 files 87 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Arcane Algorithm Archive

The Arcane Algorithm Archive is a collaborative effort to create a guide for all important algorithms in all languages. This goal is obviously too ambitious for a book of any size, but it is a great project to learn from and work on and will hopefully become an incredible resource for programmers in the future.

To change the language, please use the UI at the top of the site:

Here are some essential links:

Note that this project is essentially a book about algorithms collaboratively written by an online community. Fortunately, there are a lot of algorithms out there, which means that there is a lot of content material available. Unfortunately, this means that we will probably never cover every algorithm ever created and instead need to focus on what the community sees as useful and necessary. That said, we'll still cover a few algorithms for fun that have very little, if any practical purpose.

If you would like to contribute, feel free to go to any chapter with code associated with it and implement that algorithm in your favorite language, and then submit the code via pull request. You can find help and instructions regarding the contribution process in our How to Contribute wiki entry.

Hopefully, this project will grow and allow individuals to learn about and try their hand at implementing different algorithms for fun and (potentially) useful projects. If nothing else, it will be an enjoyable adventure for our community.

Thanks for reading and let me know if there's anything wrong or if you want to see something implemented in the future!


License

The code examples for this project are licensed under the MIT license (found in LICENSE.md). All text content is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License with attribution specified at the end of every chapter. All graphics are licensed under the license stated at the end of every chapter. If no attribution is specified, please attribute James Schloss.

[

](https://creativecommons.org/licenses/by-sa/4.0/)

Extension points exported contracts — how you extend this code

IQueue (Interface)
(no doc) [3 implementers]
contents/stacks_and_queues/code/typescript/queue.ts
IOutputLine (Interface)
(no doc)
contents/computus/code/typescript/gauss_easter.ts
IStack (Interface)
(no doc) [3 implementers]
contents/stacks_and_queues/code/typescript/stack.ts

Core symbols most depended-on inside this repo

size
called by 43
contents/stacks_and_queues/code/java/QueueTest.java
push
called by 37
contents/stacks_and_queues/code/java/StackTest.java
abs
called by 36
contents/euclidean_algorithm/code/go/euclidean.go
pop
called by 20
contents/stacks_and_queues/code/java/StackTest.java
getX
called by 12
contents/jarvis_march/code/java/JarvisMarch.java
toString
called by 12
contents/stable_marriage_problem/code/java/stable-marriage.java
getY
called by 10
contents/jarvis_march/code/java/JarvisMarch.java
count
called by 8
contents/huffman_encoding/code/rust/huffman.rs

Shape

Function 485
Method 289
Class 142
Interface 5
Struct 4
TypeAlias 2
Enum 1

Languages

Python16%
C++15%
C15%
Java14%
Rust11%
TypeScript9%

Modules by API surface

contents/huffman_encoding/code/c/huffman.c24 symbols
contents/huffman_encoding/code/cpp/huffman.cpp23 symbols
contents/flood_fill/code/c/flood_fill.c23 symbols
contents/stable_marriage_problem/code/java/stable-marriage.java18 symbols
contents/huffman_encoding/code/csharp/HuffmanCoding.cs17 symbols
contents/stable_marriage_problem/code/php/stable_marriage.php14 symbols
contents/huffman_encoding/code/go/huffman.go14 symbols
contents/tree_traversal/code/php/tree_traversal.php13 symbols
contents/tree_traversal/code/c/utility.h13 symbols
contents/stacks_and_queues/code/java/StackTest.java13 symbols
contents/stacks_and_queues/code/java/QueueTest.java13 symbols
contents/huffman_encoding/code/rust/huffman.rs13 symbols

For agents

$ claude mcp add algorithm-archive \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact