Pizza Topping Compatibility Matcher

Actualchosenpizza-toppinglabels versus independentlychosen forbiddenpairpreferences,allliteralcase-sensitive,not tasteprediction,foodallergyassessmentor foodsafety.

Description

A topping-preference list can declare pairs you wish to avoid together.

A topping-preference list can declare pairs you wish to avoid together.1

Exact labels make the comparison reproducible without assessing taste, allergies or food safety.

When to use Pizza Topping Compatibility Matcher

Use this tool to apply the stated pizza topping compatibility matcher operation with an explicit input and unit basis.

How to use Pizza Topping Compatibility Matcher and how it works

  1. Establish the text or game convention described above.
  2. Enter actualChosenToppings, callerForbiddenPairFirst, callerForbiddenPairSecond and run the tool.
  3. Read result.observedForbiddenPairCount using the output meanings below.
  4. If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
Input fieldMeaningValue typeRequirement
actualChosenToppingsChosen toppings, on the basis specified in the algorithm.array of stringrequired; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm
callerForbiddenPairFirstForbidden pair first, on the basis specified in the algorithm.array of stringrequired; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm
callerForbiddenPairSecondForbidden pair second, on the basis specified in the algorithm.array of stringrequired; dense; align related rows as specified; at most 128 strings; 128 UTF-16 units each; further conditions in the algorithm

Require distinct chosen toppings and aligned nonempty forbidden-pair arrays. Count each supplied row whose two exact labels occur in the chosen list; duplicate rows are counted separately.

count = number of forbidden rows with both labels chosen

Apply the declared units, ordering and branch conditions.

Output fieldMeaningValue type
resultObject containing the declared output fields.object
result.observedForbiddenPairCountCount of supplied forbidden rows whose labels are both chosen.number
json
{
  "input": {
    "actualChosenToppings": [
      "tomato",
      "basil"
    ],
    "callerForbiddenPairFirst": [
      "tomato"
    ],
    "callerForbiddenPairSecond": [
      "pineapple"
    ]
  },
  "output": {
    "result": {
      "observedForbiddenPairCount": 0
    }
  }
}

Limitations and assumptions

The output applies the declared operation to the values you supply. Establish the measurement basis, units, coefficients and any caller-selected rules before interpreting it. The tool does not independently collect or verify observations or decide whether a model or reference applies.

Supply explicit required fields with the documented types and dense aligned arrays. Unknown fields, wrong types and nonfinite numbers are rejected. Branch-specific constraints are explained above. A successful false boolean, negative signed difference, empty slice or unresolved tie is distinct from an input error. Very large inputs or outputs may be rejected by shared resource limits.

Alternative or Complementary methods

For a related operation, use Which Sandwich Are You Quiz Logic. A sandwich-themed quiz can choose among caller-defined entertainment categories using recorded scores.

For a related operation, use This or That Pair Picker. This-or-that pairs offer quick choices for a conversation or warm-up.

References

  1. Pizza Topping Compatibility Matcher — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies