This commit is contained in:
doasdsk 2023-11-10 12:20:06 +01:00
parent 1ec6472c9f
commit 8e4c656b05
6 changed files with 35 additions and 36 deletions

View File

@ -1,8 +1,8 @@
Read a description of a deterministic finite-state automaton in the AT&T format Read a description of a deterministic finite-state automaton in the AT&T format
(without weights) from the file in the first argument. (without weights) from the file in the first argument.
Read strings from the standard input. Read strings from the standard input.
If a string is accepted by the If a string is accepted by the
automaton, write YES, otherwise- write NO. automaton, write YES, otherwise- write NO.
The program is invoked like this: ./run.py fsa_description.arg < test1.in > test1.out The program is invoked like this: ./run.py fsa_description.arg < test1.in > test1.out

View File

@ -1,16 +1,16 @@
0 1 x 0 1 x
1 2 y 1 2 y
2 3 z 2 3 z
0 4 y 0 4 y
0 4 z 0 4 z
1 4 x 1 4 x
1 4 z 1 4 z
2 4 x 2 4 x
2 4 y 2 4 y
3 4 x 3 4 x
3 4 y 3 4 y
3 4 z 3 4 z
4 4 x 4 4 x
4 4 y 4 4 y
4 4 z 4 4 z
3 3

View File

@ -1,2 +1,2 @@
windows windows
py .\run.py .\fsa_description.arg .\test1.in .\test1.out py .\run.py .\fsa_description.arg .\test1.in .\test1.out

View File

@ -1,9 +1,9 @@
NO NO
YES YES
NO NO
NO NO
NO NO
NO NO
NO NO
NO NO
NO NO

@ -1 +0,0 @@
Subproject commit 93702964e38c59bfe4f96960fdcb32e43306cc58