Question: Describe the error in the following “proof” that 0*1*is not a regular language. (An error must exist because 0*1*is regular.) The proof is by contradiction. Assume that 0*1*is regular. Let p be the pumping length for localid="1662103472623" 0*1*given by the pumping lemma. Choose s to be the string 0p1p . You know that s is a member of 0*1*, but Example 1.73 shows that s cannot be pumped. Thus you have a contradiction. So 0*1* is not regular.

Short Answer

Expert verified

The above problems arise when the pumping lemma is used on a language which is regular since violating a condition of the pumping lemma indicates that the language is non-regular but the vice versa is not always true.

Step by step solution

01

Introduction 

The pumping lemma is used as a poor check to prove that the given language is non-regular. The language that violates the any of the three situations of the pumping lemma is classified as non-ordinary.

Because the pumping lemma starts off evolved by assuming that the given language is regular, the belongingness of the string, that is used as a counter instance, is examined most effective for the given language and now not for all the languages that accepts the string.

02

Explanation

The proof given in the example 1.73 (refer to the textbook example 1.73) is for a different language. The counter examples given to prove the language as non-regular does not hold true for the language given in the question as shown below:

Let A be the language0*1*given in the question.

Let B be the language localid="1662104151400" {0n1nn>=0}given in the example 1.73.

As per the example 1.73,s is op1p and hence as per the pumping lemma, s should be split into three pieces as s=xyz , where for any i>=0, the string xyyz is in B . The cases are as follows:

The string y contains all 0s: The string xyyz will result in more number of 0 s than the number of 1 s which does not belong to the language B but the string belongs to language A and hence, the pumping lemma is not violated.

The same reason holds true for the case when the string y contains all 1 s. The string xyz will results in more number of 1 s which is again accept by the given language A .

Since the above conditions are satisfied, the given language cannot be classified as non-regular by pumping lemma.

Therefore, the error in the given proof is that a string which is used as a counter example to prove a certain language as non-regular does not signifies that all the languages that accept that string are considered as non-regular.

The above problems arise when the pumping lemma is used on a language which is regular since violating a condition of the pumping lemma indicates that the language is non-regular but the vice versa is not always true.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Show that the set of incompressible strings contains no infinite subset that is Turing-recognizable.

Find the error in the following proof that 2 = 1. Consider the equation a = b. Multiply both sides by a to obtain a2 = ab. Subtract b2from both sides to get a2 - b2 = ab - b2. Now factor each side, (a+b) (a-b) = b (a-b),and divide each side by (a-b)to get a + b = bFinally, letequal 1, which shows that 2 = 1

Let X be the set {1,2,3,4,5}and Y be the set {6,7,8,9,10}.The unary function f:XYand the binary function g:X×YYare described in the following tables.

g12345f(n)67676 g123456789101010101010789106789106789106789106

a. What is the value of f(2)?
b.What are the range and domain of f?
c. What is the value of g (2, 10) ?
d. What are the range and domain ofg?
e. What is the value ofg(4, f (4))?

This problem is inspired by the single-player game Minesweeper, generalized to an arbitrary graph. Let Gbe an undirected graph, where each node either contains a single, hidden mine or is empty. The player chooses nodes, one by one. If the player chooses a node containing a mine, the player loses. If the player chooses an empty node, the player learns the number of neighboring nodes containing mines. (A neighboring node is one connected to the chosen node by an edge.) The player wins if and when all empty nodes have been so chosen.

In the mine consistency problem, you are given a graphG along with numbers labeling some of G’s nodes. You must determine whether a placement of mines on the remaining nodes is possible, so that any node v that is labeled m has exactly m neighboring nodes containing mines. Formulate this problem as a language and show that it isNPcomplete.

Show that the class of context-free languages is closed under the regular operations, union, concatenation, and star.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free