I'm taking an algorithms course and we are covering polynomial time reductions, and I've read online that many decision problems are polynomial-time reducible to their complements.
Can anyone give me an example of one such decision problem?
I tried to reduce the Composite decision problem to Prime, but don't really know how to go about it.
Here's how to polynomial-time reduce an instance of the COMPOSITE decision problem to the PRIME decision problem.