Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/stable-matching-family-inventory

For two equal sets0..n-1,n0..5, with complete strict partner-preference permutations, synthesize ALL stable full bijections. A blocking pair strictly prefers each other to their assigned partners. Return every left-indexed partner vector in numeric lexicographic order, total count and both sides sum of zero-based personal preference ranks for EACH family member. Emptyinstance has one emptymatching

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/stable-matching-family-inventory

Uptime100% 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/stable-matching-family-inventory", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claim":[[0,1,3,2],[1,0,3,2],[1,2,3,0]],"left":[[3,1,0,2],[3,2,0,1],[3,0,2,1],[1,0,2,3]],"right":[[0,2,1,3],[1,0,3,2],[3,2,0,1],[2,3,1,0]]}),
});
console.log(await res.json());

Example input

{
  "claim": [
    [
      0,
      1,
      3,
      2
    ],
    [
      1,
      0,
      3,
      2
    ],
    [
      1,
      2,
      3,
      0
    ]
  ],
  "left": [
    [
      3,
      1,
      0,
      2
    ],
    [
      3,
      2,
      0,
      1
    ],
    [
      3,
      0,
      2,
      1
    ],
    [
      1,
      0,
      2,
      3
    ]
  ],
  "right": [
    [
      0,
      2,
      1,
      3
    ],
    [
      1,
      0,
      3,
      2
    ],
    [
      3,
      2,
      0,
      1
    ],
    [
      2,
      3,
      1,
      0
    ]
  ]
}