Zum Inhalt
HALOWERK

Datenvertragswerk

graph cutwidth optimal order inventory

For an original labelled simple undirected graph with0..6vertices, minimize over all vertexorders the maximum number of edges with exactly one endpoint in each prefix. Return exact cutwidth, ALLoptimal numeric-lexicographic vertexorders, their count and every prefix-cut size of the first optimum, including empty/fullprefix. Edges require0<=u<v<n and uniqueness. Emptygraph has width0,oneemptyorder andcutprofile[0]. Reference evaluates allpermutations directly; product subset minimax DP plus.

POST https://datenvertrag.halowerk.com/v1/graph-cutwidth-optimal-order-inventory

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
graphSiehe SchemaJa
claimed_ordersSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "graph",
    "claimed_orders"
  ],
  "properties": {
    "graph": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "vertices",
            "edges"
          ],
          "properties": {
            "vertices": {
              "type": "integer",
              "minimum": 0,
              "maximum": 6
            },
            "edges": {
              "type": "array",
              "maxItems": 15,
              "items": {
                "type": "array",
                "minItems": 2,
                "maxItems": 2,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 5
                }
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_orders": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 720,
          "items": {
            "type": "array",
            "maxItems": 6,
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "graph": {
    "vertices": 4,
    "edges": [
      [
        0,
        1
      ],
      [
        0,
        2
      ],
      [
        1,
        2
      ]
    ]
  },
  "claimed_orders": [
    [
      0,
      1,
      2,
      3
    ],
    [
      0,
      1,
      3,
      2
    ],
    [
      0,
      2,
      1,
      3
    ],
    [
      0,
      2,
      3,
      1
    ],
    [
      0,
      3,
      1,
      2
    ],
    [
      0,
      3,
      2,
      1
    ],
    [
      1,
      0,
      2,
      3
    ],
    [
      1,
      0,
      3,
      2
    ],
    [
      1,
      2,
      0,
      3
    ],
    [
      1,
      2,
      3,
      0
    ],
    [
      1,
      3,
      0,
      2
    ],
    [
      1,
      3,
      2,
      0
    ],
    [
      2,
      0,
      1,
      3
    ],
    [
      2,
      0,
      3,
      1
    ],
    [
      2,
      1,
      0,
      3
    ],
    [
      2,
      1,
      3,
      0
    ],
    [
      2,
      3,
      0,
      1
    ],
    [
      2,
      3,
      1,
      0
    ],
    [
      3,
      0,
      1,
      2
    ],
    [
      3,
      0,
      2,
      1
    ],
    [
      3,
      1,
      0,
      2
    ],
    [
      3,
      1,
      2,
      0
    ],
    [
      3,
      2,
      0,
      1
    ],
    [
      3,
      2,
      1,
      0
    ]
  ]
}

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 →