Selecting a candidate from computed clean flags #
The clean-flag circuit is evaluated once, request payloads are attached by free wiring, and the complete candidate-selection circuit chooses one row. All original records survive as a permutation; the required prefix is clean.
Compute the clean flags, attach payloads, and select one complete row.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Row selection has exactly the gates of the flagged rows followed by candidate selection.
One original flagged record, with its complete payload.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The output permutes one candidate's original records and has a clean prefix.
Distinct request payloads give an actual permutation of request indices. Every accepted index is one of the original clean requests.
The flag computation is charged once; both selection sorts have their explicit linear record-count bounds.