Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  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|cite|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
  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|cite|improve this answer

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.