Take the 2-minute tour ×
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It's 100% free, no registration required.
  1. Is every language with a finite number of strings regular?
  2. Is the language of all strings regular?

I am new to this topic and got confused. Can any one please help me with this?

share|improve this question
4  
These are, in fact, the most trivial examples of regular languages (empty language aside) and you should find them in any book on the subject. –  Karolis Juodelė Feb 14 '13 at 15:36
    
@abc13 A.Schulz answered the question, you should mark is as answered. –  saadtaame Feb 14 '13 at 17:52
    
What have you tried? Have you been dumping your latest homework on us? –  Raphael Feb 15 '13 at 7:39
add comment

1 Answer

  1. Yes. Assume the language is $L=\{w_1,w_2,\ldots, w_n\}$. then you can form the regular expression $w_1 + w_2 + \cdots + w_n$, which describes $L$.

    You can also argue with finite automata or regular grammars.

  2. Yes, if your alphabet is $\Sigma=(a_1,\ldots,a_k)$ then the regular expression $(a_1+a_2+\cdots +a_k)^*$ describes the languages of all possible strings over $\Sigma$.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.