(NFA) InvalidStateError: end state q for transition on q0 is not valid
See original GitHub issuehey i ve getting this error while using “nfa.accepts_input(my_input_str)” in my project , i tried the same structure of the automata in a seperate file and it functionned properly , im wondering if anyone could guide me a little to figure out what to fix ( or at least the scenarios that may lead to this error thanks! here’s my project link https://github.com/maryembenali/automata.git
automata.base.exceptions.InvalidStateError: end state q for transition on q0 is not valid
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
automata-lib 1.0.0.post3 - PyPI
The method returns True if the DFA is valid; otherwise, it will raise the appropriate exception (e.g. the state transition is missing for...
Read more >What does an NFA do if there's no transition with the correct ...
In a DFA, if you are in state p and see an input character c, one of three things may happen: You can...
Read more >Chapter Five: Nondeterministic Finite Automata
A DFA has exactly one transition from every state on ... An NFA can make a state transition ... No moves, ending in...
Read more >q1 q2 q3 a b b a a, b - NJIT
F ⊆ Q is the set of accept states (or final states). Remark: Sometimes refer to DFA as simply a finite automaton (FA)....
Read more >Theory of Computation - (Finite Automata)
Solution. The DFA accepts the string bbab. The computation is: 1. Start in state q0. 2. Read b, follow transition from q0 to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@maryembenali Perfect, I was able to reproduce the error. I’m pasting it here so I can reference it later:
I will start debugging later today or tomorrow. I need to take a break right now.
@caleb531
These are the inputs i tried to enter