Regular expression in theory of computation solved examples

15378

3. Find the regular expression for the set of all strings over {0, 1} beginning with 00.

Solution:

We have the input alphabets are ∑ = {a, b}

Here, the resultant regular expression will denote the set of all strings over the given ∑ = {a, b} which must start with two consecutive 0’s i.e. 00.

For this, fist write the regular expression which represent the set of all strings over the given ∑ = {a, b}. It is-

(0 + 1)*

Now, the regular expression which fulfill the requirement of given question can be written as-

00 (0 + 1)*

 

 

Previous QuizWhat is SEO-Definition with List of all major search engine
Next QuizRegular expression in theory of computation solved examples Part – 2

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.