[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On the "infinite domain CSP" with codesignation/non-codesignation constraints
- To: Rao Kambhampati <rao@asu.edu>
- Subject: On the "infinite domain CSP" with codesignation/non-codesignation constraints
- From: Subbarao Kambhampati <rao@asu.edu>
- Date: Mon, 29 Oct 2012 19:07:32 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=pvDmuPx5bByETSNgi6CCT2trHCtuCxosm7xJpu2S0wU=; b=UA/QnZiTUtJg+3VATlQXehwlqG6r35Q9hVauc7M4VQh/F+/aqNgO94SSQN6gvM5w10 pxAUdNPpIISEOwOFyom4nbxzwBo51GMS+ElJD0z8MMx9WBmxry82kvVtma8iM/bIq+kP g2MZkHhNzCdhapCFC8d2u3JQYyXIpLgguuGJ5685k5XrdzKixxmOsKW76v1OkTJUViIt dnfIqUj13xJpHB6yKultymiQAzM/PL9nooHomzopkurIAJK0X6bR70hg7OV6zUlvCDhv zGNDQ5Q58Q3FjTPeGfxwBtSpI2qW/xXEBNYBikf5awNF91cbHh33cjDAdcJyQPKol3zV IA0w==
- Sender: subbarao2z2@gmail.com
Folks
Sorry for the digression into the finite domain CSP and planning; not only was it an avoidable digression but
I didn't quite get to the explanation of the punch line before shifting back to the main topic. :-(
Here is the explanation.
Recall that we are considering a CSP with set of variables X1...Xn, and the only constraints are codesignation (saying Xi must have the same value as Xj)
and non-codesignation Xk must not have the same value as Xj.
If X1...Xn have finite (discrete) domains, clearly this is a normal CSP, and in the worst case can take exponential time to solve.
If on the other hand if X1..Xn all have infinite domains, then the CSP can be solved in polynomial time. Just find the transitive closure on the codesignation constraints
(If X codesignates with Y and Y codesignates with Z then X codesignates with Z.). Then see if there are any pair of variables X and Y such that they have both codesignation and non-codesignation constraints
between them. If so, the CSP has no solution. Otherwise, it has.
The reason this trick doesn't work for finite domain CSPs is that a set of non-codesignation constraints can *imply* a codesignation (if X has domain a, b and c, then
X!=a and X!=b implies X=c); such a thing won't happen in infinite domain case since there are always other values that X can take.
Rao