hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Consider the following NFA: Where → denotes the initial state and * denotes the final state. Which of the following is the se
    Question



    Consider the following NFA:

    Where → denotes the initial state and * denotes the final state.
    Which of the following is the set of states in the DFA obtained from the given NFA?

    A.

    {q0, q1, q2}

    B.

    {q0, q1, q2, {q0, q1}, {q1, q2}}

    C.

    {q0, q1, q2, {q0, q1}, {q1, q2}, {q0, q2}, {q0, q1, q2}}

    D.

    {q0, q1, q2, {q0, q1}, {q0, q2}, {q0, q1, q2}, {q1, q2, q0}}

    E.

    None of the above

    Correct option is C

    To convert the given NFA to a DFA, we use the subset construction method. We will list all possible sets of NFA states that can be reached from the DFA states.
    1. Start with the initial state: {q0}
    2. Compute the closure and transitions for each state:
    · From {q0}, on input 'a' and 'b':
    · {q0} on 'a' → {q0}
    · {q0} on 'b' → {q1}
    · {q0, q1}, on input 'a' and 'b':
    · {q0, q1} on 'a' → {q0, q2}
    · {q0, q1} on 'b' → {q0}
    · {q0, q2}, on input 'a' and 'b':
    · {q0, q2} on 'a' → {q0, q2}
    · {q0, q2} on 'b' → {q0, q1}
    · {q0, q1, q2}, on input 'a' and 'b':
    · {q0, q1, q2} on 'a' → {q0, q2}
    · {q0, q1, q2} on 'b' → {q0, q1}
    By enumerating all reachable sets of states, the DFA states are: {q0}, {q1}, {q2}, {q0, q1}, {q0, q2}, {q0, q1, q2}.
    Thus, the correct answer is: (c) {q0, q1, q2, {q0, q1}, {q1, q2}, {q0, q2}, {q0, q1, q2}}
    Important Key Points:
    1. The subset construction method systematically converts an NFA into a DFA by considering all possible combinations of NFA states.
    2. In this case, the ε-transitions must also be considered while computing the reachable states.
    3. The final state(s) of the DFA are subsets that include the NFA’s final state(s), in this case, {q2}.
    Knowledge Booster:
    · NFA (Non-deterministic Finite Automaton): Allows multiple transitions for the same input or ε-transitions (transitions without input).
    · DFA (Deterministic Finite Automaton): Requires exactly one transition for each input symbol in each state.
    · ε-closure: The set of all states reachable from a given state through ε-transitions.

    Free Tests

    Free
    Must Attempt
    Video Solutions

    RBI Assistant Pre 2026 Full Mock Test -01

    languageIcon English
    • pdpQsnIcon100 Questions
    • pdpsheetsIcon100 Marks
    • timerIcon60 Mins
    languageIcon English
    Free
    Must Attempt
    Video Solutions

    RBI Asst Prelims 2026 : Reasoning Section Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 Mins
    languageIcon English
    Free
    Must Attempt
    Video Solutions

    RBI Office Attendant 2026 Full Mock Test - 01

    languageIcon English
    • pdpQsnIcon120 Questions
    • pdpsheetsIcon120 Marks
    • timerIcon90 Mins
    languageIcon English
    test-prime-package

    Access ‘IBPS SO IT Officer’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow