Proving L is not Regular using Pumping Lemma

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Regular
Click For Summary
SUMMARY

The language $$L=\{ww^R \mid w \in \{0, 1\}^{\star} \}$$ is proven to be non-regular using the pumping lemma. The discussion establishes that if $L$ were regular, it would be recognized by a DFA $M$ with $k$ states, accepting the string $0^k110^k$. Given that the length of this string exceeds $k$, it must pass through a state at least twice, allowing it to be expressed in the form $xyz$. The analysis confirms that the pumping lemma asserts every string of the form $xy^iz, i \geq 1$ is in $L$, leading to a contradiction when considering the structure of $y$.

PREREQUISITES
  • Understanding of the Pumping Lemma for regular languages
  • Familiarity with Deterministic Finite Automata (DFA)
  • Knowledge of language theory, specifically non-regular languages
  • Basic concepts of string manipulation and concatenation
NEXT STEPS
  • Study the Pumping Lemma in detail, focusing on its application to various languages
  • Explore examples of non-regular languages beyond $$L$$
  • Learn about the differences between regular and context-free languages
  • Investigate the implications of state transitions in DFAs
USEFUL FOR

The discussion is beneficial for computer science students, theoretical computer scientists, and anyone interested in formal language theory and automata. It provides insights into proving language properties and understanding the limitations of regular languages.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

I want to prove that the language $$L=\{ww^R \mid w \in \{0, 1\}^{\star} \}$$ is not regular using the pumping lemma. I have done the following:

We suppose that $L$ is regular and is recognized by a DFA $M$ with $k$ states.
So, $M$ accepts the string $0^k110^k$.
Since $|0^k110^k|=2k+2>k$, there is a state $q$ through which $0^k110^k$ passes at least twice.
So, $0^k110^k$ is of the form $0^k110^k=xyz$, where $x$ leads $M$ from $q_0$ to $q$, $y$ leads $M$ from $q$ to $q$ (and $y \neq \varepsilon$) and $z$ leads $M$ from $q$ to an accepting state.
We suppose that $M$ accepts every string of the form $xy^iz, i \geq 1$.

Is the formulation until this point correct? Could I improve something? (Wondering)

To get a contradiction do we have to take cases for what $y$ contains? (Wondering)
 
Last edited by a moderator:
Physics news on Phys.org
mathmari said:
We suppose that $L$ is regular and is recognized by a DFA $M$ with $k$ states.
So, $M$ accepts the string $0^k110^k$.
Since $|0^k110^k|=2k+2>k$, there is a state $q$ through which $0^k110^k$ passes at least twice.
So, $0^k110^k$ is of the form $0^k110^k=xyz$, where $x$ leads $M$ from $q_0$ to $q$, $y$ leads $M$ from $q$ to $q$ (and $y \neq \varepsilon$) and $z$ leads $M$ from $q$ to an accepting state.
This is correct, but it is not necessary to invoke automata during an application of the pumping lemma. You don't want to prove it all over again.

mathmari said:
We suppose that $M$ accepts every string of the form $xy^iz, i \geq 1$.
It's not "suppose", it follows that it is the case. You could say, "Then the pumping lemma asserts that every string of the form $xy^iz, i \geq 1$ is in $L$".

mathmari said:
To get a contradiction do we have to take cases for what $y$ contains?
Yes, you need to consider the cases when $y$ is contained in the first zeros portion, second zeros portion and when it contains a 1. However, one variant of the pumping lemma says in addition that $|xy|\le k$ where $k$ is the pumping length, i.e., the constant whose existence is guaranteed by the lemma (it is equal to the number of states in the automaton, but, again, it is not necessary to mention it). Then it follows that $y$ is in the first zeros portion, which makes considering other cases unnecessary.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 13 ·
Replies
13
Views
4K