Here's a problem that occurs in automatic program analysis. For a set of variables x1; : :
Fantastic news! We've Found the answer you've been seeking!
Question:
Here's a problem that occurs in automatic program analysis. For a set of variables x1; : : : ; xn, you are given some equality constraints, of the form xi = xj and some disequality constraints, of the form xi 6= xj . Is it possible to satisfy all of them?
For instance, the constraints x 1 = x 2 ; x 2 = x 3 ; x 3 = x 4 ; x 1 6= x 4 cannot be satisfied. Give an efficient algorithm that takes as input m constraints over n variables and decides whether the constraints can be satisfied.
Related Book For
Understanding Basic Statistics
ISBN: 978-1111827021
6th edition
Authors: Charles Henry Brase, Corrinne Pellillo Brase
Posted Date: