Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.1k questions

1.3k answers

1.7k comments

557 users

0 votes

I am solving this question, but my answer is not getting accepted. Can someone please help? Why is it wrong? 

in * TF "Vis. and Sci. Comp." by (870 points)

1 Answer

+1 vote

Here is how I solve it: You rewrite the formula such that any occurrence of next(p) is written as pX (or any other new kind of name that you can associate with the original name p). In your case, the formula becomes

aX&a&(b|b<->cX)

Then, you need to find the satisfying assignments. Truth tables are usually too big, so better use BDDs and/or the generation of a DNF from the BDD. In your case, I get 

which has the following DNF: 

a&b&aX&cX|a&!b&aX&!cX

Hence,  you have the following transitions:

{a,b,*} -> {a,*,c}
{a,!b,*} -> {a,*,!c}

where * means a don't care, thus,

{a,b} -> {a,c}
{a,b} -> {a,b,c}
{a,b,c} -> {a,c}
{a,b,c} -> {a,b,c}
{a} -> {a}
{a} -> {a,b}
{a,c} -> {a}
{a,c} -> {a,b}
by (170k points)
Imprint | Privacy Policy
...