Zum Inhalt
HALOWERK

Datenvertragswerk

permutation cycle record bijection ledger

For an original permutation P of0..n-1,n0..7, follow directed map cycles, rotate each cycle to its largest value, order cycles by increasing largest value, and erase parentheses. Return that entire transformed word, all canonical cycles, zero-based left-to-right record positions and the inverse permutation obtained by closing the record blocks. Include singleton cycles; empty input maps to empty word. Compare the whole ordered word claim; missing original/claim unknown retains available.

POST https://datenvertrag.halowerk.com/v1/permutation-cycle-record-bijection-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
permutationSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "permutation",
    "claim"
  ],
  "properties": {
    "permutation": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 7,
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "uniqueItems": true
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 7,
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "uniqueItems": true
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "permutation": [
    2,
    4,
    3,
    0,
    1
  ],
  "claim": [
    3,
    0,
    2,
    4,
    1
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →