Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the language L = { 0 n 2 | n 0 } . To prove this language is not regular, a student wrote the

Consider the language L={0n2|n0}. To prove this language is not regular, a student wrote the
following proof:
Let F={0n2|n0}.
Pick two arbitrary strings x=0i2 and y=0j2 from L, where ij.
Then, let z=02i+1.
We have that xz=0i2+2i+1=0(i+1)2inL. On the other hand, yz=0j2+2i+1, and
j2+2i+1 is not a perfect square, because we can bound it between two consecutive
perfect squares:
yz=0j2+2i+1!inLFLFLx,yzijzxyxzyzxz=0i2+2i+10i2+2i+1=0(i+1)20(i+1)2inLyz=0j2+2i+1j2+2j+1=(j+1)2i>ji=ji.
(b) Without loss of generality, we can assume that i>j.
(c) Without loss of generality, we can assume that i=j.j2+2i+1
(g)j2+2j+1=(j+1)2
To fix the proof, we should add which of the following sentences after the second sentence of the proof?
(a) Without loss of generality, we can assume that i.
(b) Without loss of generality, we can assume that i>j.
(c) Without loss of generality, we can assume that i=j.j2
(f)j2+2i+1
(g)j2+2j+1=(j+1)2
To fix the proof, we should add which of the following sentences after the second sentence of the proof?
(a) Without loss of generality, we can assume that i.
(b) Without loss of generality, we can assume that i>j.
(c) Without loss of generality, we can assume that i=j.j2
Thus, yz=0j2+2i+1!inL.
To conclude, we have shown that Fis a fooling set for L. Since Fis infinite, Lis not regular.
But, there's something wrong with this proof! Given the above definitions ofx,y, and z, give values of i and
j such that z fails to distinguish x and y(i.e.xz and yz are either both accepted or both rejected).
Which statement from the proof is not necessarily true?
(a)xz=0i2+2i+1
(b)0i2+2i+1=0(i+1)2
(c)0(i+1)2inL
(d)yz=0j2+2i+1
(e)j2
(f)j2+2i+1
(g)j2+2j+1=(j+1)2
To fix the proof, we should add which of the following sentences after the second sentence of the proof?
(a) Without loss of generality, we can assume that i.
(b) Without loss of generality, we can assume that i>j.
(c) Without loss of generality, we can assume that i=j.
image text in transcribed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago