Answered step by step
Verified Expert Solution
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 nonregular. 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
Lnn : n
Lij ij : i j
a marks The language of all integers sigma whose length is divisible by or but
not
b marks The language L aacup LPRIME
c marks The language L sigma nnsigma n where sigma and sigma is the set of all binary
strings.
d marks The language L sigma in a b c d : sigma a sigma b sigma c sigma d where sigmaa is the
number of as in sigma etc..
e marks The language L sigma in : sigma nsigma n n Spoiler alert: this is
not regular and requires the Pumping Lemma.
fInfinite 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
a and c are both regular
b and d are both nonregular and do not need the pumping lemma; e is nonregular and requires the pumping lemma.
Do not attempt f
To show that a language is nonregular for b and d 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 nonregular. This is a contradiction!
Therefore, at least one of the languages in the L operation S must be nonregular, and since S is known to be regular, then L must be nonregular.
Hints: Consider using the language Lodd aaa for b and the language Lac ac for d somehow.
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