Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Def: num(x, y) means the number of times x appears as a substring in y 1. Using the pumping lemma technique, prove that the following
Def: num(x, y) means the number of times x appears as a substring in y 1. Using the pumping lemma technique, prove that the following languages are not regular. For reference, here is the pumping lemma game: 1. Adversary picks a positive integer p 2. You pick w A with [wl 2 p 3. Adversary splits up w into w- xyz with lxyl s p and lyl>0 4. You pick a nonnegative integer i You win the game if xy'z A. If you can describe a strategy in which you always win, then A is not regular. (a) {w {a, b)' I num(aa, w)-num(bbb, w)) Note: Be careful in your counting: bbbb contains the substring bbb two times. (b) {w {a, b)' : lwl is a square number} Hint: choose i so you can argue that the length of the resulting string is strictly between adjacent squares, ie.,
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