Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Example 1: Consider L = {0m1m2m | m ≥ 1}.
  2. Pick n of the pumping lemma. Pick z = 0n1n2n.
  3.  
  4. Break z into uvwxy, with |vwx| ≤ n and vx != ε.
  5. Hence vwx cannot involve both 0s and 2s, since
  6. the last 0 and the first 2 are at least n + 1 positions apart. There are two cases:
  7.  
  8. • vwx has no 2s. Then vx has only 0s and
  9. 1s. Then uwy, which would have to be in
  10. L, has n 2s, but fewer than n 0s or 1s.
  11. • vwx has no 0s. Analogous.
  12. Hence L is not a CFL.
  13.  
  14. Hence vwx cannot involve both 0s and 2s, since
  15. the last 0 and the first 2 are at least n + 1 positions apart.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement