datenvertrag.halowerk.com/v1/minimum-sorting-network-family
For a supplied wire count n0..4, synthesize EVERY minimum-COMPARATOR fixed sorting network. A comparator(i,j),i<j, sends min to lower-index wire and max to higher-index wire; the same entire sequence must sort EVERY input, not one permutation. Return the canonical lexicographic comparator-pair inventory, ALL minimum sequences as comparator-index arrays in numeric lexicographic order, minimum_compa
POST
https://datenvertrag.halowerk.com/v1/minimum-sorting-network-familyUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/minimum-sorting-network-family", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claim":{"comparators":[[0,1]],"count":1,"minimum_comparators":1,"networks":[[0]],"unsorted_histories":[[1,0]]},"n":2}),
});
console.log(await res.json());Example input
{
"claim": {
"comparators": [
[
0,
1
]
],
"count": 1,
"minimum_comparators": 1,
"networks": [
[
0
]
],
"unsorted_histories": [
[
1,
0
]
]
},
"n": 2
}