Zum Inhalt
HALOWERK

Datenvertragswerk

bulgarian solitaire partition basin census

From an original total1..14, generate every unordered positive-integer partition with parts descending, partitions sorted numeric lexicographically ascending. Apply Bulgarian-solitaire move: take one card from EVERY current pile, delete zero piles, combine removed cards into one new pile, re-sort. Return whole partition list and successor index vector, all recurrent cycles starting at their least state index and ordered by that index, every state basin index and exact distance to first.

POST https://datenvertrag.halowerk.com/v1/bulgarian-solitaire-partition-basin-census

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
totalSiehe SchemaJa
claimed_graphSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "total",
    "claimed_graph"
  ],
  "properties": {
    "total": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 14
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_graph": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "next_index",
            "cycles",
            "basin_index",
            "transient_distance"
          ],
          "properties": {
            "next_index": {
              "type": "array",
              "maxItems": 135,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 134
              }
            },
            "cycles": {
              "type": "array",
              "maxItems": 135,
              "items": {
                "type": "array",
                "maxItems": 135,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 134
                }
              }
            },
            "basin_index": {
              "type": "array",
              "maxItems": 135,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 134
              }
            },
            "transient_distance": {
              "type": "array",
              "maxItems": 135,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 135
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "total": 5,
  "claimed_graph": {
    "next_index": [
      6,
      5,
      3,
      4,
      2,
      4,
      5
    ],
    "cycles": [
      [
        2,
        3,
        4
      ]
    ],
    "basin_index": [
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "transient_distance": [
      3,
      2,
      0,
      0,
      0,
      1,
      2
    ]
  }
}

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 →