Let w be any string of length n in {0, 1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L?
Let w be any string of length n in {0, 1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L? Correct Answer n + 1
Key PointsLet w be any string of length n in {0, 1}*. Let L be the set of all substrings of w.
Here w is a string of length n, so it requires a minimum of n+1 states accepted by NFA.
Hence the correct answer is n+1.
Additional Information
- A minimum string length is k then number of states in minimum NFA is k+1 states.
- A given regular language one minimum DFA exist or many minimum NFA are possible.
- If minimum NFA contain n states number of states in minimized DFA is <= 2n.
- If minimum DFA contain n states number of states in minimum NFA is <= 2n
- Minimum NFA contain n states <= number of states in minimum DFA <=2n
মোঃ আরিফুল ইসলাম
Feb 20, 2025