CSE 396 -Assignment 4 Solved

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

 

 

 

In lecture this week, we learned (formally) that not all computational problems are able to be represented by a regular expression. This hopefully isn’t very shocking, since we eluded to it from the beginning that the DFA model is quite limited (finite memory, read-once, etc.). Our method to accomplish this was by applying the Pumping Lemma. More specifically, if we satisfy all of the hypotheses for the contrapositive of the Pumping Lemma (namely, we can find a string within our candidate language that cannot be pumped properly), then we may conclude that the candidate language is not regular.

Note that the statement provided by the Pumping Lemma does not assert an “if and only if.” What this means is that if a language is not regular, it’s not necessarily the case that the Pumping Lemma does not hold. There does exist a more powerful tool, the Myhill-Nerode theorem, that provides a method to prove if a language is regular or not regular directly, including the ability to prove a language is regular without the need to construct a DFA recognizing it (see https://en.wikipedia.org/wiki/Myhill%E2% 80%93Nerode_theorem). Interestingly, John Myhill (the Myhill in Myhill-Nerode) was a UB professor for many years.

Problem 1.  Complete the TopHat worksheet.

Problem 2.  Using the application of the contrapositive of the Pumping Lemma (from lecture), prove that the following language L1 is not a regular language, where

L1 = {w | w ∈ {0,1},the middle symbol of w is 1}.

Problem 3. (19 points) Using the application of the contrapositive of the Pumping Lemma (from lecture), prove that the following language L2 is not a regular language, where

L2 = {x#y#z | x,y,z ∈ {0,1},x + y = z (as binary numbers)}.

 

  • Assignment-4-8pz7c6.zip