Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prove whether the following languages are regular or non - regular. You may need to use the Pumping Lemma, and you can also assume that

Prove whether the following languages are regular or non-regular. You may need to use the Pumping
Lemma, and you can also assume that the following languages are not regular:
LPRIME ={ap : p in PRIME}
L01={0n1n : n >=0}
Lij ={0i1j : i < j}
(a)[5 marks] The language of all integers (\sigma ={0,1,...9}) whose length is divisible by 2 or 3 but
not 6.
(b)[5 marks] The language L ={aa}*\cup LPRIME
(c)[5 marks] The language L ={\sigma 0n1n\sigma |n >=1} where \sigma ={0,1} and \sigma is the set of all binary
strings.
(d)[5 marks] The language L ={\sigma in {a, b, c, d} : |\sigma |a +|\sigma |b <|\sigma |c +|\sigma |d} where |sigma|a is the
number of as in \sigma , etc..
(e)[5 marks] The language L ={\sigma in {0,1} : |\sigma |0= n2|\sigma |1= n2, n >=1}. Spoiler alert: this is
not regular and requires the Pumping Lemma.
(f)[Infinite Bonus marks] Let L = LPRIME \{aa}. Is the language L= LL regular? Note: this
problem likely reduces to the Goldbach Conjecture, so solving it could possibly get you a million
dollars.
HINTS:-
Here are a couple of hints to help you with the first question of the assignment
1a and 1c are both regular
1b and 1d are both non-regular and do not need the pumping lemma; 1e is non-regular and requires the pumping lemma.
Do not attempt 1f
To show that a language is non-regular for 1b and 1d, consider using the following method:
Assume the language L is regular and use this to get to a contradiction.
Use a second language that you know is regular.
Recall that if L and S are both regular, then L [operation] S is regular for concatenation, union, Kleene-*, complement, reversal, intersection, and set difference (see the lecture on the Closure Properties).
Show that the resulting language after taking the [operation] is known to be non-regular. This is a contradiction!
Therefore, at least one of the languages in the L [operation] S must be non-regular, and since S is known to be regular, then L must be non-regular.
Hints: Consider using the language L_odd =(aa)*a for 1b and the language L_ac = a*c* for 1d somehow.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

=+e. Is there anything else you think I should know?

Answered: 1 week ago