Before revision:  We study two closely-related problems of this type: one we show is polynomial time, and the otherwe show is \mathrm{NP .
After revision:  We study two closely-related problems that can be solved using this operation. For one of these problems, we give a simple alternative solution that runs in polynomial time; for the other, we prove \mathrm{NP .