edited by
2,138 views
4 votes
4 votes

Pumping lemma for context-free languages states:

Let $L$ be an infinite context free language. Then there exists some positive integer m such that any $w \in L$ with $\mid w \mid \geq m$ can be decomposed as $w=uv \, xy \, Z$ with $\mid vxy \mid$ ______ and $\mid vy \mid$ ________ such that $uv^{\dot{z} } xy^{\dot{z}} \, Z \in L$ for all $\dot{z} = 0, 1, 2 ,\dots$

  1. $\leq m, \leq 1$
  2. $\leq m, \geq 1$
  3. $\geq m, \leq 1$
  4. $\geq m, \geq 1$
edited by

2 Answers

1 votes
1 votes

Let L be an infinite context-free language. Then there is some positive integer m such that, if S is a string of L of length at least m, then

  • S = uvwxy (for some u, v, w, x, y)
  • |vwx| <= m
  • |vx|  1>=
  • uviwxiis a member of L

for all nonnegative values of i.

B is ans.

edited by
0 votes
0 votes

ans is B m,1 ≤m,≥1

If a language L is context-free, then there exists some integer m ≥ 1 (called a "pumping length"[1]) such that every string s in that has a length of m or more symbols (i.e. with |s| ≥ m) can be written as

s = uvwxy

with substrings uvwx and y, such that

1. |vwx| ≤ m,
2. |vx| ≥ 1, and
3. uvnwxny is in L for all n ≥ 0.

Below is a formal expression of the Pumping Lemma.

L⊆Σ*. (context_free(L) ⇒ ∃m≥1. ∀sL. (|s|≥m ⇒ ∃u,v,w,x,y∈Σ*. (s=uvwxy ∧ |vwx|≤m ∧ |vx|≥1 ∧ ∀n≥0. uvnwxnyL)))

Answer:

Related questions

2 votes
2 votes
1 answer
2
3 votes
3 votes
2 answers
3
2 votes
2 votes
1 answer
4
go_editor asked Jul 29, 2016
2,203 views
Which of the following commands would return process_id of sleep command?Sleep 1 and echo $Sleep 1 and echo $#Sleep 1 and echo $*Sleep 1 and echo $!