Zum Inhalt
HALOWERK

Datenvertragswerk

word shuffle coefficient family

For two supplied binary words of length0..4, construct their full non-overlapping shuffle product: every length-additive word preserving each original as an ordered subsequence, with exact number of left/right interleavings producing it. Sort distinct words lexicographically; return length, distinct count, total interleaving count and lexicographically smallest origin bitword per spelling (0=left,1=right). Repeated letters aggregate coefficients, not distinct spellings; empty/empty has one.

POST https://datenvertrag.halowerk.com/v1/word-shuffle-coefficient-family

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
leftSiehe SchemaJa
rightSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "left",
    "right",
    "claim"
  ],
  "properties": {
    "left": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4,
          "pattern": "^[01]*$"
        },
        {
          "type": "null"
        }
      ]
    },
    "right": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4,
          "pattern": "^[01]*$"
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 70,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "word",
              "coefficient"
            ],
            "properties": {
              "word": {
                "type": "string",
                "maxLength": 8,
                "pattern": "^[01]*$"
              },
              "coefficient": {
                "type": "integer",
                "minimum": 1,
                "maximum": 70
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "left": "01",
  "right": "10",
  "claim": [
    {
      "word": "0101",
      "coefficient": 1
    },
    {
      "word": "0110",
      "coefficient": 2
    },
    {
      "word": "1001",
      "coefficient": 2
    },
    {
      "word": "1010",
      "coefficient": 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 →