MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

THEORY OF COMPUTATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Let n be the number of states in NFA then there exists a DFA with minimum number of states ____
A
n2
B
nn+1
C
2n
D
2n+1
Explanation: 

Detailed explanation-1: -Detailed Solution. A state in a DFA will be a subset of the set of states of the equivalent NFA. So, the maximum number of states in the equivalent DFA of an NFA, will be 2n, where n is the number of states in NFA, as a set with n items has maximum 2n subsets.

Detailed explanation-2: -∴ Minimum number of states required for DFA = 3.

Detailed explanation-3: -DFA is difficult to construct, whereas NFA is easy to construct. NFA stands for “Non-Deterministic Automata, ” whereas DFA stands for “Deterministic Automata.” NFA allows for multiple possible following states based on the current input. In contrast, DFA has a unique transition from each state to every input.

Detailed explanation-4: -After conversion, the number of states in the resulting DFA may or may not be same as NFA. The maximum number of states that may be present in the DFA are 2Number of states in the NFA.

There is 1 question to complete.