Preview

15 Regular Pumping Lemma Examples

Satisfactory Essays
Open Document
Open Document
1096 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
15 Regular Pumping Lemma Examples
More Applications of the Pumping Lemma
This ppt is the work by Dr. Costas Busch, used with permission, and available from http://csc.lsu.edu/~busch/courses/theorycomp/fall2008/ 1

The Pumping Lemma:
• Given a infinite regular language
L
• there exists an integerm

| w | m with length

• for any string w L
• we can write w  x
• with

|x y|  m

• such that:
Fall 2006

(critical length

yz and |

i

xy z  L
Costas Busch - RPI

y | 1

i 0, 1, 2, ...
2

Non-regular languages

R

L {vv : v  *}

Regular languages

Fall 2006

Costas Busch - RPI

3

Theorem:The language
R

L {vv : v  *}

 {a, b}

is not regular

Proof:

Fall 2006

Use the Pumping Lemma

Costas Busch - RPI

4

R

L {vv : v  *}
Assume for contradiction that L is a regular language

Since L is infinite we can apply the Pumping Lemma
Fall 2006

Costas Busch - RPI

5

R

L {vv : v  *}
Let

m

be the critical length for L

Pick a string w

such that: w

 L

and length

We pick
Fall 2006

| w | m

m m m m

w a b b a
Costas Busch - RPI

6

From the Pumping Lemma: m m

m

we can write: w a b b a with lengths:

m

x y z

| x y | m, | y |1

m

m m m

w  xyz a...aa...a...ab...bb...ba...a x Thus:

Fall 2006

y

z

k

y a , 1 k m
Costas Busch - RPI

7

m m m m

x y z a b b a

k

y a , 1 k m

From the Pumping Lemma: x

i

y z  L

i 0, 1, 2, ...

Thus:
Fall 2006

2

xy z  L
Costas Busch - RPI

8

m m m m

x y z a b b a

k

y a , 1 k m

From the Pumping Lemma:x

2

y z  L

m m m

m+k
2

xy z = a...aa...aa...a...ab...bb...ba...a ∈ L

x
Thus:
Fall 2006

y a y m k m m m

b b a

Costas Busch - RPI

z

L
9

a

BUT:

m k m m m

b b a

L

k 1

R

L {vv : v  *}

a

m k m m m

b b a

L

CONTRADICTION!!!
Fall 2006

Costas Busch - RPI

10

Therefore:

Our assumption thatL is a regular language is not true

Conclusion:L

is not a regular language

END OF PROOF
Fall 2006

Costas Busch - RPI

11

Non-regular languages n l n l

L {a b c

: n, l 0}

Regular languages

You May Also Find These Documents Helpful

  • Good Essays

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z…

    • 360 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Text Questions Three

    • 283 Words
    • 1 Page

    1. If forensic scientist weren’t careful with their work, there could be contamination and ruin of the evidence. If that happens then the suspect could get away.…

    • 283 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    The novel follows two very different adolescents, Tal and Milla, as they experience together several hardships, travels, and experiences. In the beginning of this novel, Tal is conceited, dependant on others, and regards himself with superiority that does not extend to any who have what the Chosen regard as a “natural shadow.” . His inability to comprehend anything other than what he has been taught by his elders leads to conflict when he stumbles across Milla and her fellow Icecarls. Their differing views and customs cause him to regard the unfamiliar people as savages and almost sub-human. The author remarks that , "With Tal, I knew he was rather naive, and little committed to his family, and that he had more courage than he knew.” Throughout the…

    • 1040 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Spanish verbs irregular in the present tense! ! Stem-Changing Verbs Ending in -ar and -er! ! e → ie -ar o → ue -er pensar - to think!…

    • 777 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Holcomb is the village that is being introduced by the reader, a little yet prosperous farming settlement in western Kansas. Herbert Clutter, a man and a well known member of the community, lives a suitable life as the owner and proprietor of River Valley Farm, where he lives with his wife who has mental problems, Bonnie, and children, Nancy sixteen, and Kenyon fifteen. Nancy, who is a Straight A student, and president of her class, a leader in the 4-H, and has recently played a major role in the school production of “Tom Sawyer.” Kenyon, more reticent than his sister, spends much of his time woodworking in the Clutters’ The Clutters’ peaceful and contented existence is marred only by the fact that Bonnie Clutter suffers from depression, a condition that leaves her bedridden on many days.…

    • 479 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Neda was a free spirited individual who was against, and even rebelled against the complete government control of Iran who unfortunately lost her life because of it. As the filmed mentioned a few times, she was a rebel. In my eyes she was not a rebel in a negative way, but a rebel in a way that she wanted to be able to show her individuality, her own personal style, and did not want to be under the complete control and dictatorship of the Iranian regime. She stood for independence, individuality, and a free-spirit lifestyle that we are so very fortunate of in this country. She unfortunately lost her life because of her desire for independence as a woman, in my opinion she was assassinated, it was not just a random act of violence that claimed her life but rather a cold blooded murder! I believe that she was targeted! As the film stated she was an extremely beautiful woman, and beautiful woman like Neda are…

    • 952 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    An analysis of the way in which children learn to read and write, and the place of quality texts in supporting this.…

    • 2216 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    Often times we struggle to venture out of the realm which is comforting and familiar to us. There is a stigma as well as a common human tendency to fear the unknown and the eminent possibility of failure. We as a species are lazy. Challenges that are daunting and seem unsolvable often turn us around in another direction. However, there is a select few within our species that attempt to take on challenges which do not have a clear end in sight. These individuals who take on this risk of failure are the ones who risk creating and discovering amazing things.…

    • 1409 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Latifa Character Analysis

    • 453 Words
    • 2 Pages

    was cursed, after his divorce returned to Iraq, he had the right of ownership of his daughter, Latifa. He prison Latifa, abused her and did not let her work a job. He was expected traditional marriage for his daughter without knowing a dangerous secret that has.…

    • 453 Words
    • 2 Pages
    Good Essays
  • Good Essays

    From the start of the novel characters are introduced after the end of the world. In what seems to be the onset of winter death has already been introduced as a character. October, autumn, winter trailing behind, things dieing off and going dormant. The season of death has arrived as father and son wake to another grey day after a long, cold, dark night. Living in a world that is “barren, silent, godless” (4), a man awakes from a curious dream filled with more darkness to rest his hand over his son and check his breathing.…

    • 185 Words
    • 1 Page
    Good Essays
  • Good Essays

    "There are 5 locked treasure chests- one made of gold, one of silver, one of bronze, one of glass, and one of wood. There are also 5 keys- one in each material. The gold key unlocks…

    • 440 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Another way is to practice within the environment. If the presentation is held in class, I could set up a time with my professor to come in and give a practice presentation in the classroom, with or without the professor in the room. Practicing in front of larger crowds can also help ease any fears beforehand.…

    • 1045 Words
    • 5 Pages
    Good Essays
  • Good Essays

    The close of the school year returns our hero to his beloved Nanny who listens to his tale of torture and who introduces the first flavor of Africa to the western reader; she summons the great Inkosi-Inkosikazi, a medicine man who will cure the boy of the "night water." Nanny tells the boy's story with all the eloquence of the great storytellers while Inkosi-Inkosikazi and the others listen. Even our hero is in awe: "I can tell you one thing, I was mighty impressed that any person, most of all me, could go through such a harrowing experience." 6 All is set for the night; the chickens have been put through their magic, our hero has had his sweet potato, and it is time for him to meet Inkosi-Inkosikazi in his dreams. When this happens, our hero is shown a quiet place to which he can return in times of trouble. He does this later in the book when he feels a crisis. In the morning, the night water problem has been solved and Inkosi-Inkosikazi presents the boy with the scrawniest of the chickens. He is named Granpa Chook.…

    • 2419 Words
    • 10 Pages
    Good Essays
  • Better Essays

    Phonics is the method for teaching reading or writing in which the sounds or phonemes associated with the individual letters or graphemes are combined to make a word (O’Donnell et al, 2016. p.331). Phonics is an important educational tool for developing early literacy. There are two major methods educators use for phonics instruction and these are the analytic and synthetic phonics approaches (Get Reading Right, n.d.). The two methods for phonics instruction will be explained, moreover, the problems with analytic phonics will be highlighted and the case will be made that teaching phonics is most effective if instruction is grounded in synthetic methods. Effective methods using synthetic phonics will be discussed for years K-1.…

    • 1616 Words
    • 7 Pages
    Better Essays
  • Good Essays

    Any discussion of human thought processes must include a discussion of language. Language is a foundation or building block of thinking. Language also has three building blocks. These building blocks provide structure and produce language. To produce language, one must build words using phonemes and morphemes, and then string those words into sentences using the rules of grammar; syntax and semantics.…

    • 377 Words
    • 2 Pages
    Good Essays