You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

6 months ago
  1. \item \lect
  2. Consider the example of an elevator.
  3. Initially, the elevator is in the ground floor.
  4. From the ground floor, it can either go basement, stay there for a while,
  5. and then go back to the ground floor, or it can go from the ground floor
  6. to the second floor, stay there for a while, and go back to the ground floor.
  7. While traveling between ground floor to second floor, the elevator passes the first floor, but it cannot stop there.
  8. Model this elevator as \emph{transition system}.
  9. \iffalse
  10. \item \lect
  11. Given the following graph representation of a \textit{transition system}, state the contents of the sets $S, S_0 and R$
  12. \begin{center}
  13. \vspace{-2em}
  14. \begin{tikzpicture}[auto, node distance=3cm,shorten >=1pt,
  15. thick,node/.style={circle,draw,minimum size=20pt}]
  16. \node[node] (s0) {$s0$};
  17. \node (s0s2) [below= 1cm of s0] {};
  18. \node[node] (s1) [right of=s0s2] {$s1$};
  19. \node[node] (s2) [below of=s0] {$s2$};
  20. \node (start1) [left=1cm of s0] {};
  21. \path[->] (start1) edge (s0);
  22. \path[->] (s1) edge (s0);
  23. \path[->] (s0) edge [bend left] (s2);
  24. \path[->] (s2) edge (s1);
  25. \path[->] (s2) edge [bend left] (s0);
  26. \path[->] (s0.30) edge[bend right=90, looseness=15, out=240, in=300] (s0.60);
  27. \path[->] (s1.30) edge[bend right=90, looseness=15, out=240, in=300] (s1.60);
  28. \end{tikzpicture}
  29. \end{center}
  30. \fi