Week 1 - Pumping Lemma Flashcards

1
Q

TRUE OR FALSE: All languages are regular.

A

FALSE, some languages don’t have NFA’s.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the pumping lemma?

A

A rule that states that any regular language satifies a certain property - the pumping property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the property that a regular language satifies called?

A

The pumping property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you prove that a language is not regular without having to go through all possible NFAs?

A

You can use the pumping lemma rule to demonstrate that language does not have a pumping property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you prove that a regular expression has a pumping property? Use computational terms.

A
If L is a regular language, then there exists a number p∈N (Natural numbers), called the pumping length such that for any string w∈L with |w| >= p, there exists substrings x,y,z of w that satify the following conditions:
w = xyz
∀i > = 0
xy^iz ∈ L
|y| > 0
|xy| <= p

If this is true, then the language is not regular.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly