Description
Return symbol deficits of a supplied word prefix.
Combinatorial counts depend on whether objects are labeled, order matters, repetitions are permitted and a prefix is already fixed. Local counts, exact integer factors and feasibility bounds answer specific questions and need not enumerate complete objects.
Return symbol deficits of a supplied word prefix.
When to use this tool
Use Word Prefix Symbol Deficit when checking the stated word, set, multiset or composition convention.
How to use the tool and how it works
- Enter alphabet, targetCounts, prefix. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read deficits, unknownTokens. Use the output convention below.
Return symbol deficits of a supplied word prefix. Require aligned unique alphabet/targetCounts with nonnegative targets; each deficit = target count minus literal prefix occurrences, unknownTokens preserves out-of-alphabet tokens.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| alphabet | Alphabet | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| targetCounts | Target Counts | Required. Array of safe integer; maximum items 256. |
| prefix | Prefix | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| deficits | Deficits | Required. Array of safe integer; maximum items 256. |
| unknownTokens | Unknown Tokens | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"alphabet": [
"A",
"B"
],
"targetCounts": [
3,
2
],
"prefix": [
"A",
"A",
"B"
]
},
"output": {
"deficits": [
1,
1
],
"unknownTokens": []
}
} Limitations and assumptions
- Negative deficits are retained; no feasible completion, sequence enumeration or probability is calculated.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use complete objects and an appropriate exact counting, ranking or enumeration method when the local contribution is insufficient.
References
Similar or alternative tools
- Lattice Word Symbol Budget
Check a lattice word's remaining symbol budget.
- Multiset Word Adjacent Equality Count
Count equal adjacent symbols in a supplied word.