Algorithm Implementations
algorithm_implementationsImplementations of a named algorithm: the languages Rosetta Code has solutions in and, with language set, the source code of that solution (CC BY-SA 4.0, labelled educational), plus reference implementation links from the NIST DADS entry, the cp-algorithms article, and the Skiena Algorithm Repository implementation links for the problem.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "Dijkstra's algorithm",
"language": "Python"
},
"name": "algorithm_implementations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Algorithm name, e.g. "Dijkstra's algorithm", "Floyd-Warshall algorithm", "Knuth-Morris-Pratt". | |
| language | No | Programming language as Rosetta Code names it, e.g. "Python", "C++", "Go", "Rust", "Java". Omit to list the languages available. |