Question: 2. Write a regular expression for the following? a) Input alphabet (0,1; accepts set of all the strings that start with 10 or 01. b)

 2. Write a regular expression for the following? a) Input alphabet

2. Write a regular expression for the following? a) Input alphabet (0,1; accepts set of all the strings that start with 10 or 01. b) Input alphabet a,b; accepts set of all the strings of length at 2 for which final two input symbols are same. c) Input alphabet (a,b); accepts set of all the strings with odd number of a's d) Input alphabet-(a-z, accepts all the URL's e) Give regular expressions for the following languages on alphabet -(a, b, c, for all strings containing exactly one a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!