D
D
demsp2018-05-11 12:09:10
Algorithms
demsp, 2018-05-11 12:09:10

Difference in state machines NFA DFA?

What is the difference between NCA and DCA? For example, a traffic light is an NCA?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
NonameProgrammer, 2018-05-11
@NonameProgrammer

This means that the NFA has many transitions from one state. Whereas there is only one DKA. NFAs are easier to design in your mind. It's harder to implement. Usually compilers use DFA. And if I'm not mistaken, there is a zero transition in the NCA

R
Rsa97, 2018-05-11
@Rsa97

The deterministic finite automaton for each state contains at most one transition for each input symbol and does not contain a transition for the empty symbol ε.
The traffic light does not apply to finite automata at all.

S
Sergey Sokolov, 2018-05-11
@sergiks

The main difference between a DFA and an NFA is that the DFA can only be in one state during operation, while the NFA can be in several states at the same time.

- the post " Regular expressions from the inside " on Habré explains well the essence of finite automata.

D
Denis Zagaevsky, 2018-05-11
@zagayevskiy

In general, everything has been said to you, and I will add more - for any NFA, you can build an equivalent DFA.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question