Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-26 21:07:53 UTC · snapshot created 2026-11-26 21:08:36 UTC · last check 2026-11-29 22:25:09 UTC

CMP.1:4.2 - Construct a query from the available input and operations

Build a terminating procedure f that maps each admitted A-input x to an admitted B-input f(x). Work from the information present in x and the operations available to the conversion.

A useful way to begin is to identify what a B-instance must represent about x. Construct its components and relations, then retain any additional information needed for answer recovery. When the input contains a program, a conversion can assemble a new program description with that program embedded in it. Constructing the description and executing the embedded program are different operations.

Check the solver’s input conditions. A graph procedure accepting only nonnegative edge weights cannot be used unchanged when the conversion creates negative edges. A procedure specified for finite explicit inputs needs a suitable finite representation.

If producing f(x) assumes an answer to A(x) that the available operations do not obtain, the proposed conversion has not supplied the reduction. Replace that assumption with an effective construction from the available input, or retain it as the unresolved computational contribution. When obtaining the answer during conversion is effective, include that work in the cost and usefulness comparison.