Compare commits
No commits in common. "95f42e466ed822909b19945dde5a0847a6a594f7" and "4d992a3879c1e6b12023768072356f7ba2b8ab7b" have entirely different histories.
95f42e466e
...
4d992a3879
@ -1,8 +0,0 @@
|
|||||||
Read a description of a deterministic finite-state automaton in the AT&T format
|
|
||||||
(without weights) from the file in the first argument.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
||||||
The program is invoked like this: ./run.py fsa_description.arg < test1.in > test1.out
|
|
@ -1,16 +0,0 @@
|
|||||||
0 1 x
|
|
||||||
1 2 y
|
|
||||||
2 3 z
|
|
||||||
0 4 y
|
|
||||||
0 4 z
|
|
||||||
1 4 x
|
|
||||||
1 4 z
|
|
||||||
2 4 x
|
|
||||||
2 4 y
|
|
||||||
3 4 x
|
|
||||||
3 4 y
|
|
||||||
3 4 z
|
|
||||||
4 4 x
|
|
||||||
4 4 y
|
|
||||||
4 4 z
|
|
||||||
3
|
|
@ -1,9 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
@ -1,9 +0,0 @@
|
|||||||
xxyz
|
|
||||||
xyz
|
|
||||||
xy
|
|
||||||
zz
|
|
||||||
xxy
|
|
||||||
yzx
|
|
||||||
|
|
||||||
x
|
|
||||||
xyzz
|
|
@ -1,10 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the TaskE00.
|
|
||||||
Create your own FSA description to check whether the string starts with "01" and ends with "01.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
The alphabet is "0", "1".
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
@ -1,14 +0,0 @@
|
|||||||
01
|
|
||||||
10
|
|
||||||
0101
|
|
||||||
1010
|
|
||||||
011101
|
|
||||||
101010
|
|
||||||
100010
|
|
||||||
0100001
|
|
||||||
|
|
||||||
00110
|
|
||||||
0000
|
|
||||||
10101
|
|
||||||
0
|
|
||||||
1
|
|
@ -1,9 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the TaskE00.
|
|
||||||
Create your own FSA description to check whether the string starts with "10" and ends with "10.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
The alphabet is "0", "1".
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
@ -1,14 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
@ -1,14 +0,0 @@
|
|||||||
01
|
|
||||||
10
|
|
||||||
0101
|
|
||||||
1010
|
|
||||||
011101
|
|
||||||
101010
|
|
||||||
100010
|
|
||||||
0100001
|
|
||||||
|
|
||||||
00110
|
|
||||||
0000
|
|
||||||
10101
|
|
||||||
0
|
|
||||||
1
|
|
@ -1,11 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the TaskE00.
|
|
||||||
Create your own FSA description to check whether the string contains "0"
|
|
||||||
even number of times.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
The alphabet is "0", "1".
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
NO
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
@ -1,14 +0,0 @@
|
|||||||
01
|
|
||||||
10
|
|
||||||
0101
|
|
||||||
1010
|
|
||||||
011101
|
|
||||||
101010
|
|
||||||
100010
|
|
||||||
0100001
|
|
||||||
|
|
||||||
00110
|
|
||||||
0000
|
|
||||||
10101
|
|
||||||
0
|
|
||||||
1
|
|
@ -1,11 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the TaskE00.
|
|
||||||
Create your own FSA description to check whether the string contains "0"
|
|
||||||
odd number of times.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
The alphabet is "0", "1".
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
YES
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
@ -1,14 +0,0 @@
|
|||||||
01
|
|
||||||
10
|
|
||||||
0101
|
|
||||||
1010
|
|
||||||
011101
|
|
||||||
101010
|
|
||||||
100010
|
|
||||||
0100001
|
|
||||||
|
|
||||||
00110
|
|
||||||
0000
|
|
||||||
10101
|
|
||||||
0
|
|
||||||
1
|
|
@ -1,10 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the TaskB00.
|
|
||||||
Create your own FSA description to check whether the line contains string '19DD', where D is a digit.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
FSA alphabet is '0123456789x'.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,6 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
NO
|
|
||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
@ -1,6 +0,0 @@
|
|||||||
3214545443
|
|
||||||
1910
|
|
||||||
19
|
|
||||||
xxx2190x
|
|
||||||
xxx21905x
|
|
||||||
1905x54545
|
|
@ -1,9 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the previous task.
|
|
||||||
Create your own FSA description to check whether the word "hamlet" is in the given line.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
FSA alphabet is 'abcdefghijklmnopqrstuvwxyz '.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
@ -1,3 +0,0 @@
|
|||||||
haml
|
|
||||||
hamlet
|
|
||||||
aaahamletbbb
|
|
@ -1,10 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the previous task.
|
|
||||||
Create your own FSA description to check whether the word "ophelia" is in the given line.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
FSA alphabet is 'abcdefghijklmnopqrstuvwxyz '.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
@ -1,3 +0,0 @@
|
|||||||
oph
|
|
||||||
ophelia
|
|
||||||
xfdfdopheliafff
|
|
@ -1,10 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the previous task.
|
|
||||||
Create your own FSA description to check whether the word "juliet" is in the given line.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
FSA alphabet is 'abcdefghijklmnopqrstuvwxyz '.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
@ -1,3 +0,0 @@
|
|||||||
juli
|
|
||||||
juliet
|
|
||||||
dgfdgjulietaaa
|
|
@ -1,10 +0,0 @@
|
|||||||
Use a deterministic finite-state automaton (FSA) engine from the previous task.
|
|
||||||
Create your own FSA description to check whether the word "macbeth" is in the given line.
|
|
||||||
Save it to fsa_description.arg file.
|
|
||||||
|
|
||||||
FSA alphabet is 'abcdefghijklmnopqrstuvwxyz '.
|
|
||||||
|
|
||||||
Read strings from the standard input.
|
|
||||||
If a string is accepted by the
|
|
||||||
automaton, write YES, otherwise- write NO.
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
NO
|
|
||||||
YES
|
|
||||||
YES
|
|
@ -1,3 +0,0 @@
|
|||||||
macb
|
|
||||||
macbeth
|
|
||||||
xadadamacbethrff
|
|
Loading…
Reference in New Issue
Block a user