document.write( "Question 1017019: I am at a loss on how to do proofs for this class. Here is the problem:\r
\n" );
document.write( "\n" );
document.write( "Let Σ = { 0, 1, #} and for a string w {0, 1}*, let bin(w) be the integer that w represents as a binary number. Prove (using the pumping lemma for regular languages) that L = {x # y | x, y {0, 1}*, and
\n" );
document.write( "y = 0 k , where k = bin(x) } is not regular\r
\n" );
document.write( "\n" );
document.write( "If someone can walk me through the steps, I am willing to hire them via PayPal. Thank you.
\n" );
document.write( " \n" );
document.write( "
Algebra.Com's Answer #633401 by richard1234(7193)![]() ![]() You can put this solution on YOUR website! I'm a little confused by the role of bin(x). If w = \"100101\" then does bin(w) = 100101? (I would hope bin(w) is not 37 since only 0's and 1's are allowed). If so, what is the purpose of using bin(x)?\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "To prove that L is not regular, assume otherwise that L is regular. By the pumping lemma, there exists a pumping length \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "1. \n" ); document.write( "2. \n" ); document.write( "3. For all nonnegative integers i, \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Note that # must appear in \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "By the pumping lemma, there must exist a nonempty substring \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "I haven't worked a whole lot with the pumping lemma before, so if anyone else sees any mistakes (e.g. me misinterpreting bin(x)), feel free to point them out. \n" ); document.write( " |