Myers distance bounded

myers-distance-bounded · version 1.0.0 · Sequences & diffs · free, no key needed

Compute Myers insert/delete distance up to a caller cap, returning null predictably when the cap is exceeded.

Use when you need to: compute bounded Myers distance · edit distance with a maximum cap · count insertions and deletions between sequences.

Decide before calling

Read the versioned contract and the supported scope below. Reuse myers-distance-bounded@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use myers-distance-bounded@1.0.0 for compute bounded Myers distance. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": [
    "A",
    "B"
  ],
  "b": [
    "A",
    "C"
  ],
  "max_distance": 2
}

Response:

{
  "result": {
    "reference": "Myers 1986; RFC 3284 section 5",
    "version": "1.0.0",
    "within_limit": true,
    "distance": 2
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "myers-distance-bounded",
  "version": "1.0.0",
  "input": {
    "a": [
      "A",
      "B"
    ],
    "b": [
      "A",
      "C"
    ],
    "max_distance": 2
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/myers-distance-bounded/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":["A","B"],"b":["A","C"],"max_distance":2}'

The machine-readable contract is at /v1/tools/myers-distance-bounded/versions/1.0.0.

CLI

node cli.mjs run myers-distance-bounded 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.