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

556 users

0 votes

the given question is as follows :

and I got this as the state diagram:

after removing the dead ends the kripky structure is as follows :

for b) Construct a propositional logic formula that encodes the set of reachable states 

SreachSreach′ of the Kripke structure.
Submit your solution in the form:
a&q|p   

my answer a&!p&!q | a&p&!q | a&p&q

is wrong 

in * TF "Emb. Sys. and Rob." by (300 points)
retagged by

2 Answers

0 votes
In b) reachable states are those reachable states before removing transitions to deadends (c)) and unreachable states (d)) but after updating the initial states (a)).
by (25.6k points)
edited by
this solution is still wrong
in part (d)
0 votes

To clarify: initial states are states that satisfy the initial condition; deadend states are states without outgoing transitions; reachable states are states that have a path from an initial state. 

The exercise was asking in a) to remove initial states that are also deadend states from the set of initial states. That is a new structure that shall be considered in part b) where you should find on that structure the reachable states. Obviously now the former initial states with deadends are gone. In part c) you then remove the deadends, and in part d) also the unreachable states.  

In your case, we consider a Kripke structure with variables p,q,a, initial states !p&!q and the following transition relation R:

    a & !p &  q & !next(p) & !next(q) |
    a & !p & !q &  next(p) & !next(q) |
    a &  p & !q &  next(p) &  next(q) |
    a &  p &  q &  next(p) &  next(q)

The Kripke structure looks as follows:

Looking at the Kripke structure, you can see

  • initial states s0,s1 described by !a&!p&!q|a&!p&!q
  • deadend states s0,s2,s4,s6 described by !a
  • unreachble states s2,s3 described by !a&!p&q|a&!p&q

We now want to clean up the Kripke structure in that we remove transitions to deadend states and transitions from unreachable states.

a) Initial states without deadend states are only s1, i.e., a&!p&!q. That changes our Kripke structure as follows:

b) For the above Kripke structure, we ask now for the reachable states which are now states s1,s4,s5,s6,s7 where states s4,s6 have however only finite paths (they are however still reachable). Reachable states are therefore a&!p&!q | !a&p&!q | a&p&!q | !a&p&q | a&p&q.

c) Removing transitions to deadend states is done by using the following transition relation

    (
     a & !p &  q & !next(p) & !next(q) |
     a & !p & !q &  next(p) & !next(q) |
     a &  p & !q &  next(p) &  next(q) |
     a &  p &  q &  next(p) &  next(q)
    )
    & next(a)

which looks as follows

d) In the above structure, only states s1,s5,s7 are reachable. Thus, we just have to remove the transition from state s3 to remove transitions among unreachable states:

    (
     a & !p &  q & !next(p) & !next(q) |
     a & !p & !q &  next(p) & !next(q) |
     a &  p & !q &  next(p) &  next(q) |
     a &  p &  q &  next(p) &  next(q)
    )
    & next(a)
    & !(a&!p&q)

This is finally the following structure:

by (170k points)
thanks for the explanation
Question number c. Why we are writing  & next(a) at the end of the answer? Can you please explain?
The set of deadend states is represented symbolically by the formula !a, hence, if R is the transition relation then R & next(!a) are the transitions leading to the deadend states and R & next(a) are the remaining transitions (not leading to deadend states).
for part d, is the transition formula mentioned below correct?
(
!p & !q & a & next(p) & !next(q) |
p & !q & a & next(p) & next(q) |
p & q & a & next(p) & next(q)  
)
& next(a)
That looks reasonable to me, so I think it is correct.
Imprint | Privacy Policy
...