Question: Please define the regular expression for the set { a , b } . It has only two letters a and b . Questions are
Please define the regular expression for the set ab It has only two letters a and b
Questions are given belowPROBLEMS
All words that contain exactly two s or exactly three s not more.
i All strings that end in a double letter.
ii All strings that do not end in a double letter.
All strings that have exactly one double letter in them.
All strings in which the letter is never tripled. This means that no word contains the
substring
All words in which is tripled or is tripled, but not both. This means each word con
tains the substring aaa or the substring but not both.
i All words that do not have the substring
ii All words that do not have both the substrings bba and abb.
All strings in which the total number of s is divisible by no matter how they are dis
tributed, such as aabaabbaba.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
