2 votes 2 votes Is this regular L={w | w $\varepsilon$ (0,1)* w is of the form (0i1)n for i=1,2,3...n ,n>=0} ? Theory of Computation theory-of-computation regular-language + – junaid ahmad asked Dec 1, 2017 junaid ahmad 525 views answer comment Share Follow See all 11 Comments See all 11 11 Comments reply akash.dinkar12 commented Dec 1, 2017 reply Follow Share Regular expression: (0+1)* 0 votes 0 votes Red_devil commented Dec 1, 2017 reply Follow Share @ akash.dinkar12 here i should be greater or equal to 1 and will be less than or equal to n..so smallest string will be 01 ..but your language also except e..and we have to count i so that n should always be greater or equal to i...so i don't think it is regular. 0 votes 0 votes akash.dinkar12 commented Dec 1, 2017 reply Follow Share @Red_devil If we put n=0 in language L then Epsilon will be accepted. 0 votes 0 votes Red_devil commented Dec 1, 2017 reply Follow Share @ akash.dinkar12 well e is not a problem but how will you manage to count i so than n will always exceed it or be equal to it. because 0<i<=n 1 votes 1 votes Shubhanshu commented Dec 1, 2017 reply Follow Share I think it is not regular because no of 0 should always be less or equal to n. 0 votes 0 votes junaid ahmad commented Dec 1, 2017 reply Follow Share Please put the dead state i forget to write :Dis this correct ? 0 votes 0 votes prateekdwv commented Dec 1, 2017 reply Follow Share @junaid No, the DFA you have shown will accept strings like $001 \implies (0^21)^1$ with $i=2$ and $n=1$ which do not belong to language $L$ 0 votes 0 votes junaid ahmad commented Dec 1, 2017 reply Follow Share see it is accepting 001 0 votes 0 votes prateekdwv commented Dec 1, 2017 reply Follow Share Yes, it is accepting. But it should not accept because $001$ do not belong to given language. 0 votes 0 votes junaid ahmad commented Dec 1, 2017 reply Follow Share But how, see language is generating 001 when i=2 and n=1 0 votes 0 votes Red_devil commented Dec 1, 2017 reply Follow Share you are forgetting that i<=n 0 votes 0 votes Please log in or register to add a comment.