On the equivalence of constraint satisfaction problems