NP-hardness of sortedness constraints
Irena Rusu

TL;DR
This paper proves that several sortedness constraints in constraint programming are NP-hard, even under conditions that might suggest tractability, impacting how these constraints are used in solving combinatorial problems.
Contribution
It establishes the NP-hardness of key sortedness constraints, including sort and keysorting, clarifying their computational complexity in general cases.
Findings
sort(U,V) is NP-hard for non-interval domains
sort(U,V,P) is NP-hard, extending previous results
keysorting(U,V,Keys,P) remains NP-hard even with stability constraints
Abstract
In Constraint Programming, global constraints allow to model and solve many combinatorial problems. Among these constraints, several sortedness constraints have been defined, for which propagation algorithms are available, but for which the tractability is not settled. We show that the sort(U,V) constraint (Older et. al, 1995) is intractable for integer variables whose domains are not limited to intervals. As a consequence, the similar result holds for the sort(U,V, P) constraint (Zhou, 1996). Moreover, the intractability holds even under the stability condition present in the recently introduced keysorting(U,V,Keys,P) constraint (Carlsson et al., 2014), and requiring that the order of the variables with the same value in the list U be preserved in the list V. Therefore, keysorting(U,V,Keys,P) is intractable as well.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · Advanced Database Systems and Queries · Logic, Reasoning, and Knowledge
