Zum Inhalt
HALOWERK

Datenvertragswerk

latin square orthogonal mate family

For a fully captured Latin square of order1..4 on labels0..n-1, construct ALL Latin squares B for which every ordered pair (original[r][c],B[r][c]) occurs exactly once. Return every mate as a flat row-major value array in numeric lexicographic order, aligned pair_codes[r*n+c]=n*original[r][c]+B[r][c], and count. Retain every symbol-labelled mate; no symmetry quotient. A valid square without mates has a known empty family. n1 admits its single square as its mate. Compare the complete.

POST https://datenvertrag.halowerk.com/v1/latin-square-orthogonal-mate-family

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
squareSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "square": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 3
            },
            "minItems": 1,
            "maxItems": 4
          },
          "minItems": 1,
          "maxItems": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "mates": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3
                },
                "minItems": 1,
                "maxItems": 16
              },
              "minItems": 0,
              "maxItems": 48
            },
            "pair_codes": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 15
                },
                "minItems": 1,
                "maxItems": 16
              },
              "minItems": 0,
              "maxItems": 48
            },
            "count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 48
            }
          },
          "required": [
            "mates",
            "pair_codes",
            "count"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "square",
    "claim"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "square": [
    [
      0
    ]
  ],
  "claim": {
    "mates": [
      [
        0
      ]
    ],
    "pair_codes": [
      [
        0
      ]
    ],
    "count": 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 →