The Computational Complexity of Dominance and Consistency in CP-Nets