Two Possible Paths in a Nondeterministic Automaton
A nondeterministic automaton can allow several next states for one input. A word is accepted if at least one valid complete path accepts.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a small branch
On a symbol a, one branch can guess that a required suffix starts here while another continues searching. If the guessed suffix fails, another path can still accept. See backtracking choice points.
Track possible states together
Representing all current possibilities by a set yields a deterministic update of that set. Subset construction details this conversion.[1]
Keep all possible states at the same input position
After reading a, a nondeterministic machine may be in Q or R. On b, Q has no matching step while R can go to accepting state T. The word is accepted because at least one full path reaches an accepting state. See existential tests.
Start S
After a: {Q,R}
After b: {T} through R
Q's dead branch does not prevent acceptance
Describe the condition at the end of input
Reaching acceptance in one prefix can still fail if more symbols cannot be consumed. If empty transitions are permitted, compute the reachable closure at the relevant steps. Test two branches where only one succeeds.