Skip to content
HALOWERK

Datenvertragswerk

latin bitrade switch family

For two fully captured Latin squares LEFT and RIGHT of the SAME order n1..4, reconstruct EVERY NONEMPTY cellmask on which replacing LEFT entries by RIGHT preserves a Latin square. Each original is a flat rowmajor n*n array with symbols0..n-1, each symbol once per row/column; LEFT is REDUCED: its first row AND first column must be0..n-1. RIGHT need not be reduced. ORIGINAL labels are retained; no automatic relabelling. A switchmask may select ONLY cells where left differs from right,.

POST https://datenvertrag.halowerk.com/v1/latin-bitrade-switch-family

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
nSee schemaYes
leftSee schemaYes
rightSee schemaYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "n": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "left": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3
          },
          "minItems": 1,
          "maxItems": 16
        },
        {
          "type": "null"
        }
      ]
    },
    "right": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3
          },
          "minItems": 1,
          "maxItems": 16
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "switch_masks": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 1,
                "maximum": 65535
              },
              "minItems": 0,
              "maxItems": 15
            },
            "hybrid_squares": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3
                },
                "minItems": 1,
                "maxItems": 16
              },
              "minItems": 0,
              "maxItems": 15
            },
            "minimal_masks": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 1,
                "maximum": 65535
              },
              "minItems": 0,
              "maxItems": 4
            },
            "count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 16
            }
          },
          "required": [
            "switch_masks",
            "hybrid_squares",
            "minimal_masks",
            "count"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "n",
    "left",
    "right",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "n": 1,
  "left": [
    0
  ],
  "right": [
    0
  ],
  "claim": {
    "switch_masks": [],
    "hybrid_squares": [],
    "minimal_masks": [],
    "count": 0
  }
}

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 โ†’