Question
Write a regular expression and construct an equivalent finite automata 1. All strings which does not contain the substring ab. 2. All strings which contan
Write a regular expression and construct an equivalent finite automata
1. All strings which does not contain the substring ab.
2. All strings which contan even number of b's
3.All binary strings that have ever letter a followed by at least one letter b.
4. All binary strings not ending with ab.
5. Write regular expression for all the strings over the alphabet ={0,1,2} with an odd number of 1s
6. Give the context free grammers generating the following languages
a.The set of strings over alphabet ={b,c} with twice as many a's as b's.
b. The complement of the language {an bn | n 0}.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started