answersLogoWhite

0


Best Answer

The only difference between a NDFSA (non-deterministic finite-state automation) and a DFSA (deterministic finite-state automation) is that a NDFSA can be in several states at once. Therefore, to convert a NDFSA to a DFSA, all that needs to be done is to replace all transitions from a state that puts the FSA into multiple other states with one transition that puts it into a *new* single state (that will represent the multiple states) and will take all transitions off those multiple states.

if we say a.x->b means that from state "a", on input "x", goes to state "b", and have the following NDFSA

a.x->b

a.x->c

b.y->a

c.y->b

c.z->c

..make it a DFSA by:

a.x->b

a.x->c

{ create new state with all ND transitions }

i=(b,c)

i.y->a (from b.y)

i.y->b (from c.y)

i.z->c (from c.z)

{ a.x is now deterministic }

a.x->i

{ continue through each state }

i.y->a

i.y->b

{ make deterministic }

j=(a,b)

j.x->i (from a.x)

j.y->a (from b.y)

{ remove all unreachable states }

a.x->i

i.y->j

i.z->c

j.x->i

j.y->a

c.z->c

Remember that epsilon transitions (transitions a->b (with no x) will cascade), e.g.,

a.x->b

b->c

c->d

{ because "b" reaches "c", and "d" }

i=(b,c,d)

a.x->i

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Convert nondeterministic finite automaton to deterministic finite automaton?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between deterministic finite automaton and non deterministic finite automaton?

The state machine described in the previous section is a deterministic finite automaton, in which each state is unique. What would make a finite automaton nondeterministic is if each state was not. For the example, if the state machine allowed the input to have any letter as the second letter for the word "person" to transition to the next, then the next state would not be unique, making it a nondeterministic finite automaton.


Difference between deterministic finite automata and non deterministic finite automata?

A deterministic finite automaton will have a single possible output for a given input. The answer is deterministic because you can always tell what the output will be. A nondeterministic finite automaton will have at least one input which will cause a "choice" to be made during a state transition. Unlike a DFA, one input can cause multiple outputs for a given NFA.


What did nfa stand for?

NFA - Non-deterministic Finite Automaton, aka NFSM (Non-deterministic Finite State Machine)


What is the difference between deterministic finite automata and non deterministic finite automata?

A deterministic Finite Automata)DFA will have a single possible output for a given input.The answer is deterministic because you can always feel what the output will be.A (Nondeterministic Finite Automata)NFA will have at least one input which will cause a "choice" to be made during a state transition,unlike a (deterministic Finite Automata)DFA one input can cause multiple outputs for a given (Nondeterministic Finite Automata)NFA.


How can one convert a deterministic finite automaton (DFA) to a pushdown automaton (PDA)?

To convert a deterministic finite automaton (DFA) to a pushdown automaton (PDA), you need to add a stack to keep track of the state transitions. The PDA uses the stack to store and retrieve symbols, allowing for more complex computations than a DFA. This conversion involves modifying the transition functions and adding stack operations to handle the additional complexity of the PDA.


How can one convert a right linear grammar to a nondeterministic finite automaton (NFA)?

To convert a right linear grammar to a nondeterministic finite automaton (NFA), you can create states in the NFA corresponding to the variables and terminals in the grammar. Then, for each production rule in the grammar, you can create transitions in the NFA based on the right-hand side of the rule. This process allows you to represent the grammar as an NFA that can recognize the same language.


How can I convert a deterministic finite automaton (DFA) to a regular expression?

To convert a deterministic finite automaton (DFA) to a regular expression, you can use the state elimination method. This involves eliminating states one by one until only the start and accept states remain, and then combining the transitions to form a regular expression that represents the language accepted by the DFA.


How can regular grammar be converted into a nondeterministic finite automaton (NFA)?

To convert regular grammar into a nondeterministic finite automaton (NFA), each production rule in the grammar is represented as a transition in the NFA. The start symbol of the grammar becomes the start state of the NFA, and the accepting states of the NFA correspond to the final states of the grammar. The NFA can then recognize strings that are generated by the regular grammar.


Can you construct a DFA that accepts the language specified?

Yes, a DFA (Deterministic Finite Automaton) can be constructed to accept the specified language.


Distinguish between dfa and nfa?

DFA stands for Deterministic finite automaton and NFA stands for Nondeterministic finite automaton.Formally, an automaton is made up of: were delta is the transition function. In a DFA, delta takes as input a state and letter and returns only one state. In an NFA, delta takes as input a state and letter but returns a set of states.An NFA accepts a word iff there exists a run of the automaton on it (intuitively, the automaton guesses an accepting run). A DFA has only one run on every word and therefore accepts a word iff the single run on it is accepting.


How can a deterministic finite automaton (DFA) be converted into a regular expression?

A deterministic finite automaton (DFA) can be converted into a regular expression by using the state elimination method. This involves eliminating states one by one until only the start and accept states remain, and then combining the transitions to form a regular expression that represents the language accepted by the DFA.


What is the significance of the DFA for the empty set in automata theory?

The DFA for the empty set in automata theory is significant because it represents a finite automaton that cannot accept any input strings. This helps in understanding the concept of unreachable states and the importance of having at least one accepting state in a deterministic finite automaton.