]> AND Private Git Repository - cours-maths-dis.git/blob - partiels/110328S3_tp/reponse.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif algo euclide
[cours-maths-dis.git] / partiels / 110328S3_tp / reponse.py
1 from FSA import *
2
3 a1 = FSA(states = [1,2,3,4,5,6,7], 
4                alphabet = ['a','b'], 
5                transitions = [(1,2,'a'),
6                               (1,4,'b'),
7                               (2,3,'a'),
8                               (2,7,'b'),
9                               (3,2,'b'),
10                               (3,7,'a'),
11                               (4,7,'b'),
12                               (4,5,'a'),
13                               (5,6,'b'),
14                               (5,7,'a'),
15                               (6,5,'a'),
16                               (6,7,'b'),
17                               (7,7,'a'), 
18                               (7,7,'b')], 
19                     initialState = 1,  
20                     finalStates = [3,4,5])
21
22
23 a1.view()