On the Equivalence of Constraint Satisfaction Problems