The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

32 lines
703 B

4 weeks ago
  1. dtmc
  2. const double p;
  3. module test
  4. // local state
  5. s : [0..4] init 0;
  6. [] s=0 -> p : (s'=1) + (1-p) : (s'=2);
  7. [] s=1 -> p : (s'=3) + (1-p) : (s'=4);
  8. [] s=2 -> p : (s'=4) + (1-p) : (s'=3);
  9. [] s=3 -> 1 : (s'=3);
  10. [] s=4 -> 1 : (s'=4);
  11. endmodule
  12. // Dot output:
  13. //digraph model {
  14. // 0 [ label = "0: {init}" ];
  15. // 1 [ label = "1: {}" ];
  16. // 2 [ label = "2: {}" ];
  17. // 3 [ label = "3: {}" ];
  18. // 4 [ label = "4: {}" ];
  19. // 0 -> 1 [ label= "(p)/(1)" ];
  20. // 0 -> 2 [ label= "(-1 * (p+(-1)))/(1)" ];
  21. // 1 -> 3 [ label= "(p)/(1)" ];
  22. // 1 -> 4 [ label= "(-1 * (p+(-1)))/(1)" ];
  23. // 2 -> 3 [ label= "(-1 * (p+(-1)))/(1)" ];
  24. // 2 -> 4 [ label= "(p)/(1)" ];
  25. // 3 -> 3 [ label= "1" ];
  26. // 4 -> 4 [ label= "1" ];
  27. //}