Skip to content
HALOWERK

Datenvertragswerk

rotor router tree action ledger

From ONE original connected simple UNDIRECTED labelled graph on vertices0..n with1..3 NONSINK vertices0..n-1 and sink=n, a supplied original sink-rooted spanning TREE parent vector and a chip start<n, compute the rotor-router chip-addition action on that TREE. edge_mask names lexicographic unordered pairs(u,v),u<v,bit0 first. Each nonsink rotor initially points to parents[v]. OWN ribbon convention: outgoing neighbors are in increasing numeric cyclic order, wrapping last to first. At each.

POST https://datenvertrag.halowerk.com/v1/rotor-router-tree-action-ledger

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
nSee schemaYes
edge_maskSee schemaYes
parentsSee schemaYes
startSee schemaYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "n": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 3
        },
        {
          "type": "null"
        }
      ]
    },
    "edge_mask": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 63
        },
        {
          "type": "null"
        }
      ]
    },
    "parents": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3
          },
          "minItems": 0,
          "maxItems": 3
        },
        {
          "type": "null"
        }
      ]
    },
    "start": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 2
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3
          },
          "minItems": 0,
          "maxItems": 3
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "n",
    "edge_mask",
    "parents",
    "start",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "n": 1,
  "edge_mask": 1,
  "parents": [
    1
  ],
  "start": 0,
  "claim": [
    1
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’