Problem I
Deterministic Finite Automata - Is the Empty Language?
You are given a deterministic finite automaton that accepts
the language
Input
The input contains the description of a deterministic finite automaton.
The first line contains four positive integers
Each state is an integer between
Output
Output empty if
Sample Input 1 | Sample Output 1 |
---|---|
3 2 1 1 ab 2 2 3 3 2 3 3 |
non-empty |
Sample Input 2 | Sample Output 2 |
---|---|
2 4 1 1 acgt 2 1 1 1 1 1 2 2 1 |
empty |