Question
If language L 1 is regular and language L 2 is regular, which of the following is/are also regular? a. L 1 ? L 2
If language L1 is regular and language L2 is regular, which of the following is/are also regular?
a. L1 ? L2
b. L1 ? L2
c. L1L2
d. L1*
e. all of the above
The language of strings that start with a and have 4 b's and have length < 8 is regular.
Select one:
a. true
b. false
I know this one is true since I already got it wrong, but why is it true? I thought Finite State Machines cannot store or count strings and any problem that requires it is not a regular language. How would you draw a DFA that gives the choice between a or b after the first a and still verify there's 4 b's somewhere mixed in there without enforcing them at specific locations?
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