Checking a Reduction in Both Directions
A many-one reduction translates an instance so its yes or no answer agrees with that of the original instance.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a miniature translation
Checking whether a list contains x can be translated to whether the list contains a zero after subtracting x from every value under exact arithmetic. Both directions follow from \(a-x=0\) exactly when \(a=x\). See mapping each item.
Check transformation cost
A reduction useful for complexity also needs a bound on constructing the translated input. Reduction correctness identifies both the semantic and cost obligations.[1]
Prove both directions on a concrete transformation
For an undirected graph, replace every edge by both directed arrows. An undirected path from s to t yields a directed path in the transformed graph. Erasing directions from a directed path in that graph yields an original undirected route. See direction in graph models.
Original A–B, B–C → arrows both ways on both edges
A reaches C in each instance
An isolated D stays unreachable from A
Check that the transformation introduces only allowed edges
If the construction adds arbitrary extra arrows, yes cases can survive while some no cases incorrectly become yes. Verify endpoints and isolated vertices. State cost of building the transformed instance.