Multiple choice

Match the following NFAs with the regular expressions they correspond to

NFA Diagram GATE 2008

  1. $ \epsilon + 0 \left(01^*1+00\right)^*01^*$
  2. $ \epsilon + 0 \left(10^*1+00\right)^*0$
  3. $ \epsilon + 0 \left(10^*1+10\right)^*1$
  4. $ \epsilon + 0 \left(10^*1+10\right)^*10^*$

  1. P −2, Q −1, R −3, S −4

  2. P −1, Q −3, R − 2, S − 4

  3. P − 1, Q − 2, R − 3, S − 4

  4. P − 3, Q − 2, R − 1, S − 4

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation