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

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!