Question: Show that the language { 0 ^ a 1 ^ b | a = kb for some k in N } is not context -
Show that the language ab a kb for some k in N is not contextfree. This language
contains strings such as k k and k but does not contain
because a b and in N A string of the form a
b belongs to this language, unless a
b
in N
Choose your string s of size s p carefully, and use the pumping lemma to reach a contradiction. Even if you cannot identify an appropriate string s you can get partial credit if you formally
explain what exactly you would need to show to reach a contradiction, paying close attention to
the quantifiers and the case analysis.
Hint: if a is a multiple of b then a c is a multiple of b if and only if c is a multiple of b
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
