in Theory of Computation
338 views
0 votes
0 votes

Let L = (0+1)*1(0+1)^(n−1) and following statements regrading language L:

  1. The language L can be recognised by a non-deterministic automaton with (n+1) states. 
  2. Deterministic automaton recognises this language must have at least 2^n states. 

(Assume n≥1).
Which of the following statement(s) is/are correct?

  1. 1 onlty
  2. 2 only
  3. Both 1 and 2
  4. neither 1 and 2

---------------------------------------

According to me, L can be written as (0+1)*1(0+1)* which makes option D most suitable.

in Theory of Computation
338 views

1 comment

According to your string, 1 belongs to the language in question which is incorrect
0
0

1 Answer

0 votes
0 votes
L = (0+1)*1(0+1)^(n−1)

     = { set of all strings such that the nth symbol from RHS is 1 }

This can be represented by NFA having n+1 states.

For DFA, it will take  2^n states.

So Option C is correct.

.
edited by