Difference between NFA and DFA with examples

Опубликовано: 21 Сентябрь 2021
на канале: Advanced CS IT for GATE
654
9

The video explains the Differences between DFA and NFA:

Description:
DFA: Deterministic Finite Automata is a type FA whereby only one
unique path is possible for any input for a given state.
NFA: Non-Deterministic Finite Automata is a type of FA whereby it
is possible to have many paths for an input on given state.

Backtracking:
DFA: Backtracking is allowed in DFA.
NFA: Backtracking may or may not be allowed in NFA.

Empty String Transition:
DFA: DFA cannot use empty string transition.
NFA: NFA can use empty string transition.

String Rejection:
DFA: DFA reject the string in case the termination state is other
than the accepting state.
NFA: NFA rejects the string only when all branches of the NFA are
dead or do not accept the string.

Description In Terms Of Units:
DFA: A DFA is best explained in the form of one machine and not
as separate units for computing purposes.
NFA: NFA is a collection of multiple little-sized units that are
combined together to perform computational activities.

Construction:
DFA: DFA is more difficult to construct.
NFA: NFA is easier to construct.

Space Requirement:
DFA: DFA requires more space.
NFA: NFA requires little space.

Time Required For Executing and Input string:
DFA: The time needed for executing an input string is less when
compared to NFA
NFA: Time needed for executing an input string is more when
compared to DFA.

Relation:
DFA: All DFA are NFA.
NFA: Not all NFA are DFA

Dead State:
DFA: Dead state may be required.
NFA: Dead state is not required.

Existence:
DFA: NFA actually exists.
NFA: DFA is a theoretical concept.

Derivation:
DFA: NFA is independent.
NFA: DFA is a derivation of NFA.

Ease of Construction:
DFA: NFA is easy to construct.
NFA: DFA is relatively difficult to construct.

Number of Next States:
DFA: Number of next states is one.
NFA: Number of next states can be zero, one, or more.

Transition Function :
DFA: δ: Q × ∑ → Q
NFA: δ: Q × ∑ → 2Q


Смотрите видео Difference between NFA and DFA with examples онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Advanced CS IT for GATE 21 Сентябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 65 раз и оно понравилось людям.