Tuesday, 19 February 2013

FSP's Solutions


FSP'S Examples




FAULTY = (yellow -> candy -> FAULTY | {blue, red, green} -> FAULTY).



                      


MOVE = (ahead -> S1 ),S1 = (left -> STOP | right -> MOVE).





PERSON = (weekday -> S1 | weekend -> S3),
S1 = (sleep -> S2),
S2 = (work -> PERSON),
S3 = (sleep -> S4),
S4 = ({play,shop} -> PERSON).






IGNITION = (keyToRun -> S1),
S1 = (keyToStart -> S2 | keyToOff -> IGNITION),
S2 = (starting -> S5 |  starting -> S3),
S5 = (motorRunning -> S6),
S6 = (stall -> S4 | keyToOff -> IGNITION),
S3 = (motorNotRunning -> S4),
S4 = (keyToOff -> IGNITION).





FAULTY = (yellow -> S1 | {blue, green, red} -> S2),
S1 = (candy -> FAULTY),
S2 = (fault -> FAULTY).






BUILDING = (enter -> S1 | closed -> BUILDING ),
S1 = (enter -> S3 | closed -> S2 |exit -> BUILDING),
S2 = (exit -> BUILDING),
S3 = (enter -> S5 | closed -> S4 | exit -> S1),
S4 = (exit -> S2),
S5 = (enter -> S7 | closed -> S6 | exit -> S3),
S6 = (exit -> S4),
S7 = (closed -> S8 | exit -> S5),
S8 = (exit -> S6).




COUNT = (inc -> S1 | stop -> STOP),
S1 = (inc -> S2 | dec -> COUNT),
S2 = (inc -> S3 | dec -> S1),
S3 = (inc -> S4 | dec -> S2),
S4 = (dec -> S3).





Thanks for reading this.....
(Share the URL of this site if you like this post)

No comments:

Post a Comment