First time here? Checkout the FAQ!
0 votes
The numbers 1,2,4,8,…2n,…1,2,4,8,…2n,… written in unary

Is regular or not??

if not please justify??
asked in Theory of Computation by Loyal (3k points) 14 43 | 36 views

1 Answer

+2 votes
Best answer
It is not a regular language.

The reason is there is NO DFA that could accept this language.

If the language is infinite, there must be a pattern in it for being a regular language.The pattern means that..length of strings should be in AP that could be checked through loops.

In this language, no loop is possible.

I hope this helps.
answered by Junior (799 points) 5 11 18
selected by
@vivek jain Actually i was thinking for below dfa but i got your point below dfa accept all strings given in language {1,11,1111,11111111,.......}no problem@ but it also accepts unwanted strings{111,11111....} so not accepted right!
yeah..the DFA must also reject the strings not in the language.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23678 Points

  2. Bikram

    17278 Points

  3. Habibkhan

    8960 Points

  4. srestha

    6450 Points

  5. Debashish Deka

    5478 Points

  6. jothee

    5128 Points

  7. Sachin Mittal 1

    4882 Points

  8. joshi_nitish

    4486 Points

  9. sushmita

    4032 Points

  10. Rishi yadav

    3974 Points

Recent Badges

Notable Question Sedhu Raman
Notable Question cse23
Notable Question vishwa ratna
Notable Question learner_geek
Popular Question Devshree Dubey
Popular Question nish kim
Popular Question Simar sandhu
Popular Question Rashi Gupta
Notable Question Akriti sood
Popular Question Samujjal Das
27,407 questions
35,256 answers
33,480 users