Zum Inhalt
HALOWERK

Datenvertragswerk

tunstall optimal phrase dictionary family

For supplied positive binary symbol weights[weight0,weight1] each1..4 and exact leafcount2..7, construct ALL full binary prefix phrase dictionaries maximizing expected consumed source symbols per phrase. Model independent identically distributed source symbols with p0=w0/(w0+w1),p1=w1/(w0+w1); no empirical distribution inference. Return exact reduced rational optimum, all optimal dictionaries lexicographically ordered by their sorted phrase arrays, every phrase probability in sameorder and.

POST https://datenvertrag.halowerk.com/v1/tunstall-optimal-phrase-dictionary-family

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
weightsSiehe SchemaJa
leavesSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "weights",
    "leaves",
    "claim"
  ],
  "properties": {
    "weights": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 2,
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4
          },
          "minItems": 2
        },
        {
          "type": "null"
        }
      ]
    },
    "leaves": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 2,
          "maximum": 7
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 132,
          "items": {
            "type": "array",
            "maxItems": 7,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6,
              "pattern": "^[01]+$"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "weights": [
    1,
    1
  ],
  "leaves": 3,
  "claim": [
    [
      "0",
      "10",
      "11"
    ],
    [
      "00",
      "01",
      "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 →